diff options
Diffstat (limited to 'layouts/partials/blog/blog_navbar.html')
-rw-r--r-- | layouts/partials/blog/blog_navbar.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/blog/blog_navbar.html b/layouts/partials/blog/blog_navbar.html new file mode 100644 index 0000000..78d4718 --- /dev/null +++ b/layouts/partials/blog/blog_navbar.html @@ -0,0 +1,11 @@ +<div class="blog_nav_bar secondary_font "> + {{ range $key, $value := . }} + {{ if eq $value "about" }} + <a class="navbar-brand" href="/">{{ $value }}</a> + {{ else if eq $value "blog" }} + <a class="navbar-brand" href="/blog">« all posts</a> + {{ else }} + <a class="navbar-brand" href="/{{$value}}">{{ $value }}</a> + {{ end }} + {{ end }} +</div>
\ No newline at end of file |