This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add structured data markup for
itemprop="comment"
- Close mmistakes#458
- Loading branch information
1 parent
ea9a866
commit 15408c7
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<article id="comment{{ include.index }}" class="js-comment comment"> | ||
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment"> | ||
<div class="comment__avatar-wrapper"> | ||
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80"> | ||
</div> | ||
<div class="comment__content-wrapper"> | ||
<h3 class="comment__author"> | ||
<h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person"> | ||
{% unless include.url == blank %} | ||
<a rel="nofollow" href="{{ include.url }}">{{ include.name }}</a> | ||
<span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span> | ||
{% else %} | ||
{{ include.name }} | ||
<span itemprop="name">{{ include.name }}</span> | ||
{% endunless %} | ||
</h3> | ||
<p class="comment__date"> | ||
{% if include.date %} | ||
{% if include.index %}<a href="#comment{{ include.index }}">{% endif %} | ||
<time datetime="{{ include.date | date_to_xmlschema }}">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time> | ||
{% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %} | ||
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time> | ||
{% if include.index %}</a>{% endif %} | ||
{% endif %} | ||
</p> | ||
{{ include.message | markdownify }} | ||
<div itemprop="text">{{ include.message | markdownify }}</div> | ||
</div> | ||
</article> |