File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ header_pages:
1515 # href: "/create/"
1616
1717 - index.md
18+ - title : " Apps"
19+ href : " https://appfair.net"
1820 - create/index.md
1921 - blog/index.md
2022 - donate/index.md
Original file line number Diff line number Diff line change 5858 < a class ="mobile-nav-toggle " href ="javascript: toggleNavigation() "> < img src ="/assets/icons/close.svg " alt ="Close " class ="icon " /> </ a >
5959 < span >
6060 {%- for path in page_paths -%}
61- {%- assign navpage = site.pages | where: "path", path | first -%}
62- {%- if navpage.title -%}
61+ {%- comment -%}
62+ The paths in _config.yml can either include a title and href,
63+ or they can reference the underlying markdown directly and use its title.
64+ {%- endcomment -%}
65+ {%- if path.title -%}
66+ < a class ="page-link " href ="{{ path.href }} "> {{ path.title | escape }}</ a >
67+ {%- else -%}
68+ {%- assign navpage = site.pages | where: "path", path | first -%}
69+ {%- if navpage.title -%}
6370
64- < a class ="page-link {% if navpage.path == page.path %}selected{% endif %} " href ="{{ navpage.url | relative_url }} "> {{ navpage.title | escape }}</ a >
71+ < a class ="page-link {% if navpage.path == page.path %}selected{% endif %} " href ="{{ navpage.url | relative_url }} "> {{ navpage.title | escape }}</ a >
72+ {%- endif -%}
6573 {%- endif -%}
6674 {%- endfor -%}
6775
You can’t perform that action at this time.
0 commit comments