Browse Source

style tweak

master
jk 4 years ago
parent
commit
bbad538490
  1. 12
      themes/nipponalba/layouts/partials/webmention.html

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

@ -1,14 +1,14 @@
{{ range sort . "date" "asc" }}
<br/>
{{ if eq .mention_type "mention" }}
<div class="mention interaction"><div class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo_url }}" /></a></div><div class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post in <a href="{{ .url }}">the post {{ .title }}</a></div>
<div class="intcontent">{{ .content | safeHTML }}</div><br/>
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .date ) }}</time></div>
<div class="mention interaction"><div class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo_url }}" /></a></div><div class="intcontent"><div class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post in <a href="{{ .url }}">the post {{ .title }}</a></div>
{{ .content | safeHTML }}<br/>
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .date ) }}</time></div></div>
{{ end }}
{{ if eq .mention_type "reply" }}
<div class="reply interaction"><div class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo_url }}" /></a></div><div class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> replied to this post <a href="{{ .url }}">here</a><br/></div>
<div class="intcontent">{{ .content | safeHTML }}</div><br/>
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .date ) }}</time></div>
<div class="reply interaction"><div class="remote_profile"><a href="{{ .author.url }}"><img src="{{ .author.photo_url }}" /></a></div><div class="intcontent"><div class="intactivity"><a href="{{ .author.url }}">{{ .author.name }}</a> replied to this post <a href="{{ .url }}">here</a><br/></div>
{{ .content | safeHTML }}<br/>
<time>{{ dateFormat "02/01/2006 15:04 GMT" ( time .date ) }}</time></div></div>
{{ end }}
{{ if eq .mention_type "bookmark" }}
<div class="bookmark interaction"><a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo_url }}" /></a><a href="{{ .author.url }}">{{ .author.name }}</a> bookmarked this post</div>