post.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ---
  2. layout: default
  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. </header>
  8. <div class="post-content e-content" itemprop="articleBody">
  9. {{ content }}
  10. </div>
  11. <p class="post-meta">
  12. {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
  13. {%- if page.modified_date -%}
  14. {%- assign mdate = page.modified_date | date_to_xmlschema -%}
  15. <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
  16. Last Updated on {{ mdate | date: date_format }}
  17. </time>
  18. {%- else -%}
  19. <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
  20. {{ page.date | date: date_format }}
  21. </time>
  22. {%- endif -%}
  23. {%- if page.author -%}
  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. {%- endif -%}
  30. </p>
  31. <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
  32. </article>
  33. {%- if site.hyvor_talk_website_id -%}
  34. <div class="comments">
  35. {%- include hyvor-talk-comments.html -%}
  36. </div>
  37. {%- endif -%}