1
0
Fork 0

Fix urls in the theme

Copied from how themes in pelican-themes do it.
pub/python-goto
LEdoian 3 years ago
parent dfa689a0b7
commit 89559e3417

@ -21,7 +21,7 @@
{# TODO: More meta tags #} {# TODO: More meta tags #}
{# CSS and other: #} {# CSS and other: #}
<link rel=stylesheet href="{{ THEME_STATIC_DIR }}/css/theme.css"> <link rel=stylesheet href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/theme.css">
{# Title setting #} {# Title setting #}
{% if page_title %} {% if page_title %}

@ -6,14 +6,14 @@
<h2>Categories</h2> <h2>Categories</h2>
<ul> <ul>
{% for category, _art in categories %} {% for category, _art in categories %}
<li><a href="{{ category.url }}">{{ category }}</a></li> <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
<h2>Tags</h2> <h2>Tags</h2>
<ul> <ul>
{% for tag, _art in tags %} {% for tag, _art in tags %}
<li><a href="{{ tag.url }}">{{ tag }}</a></li> <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>

Loading…
Cancel
Save