aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config.toml1
-rw-r--r--templates/index.html5
2 files changed, 5 insertions, 1 deletions
diff --git a/config.toml b/config.toml
index 94e4e3f..41cfe95 100644
--- a/config.toml
+++ b/config.toml
@@ -17,6 +17,7 @@ highlight_code = true
[extra]
hyde_links = [
+ { url = "$BASE_URL/tags", name = "Tags" },
{ url = "https://github.com/johannst", name = "GitHub" },
{ url = "https://twitter.com/xjohannst", name = "Twitter" },
]
diff --git a/templates/index.html b/templates/index.html
index ad0d413..f0a781e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -42,7 +42,10 @@
<ul class="sidebar-nav">
{% block sidebar_nav %}
{% for link in config.extra.hyde_links %}
- <li class="sidebar-nav-item"><a href="{{link.url}}">{{link.name}}</a></li>
+ <!-- johannst START | add replace $BASE_URL -->
+ {% set link_url = link.url | replace(from="$BASE_URL", to=config.base_url) %}
+ <li class="sidebar-nav-item"><a href="{{link_url}}">{{link.name}}</a></li>
+ <!-- johannst END -->
{% endfor %}
{% endblock sidebar_nav %}
</ul>