From 4623287652544e328d114d4ed5110f1fcc712ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Romanowski?= Date: Tue, 5 Feb 2019 19:21:59 +0000 Subject: [PATCH] Fix relative URL handling for posts --- README.md | 2 +- templates/macros/menu.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f655669..252790a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Live demo here: https://pawroman.github.io/zola-theme-terminimal/ -Fork (not a port) of "Terminal" Hugo theme +This theme is a fork (not a port) of "Terminal" Hugo theme by Radosław Kozieł (aka. panr): https://github.com/panr/hugo-theme-terminal diff --git a/templates/macros/menu.html b/templates/macros/menu.html index b7604f3..2a803a3 100644 --- a/templates/macros/menu.html +++ b/templates/macros/menu.html @@ -17,7 +17,7 @@ {% endfor -%} {%- for item in menu_items %} - {%- set blog_post = not current_item and item.url == "/" -%} + {%- set blog_post = not current_item and item.url == "$BASE_URL" -%}
  • {%- if item.newtab -%} {{ item.name | safe }}