page.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 opengraph %}
  15. {% if OPEN_GRAPH_FB_APP_ID %}
  16. <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/>
  17. {% endif %}
  18. <meta property="og:site_name" content="{{ SITENAME }}" />
  19. <meta property="og:type" content="article"/>
  20. <meta property="og:title" content="{{ page.title|striptags|escape }}"/>
  21. <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
  22. <meta property="og:description" content="{{ page.summary|striptags|escape }}" />
  23. {% if page.og_image %}
  24. <meta property="og:image"
  25. content="{{ SITEURL }}/{{ page.og_image }}"/>
  26. {% elif OPEN_GRAPH_IMAGE %}
  27. <meta property="og:image"
  28. content="{{ SITEURL }}/{{ OPEN_GRAPH_IMAGE }}"/>
  29. {% endif %}
  30. {% endblock %}
  31. {% block canonical_rel %}
  32. <link rel="canonical" href="{{ SITEURL }}/{{ page.url }}">
  33. {% endblock %}
  34. {% block breadcrumbs %}
  35. {% if DISPLAY_BREADCRUMBS %}
  36. <ol class="breadcrumb">
  37. <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
  38. {% if page.url %}
  39. <li class="active">{{ page.title }}</li>
  40. {% endif %}
  41. </ol>
  42. {% endif %}
  43. {% endblock %}
  44. {% block content %}
  45. <section id="content" class="body body-{{page.slug}}">
  46. {% import 'includes/translations.html' as translations with context %}
  47. {{ translations.translations_for(page) }}
  48. {% if PDF_PROCESSOR %}
  49. <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
  50. get the pdf
  51. </a>
  52. {% endif %}
  53. <div class="entry-content">
  54. {{ page.content }}
  55. {% if page.comments == 'enabled' %}
  56. {% include 'includes/comments.html' %}
  57. {% endif %}
  58. </div>
  59. </section>
  60. {% endblock %}