post.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ---
  2. layout: base
  3. ---
  4. <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
  5. <header class="post-header">
  6. <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
  7. <div class="post-meta">
  8. {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
  9. {% assign pdate = page.date | date_to_xmlschema %}
  10. {%- if page.modified_date %}<span class="meta-label">Published:</span>{% endif %}
  11. <time class="dt-published" datetime="{{ pdate }}" itemprop="datePublished">
  12. {{ pdate | date: date_format }}
  13. </time>
  14. {%- if page.modified_date -%}
  15. <span class="bullet-divider">•</span>
  16. <span class="meta-label">Updated:</span>
  17. {%- assign mdate = page.modified_date | date_to_xmlschema %}
  18. <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
  19. {{ mdate | date: date_format }}
  20. </time>
  21. {%- endif -%}
  22. {%- if page.author %}
  23. <div class="{% unless page.modified_date %}force-inline {% endunless %}post-authors">
  24. {%- for author in page.author %}
  25. <span itemprop="author" itemscope itemtype="http://schema.org/Person">
  26. <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
  27. {%- if forloop.last == false %}, {% endif -%}
  28. {% endfor %}
  29. </div>
  30. {%- endif %}
  31. </div>
  32. </header>
  33. <div class="post-content e-content" itemprop="articleBody">
  34. {{ content }}
  35. </div>
  36. {% if jekyll.environment == 'production' -%}
  37. {% if page.comments == false -%}
  38. <div class="comments-disabled-message">
  39. Comments have been disabled for this post.
  40. </div>
  41. {% else -%}
  42. {%- include comments.html -%}
  43. {% endif -%}
  44. {% endif -%}
  45. <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
  46. </article>