URL bugfix

This commit is contained in:
randogoth 2023-05-24 00:04:11 +03:00
parent 651becfb6b
commit dad997e986
9 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@
>Authors on {{ SITENAME }}
{%- for author, articles in authors|sort %}
+ `[{{ author }}`:/{{ author.url }}] ({{ articles|count }})
+ `[{{ author }}`:/page/{{ author.url }}] ({{ articles|count }})
{% endfor %}
{% endblock %}

View file

@ -3,7 +3,7 @@
> {% block title %}{{ SITENAME }}{% endblock title %}
{% endblock head %}
{% for title, link in MENUITEMS %}`[{{ title }}`{{ link }}]{% endfor %}{% if DISPLAY_PAGES_ON_MENU %}{% for p in PAGES %}`[{{ p.title }}`/{{ p.url }}]{% endfor %}{% else %}{% if DISPLAY_CATEGORIES_ON_MENU %}{% for cat, null in categories %}`[{% if cat == category %}`_{% endif %}{{ cat }}{% if cat == category %}`_{% endif %}`/{{ cat.url }}]{% endfor %}{% endif %}{% endif %}
{% for title, link in MENUITEMS %}`[{{ title }}`{{ link }}]{% endfor %}{% if DISPLAY_PAGES_ON_MENU %}{% for p in PAGES %}`[{{ p.title }}`:/page/{{ p.url }}]{% endfor %}{% endif %}
{% block content %}
{% endblock %}

View file

@ -1,6 +1,6 @@
{% extends "base.mu" %}
{% block content %}
{% for category, articles in categories %}
+ `[{{ category }}`:/{{ category.url }}]
+ `[{{ category }}`:/page/{{ category.url }}]
{% endfor %}
{% endblock %}

View file

@ -3,7 +3,7 @@
{% block content_title %}
{% endblock %}
{% for article in articles %}
+ [{{ article.locale_date }}] `!`_`[{{ article.title }}`:/{{ article.url }}]`_`!
+ [{{ article.locale_date }}] `!`_`[{{ article.title }}`:/page/{{ article.url }}]`_`!
{% endfor %}

View file

@ -1,5 +1,5 @@
{% if DEFAULT_PAGINATION %}
-
{% if articles_page.has_previous() %}`[<<`:/{{ articles_previous_page.url }}] {% endif %}Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}{% if articles_page.has_next() %} `[>>`:/{{ articles_next_page.url }}]{% endif %}
{% if articles_page.has_previous() %}`[<<`:/page/{{ articles_previous_page.url }}] {% endif %}Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}{% if articles_page.has_next() %} `[>>`:/page/{{ articles_next_page.url }}]{% endif %}
{% endif %}

View file

@ -4,7 +4,7 @@
{% for article in dates %}
+[{{ article.locale_date }}]
>>>>`[`!{{ article.title }}`!`:/{{ article.url }}]
>>>>`[`!{{ article.title }}`!`:/page/{{ article.url }}]
>>>>{{ article.summary }}
{% endfor %}
{% endblock %}

View file

@ -1,6 +1,6 @@
{% extends "base.mu" %}
{% block content %}
{% for tag, articles in tags %}
+ `[{{ tag }}`:/{{ tag.url }}]
+ `[{{ tag }}`:/page/{{ tag.url }}]
{% endfor %}
{% endblock %}

View file

@ -1,7 +1,7 @@
{% macro translations_for(article) %}
{% if article.translations %}
{% for translation in article.translations %}
`[{{ translation.lang }}`:/{{ translation.url }}]
`[{{ translation.lang }}`:/page/{{ translation.url }}]
{% endfor %}
{% endif %}
{% endmacro %}