2021-04-18 15:22:42 +00:00
|
|
|
<header id="header" class="f5 pa3 flex bb b--foreground-text bg-background justify-between sticky top-0 w-100 items-baseline z-3">
|
2021-03-07 22:59:37 +00:00
|
|
|
{%- assign default_paths = site.pages | map: "path" -%}
|
|
|
|
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
|
|
|
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
2021-04-18 17:33:57 +00:00
|
|
|
|
|
|
|
<div class="flex items-baseline">
|
|
|
|
<a class="no-underline f4 foreground-text anthony mr3" rel="author" href="{{ "/" | relative_url }}">✿ {{ site.title | escape }}</a>
|
|
|
|
{% if page.url != "/" %}
|
|
|
|
<div id="gardenConditions" class="br-pill code f7 ba pv2 ph3"></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2021-03-07 22:59:37 +00:00
|
|
|
|
|
|
|
{%- if titles_size > 0 -%}
|
2021-04-18 17:33:57 +00:00
|
|
|
<nav class="f7 code flex">
|
2021-03-07 22:59:37 +00:00
|
|
|
{%- for path in page_paths -%}
|
|
|
|
{%- assign my_page = site.pages | where: "path", path | first -%}
|
|
|
|
{%- if my_page.title -%}
|
2021-04-18 15:22:42 +00:00
|
|
|
<a class="no-underline foreground-text underline-hover" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
2021-03-07 22:59:37 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2021-04-18 15:22:42 +00:00
|
|
|
<a class="no-underline foreground-text ml3 underline-hover" href="{{ "/feed.xml" | relative_url }}">RSS Feed</a>
|
|
|
|
<a class="no-underline foreground-text ml3 underline-hover" href="https://github.com/hyphacoop/digitalgarden">View Garden Source</a>
|
2021-03-07 22:59:37 +00:00
|
|
|
</nav>
|
|
|
|
{%- endif -%}
|
|
|
|
</header>
|