Browse Source

maybe adding syndication links back?

master
jk 4 years ago
parent
commit
8780011d12
  1. 7
      themes/nipponalba/layouts/_default/single.html

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

@ -30,12 +30,9 @@
</section> </section>
<section class="info"> <section class="info">
{{ if not (eq .Type "article") }}<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span>{{ end }} {{ if not (eq .Type "article") }}<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span>{{ end }}
{{ $pathJSON := (print .Permalink "bridgy.json") }}
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }}
{{ if fileExists $relpathJSON }}
<span class="syndication"> <span class="syndication">
{{ $mJSON := getJSON $pathJSON }}
Syndicated to <a href="{{ $mJSON.url }}">Pleroma</a></span>{{ end }}
{{ with .Page.Params.mastodonlink }}
Syndicated to <a href="{{ .mastodonlink }}">Pleroma</a></span>{{ end }}
<span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span></section> <span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span></section>
<a href="https://brid.gy/publish/mastodon"></a> <a href="https://brid.gy/publish/mastodon"></a>
<section id="interactions"><h4>Interactions</h4> <section id="interactions"><h4>Interactions</h4>