diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-10-27 09:57:37 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-10-27 09:57:37 -0400 |
| commit | e62e7bb6b14555c9bbe5d40d217103984f4f80e6 (patch) | |
| tree | 21887d847dccacb47644eb6f74ce31326172303c /_includes/comment.html | |
| parent | 716ea6ed2b64c921a799d872a07bfbd53b2a3e58 (diff) | |
| download | pokeworld-website-e62e7bb6b14555c9bbe5d40d217103984f4f80e6.tar.gz pokeworld-website-e62e7bb6b14555c9bbe5d40d217103984f4f80e6.tar.bz2 pokeworld-website-e62e7bb6b14555c9bbe5d40d217103984f4f80e6.zip | |
Rewrite progress
Diffstat (limited to '_includes/comment.html')
| -rw-r--r-- | _includes/comment.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/_includes/comment.html b/_includes/comment.html new file mode 100644 index 0000000..cebedab --- /dev/null +++ b/_includes/comment.html @@ -0,0 +1,22 @@ +<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="https://schema.org/Comment"> + <div class="comment__avatar-wrapper"> + <img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80" alt="{{ include.name }}"> + </div> + <div class="comment__content-wrapper"> + <h3 class="comment__author" itemprop="author" itemscope itemtype="https://schema.org/Person"> + {% unless include.url == blank %} + <span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span> + {% else %} + <span itemprop="name">{{ include.name }}</span> + {% endunless %} + </h3> + <p class="comment__date"> + {% if include.date %} + {% 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> + <div itemprop="text">{{ include.message | markdownify }}</div> + </div> +</article> |
