miglioramenti pelican serve

This commit is contained in:
boyska 2020-08-04 17:41:09 +02:00
parent 9215862b3a
commit 365f351522
2 changed files with 4 additions and 2 deletions

View file

@ -47,9 +47,9 @@ regenerate:
serve: serve:
echo http://localhost:8000/ echo http://localhost:8000/
ifdef PORT ifdef PORT
pelican -lr -p $(PORT) pelican --ignore-cache -lr -p $(PORT)
else else
pelican -lr pelican --ignore-cache -lr
endif endif
devserver: devserver:

View file

@ -1,9 +1,11 @@
{% macro translations_for(article) %} {% macro translations_for(article) %}
{% if article.translations %} {% if article.translations %}
<div class="translations-available">
Translations: Translations:
{% for translation in article.translations %} {% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a> <a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
{% endfor %} {% endfor %}
</div>
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}