diff options
-rw-r--r-- | cl-theme/templates/comments.html | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/cl-theme/templates/comments.html b/cl-theme/templates/comments.html index badae0c..e1b0d33 100644 --- a/cl-theme/templates/comments.html +++ b/cl-theme/templates/comments.html @@ -1,4 +1,4 @@ -<div class="comments-content"> +<div class="comments-content" itemscope itemtype="http://schema.org/UserComments"> <!-- comment header --> <div class="comments-header has-text-centered"> <p class="title is-4">{{ _('Comentarios') }}</p> @@ -31,22 +31,29 @@ <!-- comment content --> <div class="media-content"> <div class="content"> - {% if comment.web %} - <p> - <strong> - <a href="{{ comment.web }}" - rel="noopener noreferrer" - target="_blank">{{ comment.author }}</a> - </strong> - </p> - {% else %} - <p><strong>{{ comment.author }}</strong></p> - {% endif %} - {{ comment.content }} - <small> - <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" title='Permalink'> - <abbr title='{{ comment.date|strftime("%Y-%m-%d-T%H-%M-%S") }}'>{{ _('Enlace Permanente') }}</abbr> - </a> | {{ comment.date|strftime("%H:%M:%S") }}</small> + <div class="content" itemprop="creator" itemscope itemtype="http://schema.org/Person"> + {% if comment.web %} + <p itemprop="name"> + <strong> + <a href="{{ comment.web }}" + rel="noopener noreferrer" + target="_blank">{{ comment.author }}</a> + </strong> + </p> + {% else %} + <p itemprop="name"><strong>{{ comment.author }}</strong></p> + {% endif %} + </div> + <div class="content" itemprop="commentText"> + {{ comment.content }} + </div> + <time class="entry-date published" itemprop="commentTime" datetime="{{ comment.date.isoformat() }}"> + <small> + <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" title='Permalink'> + <abbr title='{{ comment.date|strftime("%Y-%m-%d-T%H-%M-%S") }}'>{{ _('Enlace Permanente') }}</abbr> + </a> | {{ comment.date|strftime("%H:%M:%S") }} + </small> + </time> </div> </div> <!-- end of comment content --> |