forked from avana/sito-hackit-20
miglioramenti pelican serve
This commit is contained in:
parent
9215862b3a
commit
365f351522
2 changed files with 4 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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:
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue