summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-02-12 22:32:45 +0100
committerHarald Eilertsen <haraldei@anduin.net>2016-02-12 22:32:45 +0100
commita128ce9d9500ca62f6850958b6f582c2a9d46f3b (patch)
treea2d4f4b77fa685ee4c66c00e8ed651582b7804ca
parent06a3d9eecfeaed4a0fa144616ef0be02746b06f9 (diff)
downloadnorsk-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.html2
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 %}