diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 00000000..ed5a382a --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,31 @@ + + + + {%- 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 -%} + {{ site.title | escape }} + + {%- if titles_size > 0 -%} + + + + + + + + + + + + {%- for path in page_paths -%} + {%- assign my_page = site.pages | where: "path", path | first -%} + {%- if my_page.title -%} + {{ my_page.title | escape }} + {%- endif -%} + {%- endfor -%} + + + {%- endif -%} + +