Browse Source

tinkering with webmentions stuff

master
jk 5 years ago
parent
commit
941ab6db13
  1. 1
      themes/nipponalba/layouts/_default/baseof.html
  2. 3
      themes/nipponalba/layouts/_default/single.html

1
themes/nipponalba/layouts/_default/baseof.html

@ -2,7 +2,6 @@
<html lang="{{- site.Language.Lang -}}"> <html lang="{{- site.Language.Lang -}}">
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
<body> <body>
<a href="https://webmention.io/jk.nipponalba.scot/webmention" rel="webmention" style="display:none">webmention</a>
<input type="checkbox" id="theme-switch" class="theme-switch" autocomplete="on"> <input type="checkbox" id="theme-switch" class="theme-switch" autocomplete="on">
<div id="page"> <div id="page">
{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}

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

@ -95,6 +95,7 @@
<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> <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> </div>
<aside><div class="e-content"> <aside><div class="e-content">
<a href="https://webmention.io/jk.nipponalba.scot/webmention" rel="webmention" style="display:none">webmention</a>
{{ if .Params.inreplyto }}<p> Replied to {{ end }} {{ if .Params.inreplyto }}<p> Replied to {{ end }}
{{ if .Params.likeof }}<p> Liked {{ end }} {{ if .Params.likeof }}<p> Liked {{ end }}
{{ if .Params.repostof }}<p>Shared {{ end }} {{ if .Params.repostof }}<p>Shared {{ end }}
@ -102,7 +103,7 @@
{{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="u-like-of"> post</a>{{ end }} {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="u-like-of"> post</a>{{ end }}
{{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="u-in-reply-to"> post</a>{{ end }} {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="u-in-reply-to"> post</a>{{ end }}
{{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="u-repost-of"> post</a>{{ end }}</p> {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="u-repost-of"> post</a>{{ end }}</p>
{{ if .Content }}<div class="p-name">{{ .Content }}</div><br/> {{end}}
{{ if .Content }}<div class="p-name p-content">{{ .Content }}</div><br/> {{end}}
<time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time> <time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time>
</div></aside> </div></aside>
</article> </article>