staticman-comment.html 1.2 KB

12345678910111213141516171819202122
  1. <article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="https://schema.org/Comment">
  2. <div class="comment__avatar-wrapper">
  3. <img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80" alt="{{ include.name }}">
  4. </div>
  5. <div class="comment__content-wrapper">
  6. <h4 class="comment__author" itemprop="author" itemscope itemtype="https://schema.org/Person">
  7. {% unless include.url == blank %}
  8. <span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span>
  9. {% else %}
  10. <span itemprop="name">{{ include.name }}</span>
  11. {% endunless %}
  12. </h4>
  13. <p class="comment__date">
  14. {% if include.date %}
  15. {% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
  16. <time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
  17. {% if include.index %}</a>{% endif %}
  18. {% endif %}
  19. </p>
  20. <div itemprop="text">{{ include.message | markdownify }}</div>
  21. </div>
  22. </article>