page.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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|format(SITEURL) }}
  15. {% endfor %}
  16. {% endif %}
  17. {% if page.js %}
  18. {% for script in page.js %}
  19. {% if 'top' in script[-7:] %}
  20. {{ script[:-5]|format(SITEURL) }}
  21. {% endif %}
  22. {% endfor %}
  23. {% endif %}
  24. {% block seo %}
  25. <!-- Meta Page -->
  26. <meta name="description" content="{{ page.title }} - {{ SITENAME }}"/>
  27. <meta name="author" content="{{ page.author }}"/>
  28. <!-- OpenGraph -->
  29. <meta property="og:type" content="article"/>
  30. <meta property="og:title" content="{{ page.title }}"/>
  31. <meta property="og:description" content="{{ page.title }} - {{ SITENAME }}"/>
  32. <meta property="og:site_name" content="{{ SITENAME }}"/>
  33. <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
  34. <!-- Twitter -->
  35. <meta name="twitter:card" content="summary"/>
  36. <meta name="twitter:title" content="{{ page.title }}"/>
  37. <meta name="twitter:description" content="{{ page.title }} - {{ SITENAME }}"/>
  38. <meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}"/>
  39. {% endblock %}
  40. {% endblock %}
  41. {% block content %}
  42. <div class="container">
  43. <!-- start of pages -->
  44. <div class="columns is-multiline is-centered">
  45. <!-- start of page -->
  46. <div class="column is-7" itemscope itemtype="https://schema.org/CreativeWork">
  47. <div class="card">
  48. <!-- post header -->
  49. <div class="card-content-header">
  50. <h2 class="title is-4 has-text-centered" itemprop="name">{{ page.title }}</h2>
  51. </div>
  52. <!-- end of post header -->
  53. <!-- post content -->
  54. <div class="card-content">
  55. <div class="content">
  56. <div class="card-inner-wrapper">
  57. <!-- post text -->
  58. <div class="card-content-text has-text-justified">
  59. {{ page.content }}
  60. </div>
  61. <!-- end of post text -->
  62. <!-- post footer -->
  63. <div class="card-content-footer-small">
  64. <div class="navbar is-social-center">
  65. <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}">
  66. <span class="soumaicon">
  67. <svg>
  68. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" />
  69. <title>GNUSocial</title>
  70. </svg>
  71. </span>
  72. </a>
  73. <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}">
  74. <span class="soumaicon">
  75. <svg>
  76. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" />
  77. <title>Diaspora</title>
  78. </svg>
  79. </span>
  80. </a>
  81. <a class="navbar-item" href="{{ SOCIAL['mastodon'] }}">
  82. <span class="soumaicon">
  83. <svg>
  84. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodon" />
  85. <title>Mastodon</title>
  86. </svg>
  87. </span>
  88. </a>
  89. </div>
  90. <!-- post footer nav -->
  91. <footer class="columns">
  92. <div class="column has-text-left">
  93. <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a>
  94. </div>
  95. {% import 'translations.html' as translations with context %}
  96. {% if translations.translations_for(page) %}
  97. <div class="column has-text-right">
  98. <span class="soumaicon">
  99. <svg>
  100. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" />
  101. </svg>
  102. </span>
  103. <small>
  104. {{ translations.translations_for(page) }}
  105. </small>
  106. </div>
  107. {% endif %}
  108. </footer>
  109. <!-- end of post footer nav -->
  110. </div>
  111. <!-- end of post footer -->
  112. </div>
  113. </div>
  114. </div>
  115. <!-- end page content -->
  116. </div>
  117. </div>
  118. <!-- end of page -->
  119. </div>
  120. <!-- end of pages -->
  121. </div>
  122. {% endblock %}