|
@ -29,7 +29,7 @@ |
|
|
<div class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></div> |
|
|
<div class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></div> |
|
|
{{ $pathJSON := (print .Permalink "bridgy.json") }} |
|
|
{{ $pathJSON := (print .Permalink "bridgy.json") }} |
|
|
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} |
|
|
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} |
|
|
{{ if fileExists $relpathJSON }} |
|
|
|
|
|
|
|
|
{{ if fileExists $pathJSON }} |
|
|
<div class="syndication"> |
|
|
<div class="syndication"> |
|
|
{{ $mJSON := getJSON $pathJSON }} |
|
|
{{ $mJSON := getJSON $pathJSON }} |
|
|
Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a> |
|
|
Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a> |
|
@ -42,13 +42,20 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<a href="https://brid.gy/publish/mastodon"></a> |
|
|
<a href="https://brid.gy/publish/mastodon"></a> |
|
|
{{ if eq .Type "article"}} |
|
|
|
|
|
{{ if .Site.DisqusShortname -}} |
|
|
|
|
|
<div id="fb_comments_container"> |
|
|
|
|
|
<h2>Comments</h2> |
|
|
|
|
|
{{ template "_internal/disqus.html" . }} |
|
|
|
|
|
|
|
|
<div class="webmention-form"> |
|
|
|
|
|
<form action="https://webmention.io/deluvi.com/webmention" method="post"> |
|
|
|
|
|
<label>Did you mention this article on your website? Put the URL of your post here:</label><br/> |
|
|
|
|
|
<input name="source" type="url"/> |
|
|
|
|
|
<input name="target" value="{{ .Permalink }}" type="hidden"/> |
|
|
|
|
|
<input value="Send Webmention" type="submit"/> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
{{ $pathJSON := (print "data" (strings.TrimSuffix "/" .Permalink) ".json") }} |
|
|
|
|
|
{{ if fileExists $pathJSON }} |
|
|
|
|
|
<div class="webmentions"> |
|
|
|
|
|
{{ $mJSON := getJSON $pathJSON }} |
|
|
|
|
|
{{ partial "webmention.html" $mJSON }} |
|
|
</div> |
|
|
</div> |
|
|
{{- end }} |
|
|
|
|
|
{{ end }} |
|
|
{{ end }} |
|
|
|
|
|
|
|
|
</aside></div> |
|
|
</aside></div> |
|
|