working on correct microformat use for mentions

using this guide: https://indieweb.org/comments
This commit is contained in:
Marvin Steadfast 2020-03-17 11:02:54 +01:00
parent 3bdfc68330
commit 9b57d8e038
2 changed files with 12 additions and 5 deletions

View File

@ -17,13 +17,16 @@
<table>
{{ range where .Site.Data.mentions.links "target" .Permalink }}
<tr>
<td><img src="{{ .data.author.photo }}"></td>
<tr class="u-comment h-cite">
<td><img class="h-card u-photo" src="{{ .data.author.photo }}" height="100px" width="100px"></td>
{{ if eq .activity.type "reply" }}
<td>{{ .data.content | safeHTML}} <small>- <a href="{{ .data.author.url }}">{{ .data.author.name }}</a> &commat; <a href="{{ .data.url }}">{{ dateFormat "Monday, Jan 2, 2006" .data.published }}</a></small></td>
<td>
<p class="p-content p-name">{{ .data.content | plainify }}</p>
- <a class="h-card u-author" href="{{ .data.author.url }}">{{ .data.author.name }}</a>
&commat; <a class="u-url" href="{{ .data.url }}"><time class="dt-published">{{ dateFormat "2006-01-02 15:04" .data.published }}</time></a>
{{ end }}
{{ if eq .activity.type "like" }}
<td><small>liked by <a href="{{ .data.author.url }}">{{ .data.author.name }}</a></small></td>
{{ if ne .activity.type "reply" }}
<td><a class="u-url" href="{{ .data.url }}">{{ .activity.type }}</a> by <a class="h-card u-author" href="{{ .data.author.url }}">{{ .data.author.name }}</a></td>
{{ end }}
</tr>
{{ end }}

View File

@ -215,3 +215,7 @@ button,
[type="submit"] {
border: 0.1rem solid #000000;
}
section#mentions table tbody tr.u-comment.h-cite td {
font-size: 70%;
}