diff options
author | Valentin Popov <info@valentineus.link> | 2019-03-25 01:47:19 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2019-03-25 01:47:19 +0300 |
commit | f90f223345d51c7d5077c72d65b1bfad4051017a (patch) | |
tree | 6421d684904a3381102c88c429a55c62b220a1d1 /_includes/navbar.html | |
parent | 7c2af350187e04702895712dd0d2dd57b31677f3 (diff) | |
download | popov.link-f90f223345d51c7d5077c72d65b1bfad4051017a.tar.xz popov.link-f90f223345d51c7d5077c72d65b1bfad4051017a.zip |
Add header template
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/navbar.html')
-rw-r--r-- | _includes/navbar.html | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/_includes/navbar.html b/_includes/navbar.html index 145d77f..f1b7f46 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -1,7 +1,9 @@ {% assign pages = site.pages | where: "show", true %} <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" /> @@ -12,6 +14,24 @@ </label> <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> </div> |