diff options
Diffstat (limited to 'themes/bear')
-rw-r--r-- | themes/bear/templates/header.html | 2 | ||||
-rw-r--r-- | themes/bear/templates/nav.html | 6 | ||||
-rw-r--r-- | themes/bear/templates/section.html | 4 | ||||
-rw-r--r-- | themes/bear/templates/taxonomy_single.html | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/themes/bear/templates/header.html b/themes/bear/templates/header.html index d08ea29..18b2318 100644 --- a/themes/bear/templates/header.html +++ b/themes/bear/templates/header.html @@ -1,7 +1,7 @@ <a class="skip" href="#content">Skip to main content</a> <header> <h2> - <a href="{{ config.base_url }}" class="title"> + <a href="{{ config.base_url | safe }}" class="title"> {{ config.title }} </a> </h2> diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html index e006ab1..cf0d9b7 100644 --- a/themes/bear/templates/nav.html +++ b/themes/bear/templates/nav.html @@ -1,10 +1,10 @@ -<a href="{{ config.base_url }}">Home</a> +<a href="{{ config.base_url | safe }}">Home</a> {%- if config.extra.main_menu %} {%- for item in config.extra.main_menu %} {%- if item.url is matching("https?://") %} - <a href="{{ item.url }}">{{ item.name }}</a> + <a href="{{ item.url | safe }}">{{ item.name }}</a> {%- else %} - <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a> + <a href="{{ get_url(path=item.url) }}">{{ item.name }}</a> {%- endif %} {%- endfor %} {%- endif -%} diff --git a/themes/bear/templates/section.html b/themes/bear/templates/section.html index f7567f2..c7f80de 100644 --- a/themes/bear/templates/section.html +++ b/themes/bear/templates/section.html @@ -16,7 +16,7 @@ {{ page.date | date(format=config.extra.date_format) }} </time> </span> - <a href="{{ page.permalink }}">{{ page.title }}</a> + <a href="{{ page.path | urlencode | safe }}">{{ page.title }}</a> </li> {% else %} <li> @@ -28,7 +28,7 @@ <div> {% set tags = get_taxonomy(kind="tags") %} {% for post in tags.items %} - <a href="{{ post.permalink }}">#{{ post.name }}</a> + <a href="{{ post.path | urlencode | safe }}">#{{ post.name }}</a> {% endfor %} </div> </small> diff --git a/themes/bear/templates/taxonomy_single.html b/themes/bear/templates/taxonomy_single.html index 4fade3f..2798f94 100644 --- a/themes/bear/templates/taxonomy_single.html +++ b/themes/bear/templates/taxonomy_single.html @@ -22,7 +22,7 @@ {{ page.date | date(format=config.extra.date_format) }} </time> </span> - <a href="{{ page.permalink }}">{{ page.title }}</a> + <a href="{{ page.path | urlencode | safe }}">{{ page.title }}</a> </li> {% else %} <li> |