article.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {% extends "base.html" %}
  2. {% block head %}
  3. {{ super() }}
  4. <meta name="description" content="{{ article.summary|striptags }}">
  5. {% endblock %}
  6. {% block title %}
  7. {{ article.title|striptags }} {{ super() }}
  8. {% endblock %}
  9. {% block page_header %}
  10. {{ article.title }}
  11. {% endblock %}
  12. {% block content %}
  13. <article class="article">
  14. <header>
  15. <ul class="list-inline">
  16. <li class="list-inline-item text-muted" title="{{ article.date.isoformat() }}">
  17. <i class="fa fa-clock-o"></i>
  18. {{ article.locale_date }}
  19. </li>
  20. <li class="list-inline-item">
  21. <i class="fa fa-folder-open-o"></i>
  22. <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
  23. </li>
  24. {% if not HIDE_AUTHORS and article.authors %}
  25. <li class="list-inline-item">
  26. <i class="fa fa-user-o"></i>
  27. {% for author in article.authors %}
  28. <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
  29. {% endfor %}
  30. </li>
  31. {% endif %}
  32. {% if article.tags %}
  33. <li class="list-inline-item">
  34. <i class="fa fa-files-o"></i>
  35. {% for tag in article.tags %}
  36. <a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
  37. {% endfor %}
  38. </li>
  39. {% endif %}
  40. </ul>
  41. </header>
  42. <div class="content">
  43. {{ article.content }}
  44. </div>
  45. </article>
  46. {% include 'include/comments.html' %}
  47. {% endblock %}