page.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends "base.html" %}
  2. {% block html_lang %}{{ page.lang }}{% endblock%}
  3. {% block head %}
  4. {% block title %}
  5. <title>{{ page.title }} - {{SITENAME}}</title>
  6. {% endblock %}
  7. {% import 'translations.html' as translations with context %}
  8. {% if translations.entry_hreflang(page) %}
  9. {{ translations.entry_hreflang(page) }}
  10. {% endif %}
  11. {{ super() }}
  12. {% if page.styles %}
  13. {% for style in page.styles %}
  14. {{ style }}
  15. {% endfor %}
  16. {% endif %}
  17. {% block seo %}
  18. <!-- Meta Page -->
  19. <meta name="description" content="{{ SITENAME }} &ndash; {{ SITESUBTITLE }}"/>
  20. <meta name="author" content="{{ page.author }}"/>
  21. <!-- OpenGraph -->
  22. <meta property="og:type" content="article"/>
  23. <meta property="og:title" content="{{ page.title }}"/>
  24. <meta property="og:description" content="{{ SITESUBTITLE }}"/>
  25. <meta property="og:site_name" content="{{ SITENAME }}"/>
  26. <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
  27. <!-- Twitter -->
  28. <meta name="twitter:card" content="summary"/>
  29. <meta name="twitter:title" content="{{ page.title }}"/>
  30. <meta name="twitter:description" content="{{ SITESUBTITLE }}"/>
  31. <meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}"/>
  32. {% endblock %}
  33. {% endblock head %}
  34. {%- block content -%}
  35. <!-- Main -->
  36. <div class="row mt-10">
  37. <div class="col-md-9 mx-auto text-justify">
  38. <!-- dinamic page content -->
  39. <div class="ml-3">
  40. {{ page.content }}
  41. </div>
  42. <!-- End dinamic page content -->
  43. </div>
  44. </div>
  45. <!-- End Main -->
  46. {%- endblock -%}