feat: base_url -> get_url

This commit is contained in:
daudix-UFO
2023-12-25 05:45:07 +03:00
parent ff88bdb6d4
commit 9bf3e34a61
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<p>{{ section.description }}</p> <p>{{ section.description }}</p>
<small> <small>
<a class="link-page" href="{{ config.base_url }}/tags">Filter by tag</a> <a class="link-page" href="{{ get_url(path='tags') }}">Filter by tag</a>
<br /> <br />
From newest to oldest ↓ From newest to oldest ↓
</small> </small>

View File

@ -289,7 +289,7 @@ which were inspired by https://codeberg.org/jwildeboer/jwildeboersource/src/comm
} else if( } else if(
status.card != null && status.card != null &&
status.card.image != null && status.card.image != null &&
!status.card.url.startsWith("{{ config.base_url }}") !status.card.url.startsWith("{{ get_url(path='') }}")
) { ) {
let cardImg = document.createElement("img"); let cardImg = document.createElement("img");
cardImg.setAttribute("src", status.card.image); cardImg.setAttribute("src", status.card.image);

View File

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<h1>Posts with tag “{{ term.name }}”</h1> <h1>Posts with tag “{{ term.name }}”</h1>
<small> <small>
<a class="link-page" href="{{ config.base_url }}/tags">See all tags</a> <a class="link-page" href="{{ get_url(path='tags') }}">See all tags</a>
<br /> <br />
{{ term.pages | length }} posts in total {{ term.pages | length }} posts in total
</small> </small>