Browse Source

updated single page microformats for webmentions

master
jk 4 years ago
parent
commit
6618f66182
  1. 25
      themes/nipponalba/layouts/_default/single.html

25
themes/nipponalba/layouts/_default/single.html

@ -88,21 +88,22 @@
{{ end }}
{{ end }}
{{ else }}
<section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry">
<div class="author" style="display:none;">
<a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
{{ if .Params.inreplyto }}<section data-post-type="in-reply-to" data-post-id="{{ .Params.slug }}" class="response h-entry">{{ end }}
{{ if .Params.likeof }}<section data-post-type="like-of" data-post-id="{{ .Params.slug }}" class="response h-entry">{{ end }}
{{ if .Params.repostof }}<section data-post-type="repost-of" data-post-id="{{ .Params.slug }}" class="response h-entry">{{ end }}
<div class="author">
<a rel="author" class="p-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a>
</div>
<aside>
<article class="u-{{ .Params.posttype }} h-cite">
{{ if .Params.inreplyto }}<p> Replied to {{ end }}
{{ if .Params.likeof }}<p> Liked {{ end }}
{{ if .Params.repostof }}<p>Shared {{ end }}
{{ if .Params.inreplyto }}<article class="h-cite"><p> Replied to {{ end }}
{{ if .Params.likeof }}<article class="h-cite"><p> Liked {{ end }}
{{ if .Params.repostof }}<article class="h-cite"><p>Shared {{ end }}
someone's
{{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
{{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
{{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
{{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
<div class="post-footer"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span></div>
{{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-like-of"> post</a>{{ end }}
{{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-in-reply-to"> post</a>{{ end }}
{{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-repost-of"> post</a>{{ end }}</p>
{{ if .Content }}<div class="p-name p-content">{{ .Content }}</div><br/> {{end}}
<a href="{{ .RelPermalink }}" class="link u-url time"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a>
</article>
</aside>
</section>