post.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. layout: default
  3. ---
  4. <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  5. <header class="post-header">
  6. <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
  7. <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time> {% if page.author %}<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">/ {{ page.author }}</span></span>{% endif %}{% if page.tags != null %}/
  8. {% assign projectTags = site.data.tags.allowed-tags %}
  9. {% for tag in page.tags %}
  10. {% if projectTags contains tag %}
  11. <a href="{{ "tag_" | append: tag | append: ".html"}}">{{tag}}</a>{% unless forloop.last %}, {% endunless%}
  12. {% endif %}
  13. {% endfor %}
  14. {% endif %}
  15. </p>
  16. </header>
  17. <div class="post-content" itemprop="articleBody">
  18. {% if page.summary %}
  19. <div class="summary">{{page.summary}}</div>
  20. {% endif %}
  21. {{ content }}
  22. </div>
  23. </article>
  24. {% include disqus.html %}
  25. {{site.data.alerts.hr_shaded}}
  26. {% include footer.html %}