kcl-digital-humanities-garden/_includes/header.html

19 lines
1.1 KiB
HTML
Raw Normal View History

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 15:22:42 +00:00
<a class="no-underline f4 foreground-text anthony" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
2021-03-07 22:59:37 +00:00
{%- if titles_size > 0 -%}
2021-04-03 22:32:00 +00:00
<nav class="f7 code">
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>