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:
|
||||
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:
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue