aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-18 00:00:42 +0300
committerValentin Popov <info@valentineus.link>2018-04-18 00:00:42 +0300
commitaf7ce99b07bbff67cec60258d99b01685a043a52 (patch)
tree32cd4eed43cd687e82b195f716da91d948edf540 /_includes
parent09083fa736faf05cf73463950b0479d07cb24e80 (diff)
downloadpopov.link-af7ce99b07bbff67cec60258d99b01685a043a52.tar.xz
popov.link-af7ce99b07bbff67cec60258d99b01685a043a52.zip
Navigation bar
Diffstat (limited to '_includes')
-rw-r--r--_includes/navbar.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/_includes/navbar.html b/_includes/navbar.html
new file mode 100644
index 0000000..d334f96
--- /dev/null
+++ b/_includes/navbar.html
@@ -0,0 +1,9 @@
+{% assign pages = site.pages | where: "show", true %}
+<nav class="navigation">
+ <a href="{{ site.url | uri_escape }}">Home</a>
+ {% for page in pages %}
+ <a href="{{ page.url | relative_url | uri_escape }}">
+ {{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
+ </a>
+ {% endfor %}
+</nav>