Skip to content

Commit b57dea2

Browse files
committed
Add link to appfair.net
1 parent 5c1a15f commit b57dea2

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

_includes/header.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,18 @@
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

0 commit comments

Comments
 (0)