Varia's website, varia.zone or vvvvvvaria.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

article.html 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {% extends "base.html" %}
  2. {% block head %}
  3. {{ super() }}
  4. {% if article.description %}
  5. <meta name="description" content="{{article.description}}" />
  6. {% endif %}
  7. {% if article.tags or article.category or article.keywords %}
  8. <meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
  9. {% endif %}
  10. {% endblock %}
  11. <div class="file type_folder">
  12. <a title="../" href="/log/" id="link0" class="type_folder"><img alt="../" src="/icons/back.png" class="type_folder"></a>
  13. </br>
  14. <span class="filename">../</span>
  15. {% block content %}
  16. <section id="content" class="body">
  17. <header id="banner">
  18. {% for p in pages %}
  19. {% if p.title == 'header' %}
  20. <div id="title">{{ p.content }}</div>
  21. {% endif %}
  22. {% endfor %}
  23. </header>
  24. <div class="entry-title">
  25. {{ article.title }}
  26. </div>
  27. <div class="article-info">
  28. <div class="featured-image">
  29. {% if article.featured_image %}
  30. {% set thumb_size ='/thumb'%}
  31. <a href="{{ article.featured_image }}">
  32. {% if article.featured_image.endswith('.gif') %}
  33. {% set thumb_size =''%}
  34. {% endif %}
  35. <img src="{{ article.featured_image | replace('images','images'+thumb_size) }}">
  36. </a>
  37. {% endif %}
  38. </div>
  39. <div class="event-details">
  40. {% if article.event_start %}
  41. <div>{{ article.event_start }}</div>
  42. {% endif %}
  43. </div>
  44. <div class="post-info">
  45. {% if article.category %}
  46. <div class="categories">
  47. <span itemprop="articleSection">
  48. <a href="{{ article.category.url }}" rel="category">{{ article.category }}</a>
  49. </span>
  50. </div>
  51. {% endif %}
  52. {% if article.translations %}
  53. <div class="article-translation">
  54. {% for translation in article.translations %}
  55. {% if translation.lang == 'nl' %}
  56. <a href="{{ translation.url }}">Lees dit artikel in het Nederlands</a>
  57. {% endif %}
  58. {% if translation.lang == 'en' %}
  59. <a href="{{ translation.url }}">Read this article in English</a>
  60. {% endif %}
  61. {% endfor %}
  62. </div>
  63. {% endif %}
  64. </div>
  65. </div>
  66. <div class="entry-content-container">
  67. <div class="entry-content">
  68. {{ article.content }}
  69. <div class="separator"><hr></div>
  70. </div><!-- /.entry-content -->
  71. </div><!-- /.entry-content-container -->
  72. </section>
  73. {% endblock %}