Browse Source

updating webmention display

master
jk 4 years ago
parent
commit
2e6defcf68
  1. 8
      themes/nipponalba/layouts/partials/webmention.html

8
themes/nipponalba/layouts/partials/webmention.html

@ -2,12 +2,20 @@
<br/> <br/>
{{ if eq (index . "wm-property") "mention" }} {{ if eq (index . "wm-property") "mention" }}
<section class="mention interaction"><span class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo }}" /></a></span><section class="intcontent"><span class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post in <a href="{{ .url }}">the post {{ .title }}</a></span> <section class="mention interaction"><span class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo }}" /></a></span><section class="intcontent"><span class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post in <a href="{{ .url }}">the post {{ .title }}</a></span>
{{ if isset .context.html }}
{{ .content.html | safeHTML }}
{{ else }}
<p>{{ .content.text | safeHTML }}</p> <p>{{ .content.text | safeHTML }}</p>
{{ end }}
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .published ) }}</time></section></section> <time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .published ) }}</time></section></section>
{{ end }} {{ end }}
{{ if eq (index . "wm-property") "in-reply-to" }} {{ if eq (index . "wm-property") "in-reply-to" }}
<section class="reply interaction"><span class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo }}" /></a></span><section class="intcontent"><span class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> replied to this post <a href="{{ .url }}">here</a><br/></span> <section class="reply interaction"><span class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo }}" /></a></span><section class="intcontent"><span class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> replied to this post <a href="{{ .url }}">here</a><br/></span>
{{ if isset .context.html }}
{{ .content.html | safeHTML }}
{{ else }}
<p>{{ .content.text | safeHTML }}</p> <p>{{ .content.text | safeHTML }}</p>
{{ end }}
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .published ) }}</time></section></section> <time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .published ) }}</time></section></section>
{{ end }} {{ end }}
{{ if eq (index . "wm-property") "bookmark" }} {{ if eq (index . "wm-property") "bookmark" }}