Browse Source

potentially fixing the bridgy reading errors

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

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

@ -30,11 +30,9 @@
</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 }}
{{ if (fileExists "bridgy.json") }}
<span class="syndication">
{{ $mJSON := getJSON $pathJSON }}
{{ $mJSON := getJSON "bridgy.json" }}
Syndicated to <a href="{{ printf $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>