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:
echo http://localhost:8000/
ifdef PORT
pelican -lr -p $(PORT)
pelican --ignore-cache -lr -p $(PORT)
else
pelican -lr
pelican --ignore-cache -lr
endif
devserver:

View file

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