post.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% assign post = include.post %}
  2. <article class="post">
  3. {% if site.blog.hero_layout == true %}
  4. {% include utils/hero.html %}
  5. {% endif %}
  6. <!-- Post title (& hero image) container -->
  7. <div class="post-title-container
  8. {% if site.blog.hero_layout == true %}
  9. {{ post.url | remove: '/posts/' }} {{ post.url | remove: '/posts/' }}-bleed-container bleed-hero-container
  10. {% else %}
  11. no-hero-margin
  12. {% endif %}">
  13. <!--Post hero image source-->
  14. {% if site.blog.hero_layout == true %}
  15. {% if post.source-img %}
  16. <div class="post-source-img">
  17. <span class="source-text">source: </span>
  18. <span class="source"><a href="{{ post.source-img }}">{{ post.source-img }}</a></span>
  19. </div>
  20. {% endif %}
  21. {% endif %}
  22. <!-- Post title -->
  23. <div class="heading-container {% if site.blog.hero_layout == true %}hero-heading hero-heading-post{% endif %}">
  24. <h1>
  25. {% if post.link != nil %}
  26. <a href="{{ post.link }}" title="{{ post.title }}" target="_blank">
  27. {% endif %}
  28. {{ post.title }}
  29. {% if post.link != nil %}
  30. &rarr; </a>
  31. {% endif %}
  32. </h1>
  33. <!-- Post meta -->
  34. <div class="post-meta">
  35. <span>{{ post.date | date: "%d/%m/%Y" }}</span>
  36. <!-- {% include utils/date_custom.html date = post.date %} -->
  37. <span>
  38. {% for tag in post.tags %}
  39. <a href="{{ 'tag/' | relative_url }}{{ tag }}">#{{ tag }}</a>
  40. {% endfor %}
  41. </span>
  42. </div>
  43. </div>
  44. </div>
  45. <!-- Post content -->
  46. {{ post.content | remove: '&lt;!–-break-–&gt;' }}
  47. </article>