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

19 lines
1.1 KiB
HTML
Raw Normal View History

2021-03-28 16:30:27 +00:00
<header id="header" class="f5 pa3 flex bb b--dark-green bg-washed-green justify-between sticky top-0 w-100 items-baseline z-1">
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-03-25 02:18:10 +00:00
<a class="no-underline f4 dark-green 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-03-28 16:30:27 +00:00
<a class="no-underline dark-green underline-hover" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
2021-03-07 22:59:37 +00:00
{%- endif -%}
{%- endfor -%}
2021-03-28 16:30:27 +00:00
<a class="no-underline dark-green ml3 underline-hover" href="{{ "/feed.xml" | relative_url }}">RSS Feed</a>
<a class="no-underline dark-green ml3 underline-hover" href="https://github.com/hyphacoop/digitalgarden">View Garden Source</a>
2021-03-07 22:59:37 +00:00
</nav>
{%- endif -%}
</header>