mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-09 12:11:05 +01:00
Fix relative URL handling for posts
This commit is contained in:
parent
bb1b834ad5
commit
4623287652
|
@ -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
|
||||
|
||||
|
|
|
@ -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" -%}
|
||||
<li {%- if current_item and item == current_item or blog_post %} class="active" {%- endif %}>
|
||||
{%- if item.newtab -%}
|
||||
<a href="{{ item.url | replace(from="$BASE_URL", to=config.base_url) | safe }}" target="_blank" rel="noopener noreferrer">{{ item.name | safe }}</a>
|
||||
|
|
Loading…
Reference in a new issue