page.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends "base.html" %}
  2. {% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
  3. {% block html_lang %}{{ page.lang }}{% endblock %}
  4. {% block meta %}
  5. {% if page.author %}
  6. <meta name="author" content="{{ page.author }}" />
  7. {% else %}
  8. <meta name="author" content="{{ AUTHOR }}" />
  9. {% endif %}
  10. {% if page.summary %}
  11. <meta name="description" content="{{ page.summary|striptags|escape }}" />
  12. {% endif %}
  13. {% endblock %}
  14. {% block canonical_rel %}
  15. <link rel="canonical" href="{{ SITEURL }}/{{ page.url }}">
  16. {% endblock %}
  17. {% block breadcrumbs %}
  18. {% if DISPLAY_BREADCRUMBS %}
  19. <ol class="breadcrumb">
  20. <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
  21. {% if page.url %}
  22. <li class="active">{{ page.title }}</li>
  23. {% endif %}
  24. </ol>
  25. {% endif %}
  26. {% endblock %}
  27. {% block content %}
  28. <article id="content" class="body slug-{{page.slug}}" lang="{{page.lang}}">
  29. <h1 class="entry-title">{{ page.title }}</h1>
  30. {% import 'includes/translations.html' as translations with context %}
  31. {{ translations.translations_for(page) }}
  32. {% if PDF_PROCESSOR %}
  33. <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
  34. get the pdf
  35. </a>
  36. {% endif %}
  37. <div class="entry-content">
  38. {{ page.content }}
  39. {% if page.comments == 'enabled' %}
  40. {% include 'includes/comments.html' %}
  41. {% endif %}
  42. </div>
  43. </article>
  44. {% endblock %}