post.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <article class="h-entry">
  4. <div>
  5. {% if heading %}<h1 class="p-name">{{heading}}</h1>{% endif %}
  6. </div>
  7. {# <hr> #}
  8. {# {{ meta }} #}
  9. {# <hr> #}
  10. {% if attributes %}
  11. <div id="attributes">
  12. <p id="post-details">
  13. {% if attributes['date'] %}
  14. <time class="dt-published" datetime="{{attributes['date']}}">
  15. {% if attributes['date-text'] %}
  16. {{attributes['date-text']}}
  17. {% else %}
  18. {{attributes['date']}}
  19. {% endif %}
  20. </time>
  21. {% endif %}
  22. {% if attributes['author'] %}
  23. <span class="p-author">{{attributes['author']}}</span>
  24. {% endif %}
  25. <a class="u-url" href="/{{name}}">permalink.</a>
  26. </p>
  27. {% if attributes['summary'] %}
  28. <p class="p-summary">{{attributes['summary']}}</p>
  29. {% endif %}
  30. </div>
  31. {% endif %}
  32. <div class='e-content'>
  33. <div align="right">
  34. {% if contexto['ultima_modificacion'] %}
  35. <small>Actualizado - {{ contexto['ultima_modificacion'] }}</small>
  36. {% endif %}
  37. </div>
  38. {% if categorias %}
  39. <div class="categorias">
  40. {% for cat in categorias %}
  41. <a href="/posts/categoria/{{ cat }}">#{{ cat }}</a>
  42. {% endfor %}
  43. </div>
  44. {% endif %}
  45. {{contents}}
  46. </div>
  47. </article>
  48. {% endblock %}