diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2016-02-12 22:32:45 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2016-02-12 22:32:45 +0100 |
commit | a128ce9d9500ca62f6850958b6f582c2a9d46f3b (patch) | |
tree | a2d4f4b77fa685ee4c66c00e8ed651582b7804ca | |
parent | 06a3d9eecfeaed4a0fa144616ef0be02746b06f9 (diff) | |
download | norsk-urskog-main-a128ce9d9500ca62f6850958b6f582c2a9d46f3b.tar.gz norsk-urskog-main-a128ce9d9500ca62f6850958b6f582c2a9d46f3b.tar.bz2 norsk-urskog-main-a128ce9d9500ca62f6850958b6f582c2a9d46f3b.zip |
Make menubar hide "index.html" from links.
This allows us to use nicer URL's by putting pages into directories with
the page name rather than files with html extension.
-rw-r--r-- | blog/_includes/menubar.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blog/_includes/menubar.html b/blog/_includes/menubar.html index 36f69e9..02c8860 100644 --- a/blog/_includes/menubar.html +++ b/blog/_includes/menubar.html @@ -5,7 +5,7 @@ {% endif %} {% for page in site.pages %} {% if page.title %} - <a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{% page_title page.title %}</a> + <a class="page-link" href="{{ page.url | prepend: site.baseurl | remove: 'index.html' }}">{% page_title page.title %}</a> {% endif %} {% endfor %} {% include language-switcher.html %} |