article.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "base.html" %}
  2. {% block title %}{{ article.title|striptags }} - {{ SITENAME }}{% endblock %}
  3. {% block html_lang %}{{ article.lang }}{% endblock %}
  4. {% block meta %}
  5. {% if article.author %}
  6. <meta name="author" content="{{ article.author }}" />
  7. {% else %}
  8. <meta name="author" content="{{ AUTHOR }}" />
  9. {% endif %}
  10. {% if article.tags %}
  11. <meta name="keywords" content="{{ article.tags|join(',')|striptags }}" />
  12. {% endif %}
  13. {% if article.summary %}
  14. <meta name="description" content="{{ article.summary|striptags|escape }}" />
  15. {% endif %}
  16. {% endblock %}
  17. {% block canonical_rel %}
  18. <link rel="canonical" href="{{ SITEURL }}/{{ article.url }}">
  19. {% endblock %}
  20. {% block breadcrumbs %}
  21. {% if DISPLAY_BREADCRUMBS %}
  22. {% if DISPLAY_CATEGORY_IN_BREADCRUMBS %}
  23. <ol class="breadcrumb">
  24. <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
  25. <li><a href="{{ SITEURL }}/{{ article.category.url }}" title="{{ article.category }}">{{ article.category }}</a></li>
  26. <li class="active">{{ article.title }}</li>
  27. </ol>
  28. {% else %}
  29. <ol class="breadcrumb">
  30. <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
  31. <li class="active">{{ article.title }}</li>
  32. </ol>
  33. {% endif %}
  34. {% endif %}
  35. {% endblock %}
  36. {% block content %}
  37. <section id="content">
  38. <article>
  39. <header class="page-header">
  40. <h1>
  41. <a href="{{ SITEURL }}/{{ article.url }}"
  42. rel="bookmark"
  43. title="Permalink to {{ article.title|striptags }}">
  44. {{ article.title }}
  45. </a>
  46. </h1>
  47. </header>
  48. <div class="entry-content">
  49. <div class="panel">
  50. <div class="panel-body">
  51. {% include "includes/article_info.html" %}
  52. </div>
  53. </div>
  54. {{ article.content }}
  55. </div>
  56. <!-- /.entry-content -->
  57. {% include 'includes/related-posts.html' %}
  58. {% include 'includes/series.html' %}
  59. {% include 'includes/comments.html' %}
  60. </article>
  61. </section>
  62. {% endblock %}
  63. {% block scripts %}
  64. {% endblock %}