Browse Source

maybe fixed syndication

master
jk 4 years ago
parent
commit
b38c600249
  1. 6
      themes/nipponalba/layouts/_default/single.html

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

@ -30,6 +30,12 @@
</section>
<section class="info">
{{ 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">
{{ $mJSON := getJSON $pathJSON }}
Syndicated to <a href="{{ print $mJSON.url}}">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>
<a href="https://brid.gy/publish/mastodon"></a>
<section id="interactions"><h4>Interactions</h4>