Add header template

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2019-03-25 02:47:19 +04:00
parent 7c2af35018
commit f90f223345
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -1,7 +1,9 @@
{% assign pages = site.pages | where: "show", true %} {% assign pages = site.pages | where: "show", true %}
<div class="navigation-container"> <div class="navigation-container">
<h1 class="navigation-header">Header</h1> <h1 class="navigation-header">
{{ page.title | default: site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape }}
</h1>
<input id="toggle-button" class="toggle-button" type="checkbox" /> <input id="toggle-button" class="toggle-button" type="checkbox" />
@ -12,6 +14,24 @@
</label> </label>
<nav class="navigation" role="navigation"> <nav class="navigation" role="navigation">
<ul class="navigation-pills"></ul> <ul class="navigation-footer">
{% for item in site.data.social_links %}
<li>
<a target="_blank" href="{{ item.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a>
</li>
{% endfor %}
</ul>
<ul class="navigation-pills">
{% for page in pages%}
<li class="navigation-item" role="presentation">
<a href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a>
</li>
{% endfor %}
</ul>
</nav> </nav>
</div> </div>