Browse Source

miglioramenti pelican serve

boyska 3 years ago
parent
commit
365f351522
2 changed files with 4 additions and 2 deletions
  1. 2 2
      Makefile
  2. 2 0
      themes/hackit0x16/templates/translations.html

+ 2 - 2
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:

+ 2 - 0
themes/hackit0x16/templates/translations.html

@@ -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 %}