A theme for pelican which mimics the look of LaTeX documents
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

17 lignes
530 B

  1. {% macro translations_for(article) %}
  2. {% if article.translations %}
  3. Translations:
  4. {% for translation in article.translations %}
  5. <a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
  6. {% endfor %}
  7. {% endif %}
  8. {% endmacro %}
  9. {% macro entry_hreflang(entry) %}
  10. {% if entry.translations %}
  11. {% for translation in entry.translations %}
  12. <link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}">
  13. {% endfor %}
  14. {% endif %}
  15. {% endmacro %}