|
@ -26,10 +26,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="post-footer-page"> |
|
|
<div class="post-footer-page"> |
|
|
<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 "02/01/2006 15:04 GMT" }}</time></div> |
|
|
{{ $pathJSON := (print .Permalink "bridgy.json") }} |
|
|
{{ $pathJSON := (print .Permalink "bridgy.json") }} |
|
|
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} |
|
|
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} |
|
|
{{ if fileExists $pathJSON }} |
|
|
|
|
|
|
|
|
{{ if fileExists $relpathJSON }} |
|
|
<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,19 +42,22 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<a href="https://brid.gy/publish/mastodon"></a> |
|
|
<a href="https://brid.gy/publish/mastodon"></a> |
|
|
|
|
|
<div class="interactions"><h4>Interactions</h4></div> |
|
|
<div class="webmention-form"> |
|
|
<div class="webmention-form"> |
|
|
<form action="https://webmention.io/deluvi.com/webmention" method="post"> |
|
|
<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/> |
|
|
|
|
|
|
|
|
<label>Did you mention this {{ .Type }} on your website? Put the URL of your post here:</label><br/> |
|
|
<input name="source" type="url"/> |
|
|
<input name="source" type="url"/> |
|
|
<input name="target" value="{{ .Permalink }}" type="hidden"/> |
|
|
<input name="target" value="{{ .Permalink }}" type="hidden"/> |
|
|
<input value="Send Webmention" type="submit"/> |
|
|
<input value="Send Webmention" type="submit"/> |
|
|
</form> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
|
{{ $pathJSON := (print "data" (strings.TrimSuffix "/" .Permalink) ".json") }} |
|
|
|
|
|
|
|
|
{{ $pathJSON := (print "data" (strings.TrimSuffix "/" .RelPermalink) ".json") }} |
|
|
{{ if fileExists $pathJSON }} |
|
|
{{ if fileExists $pathJSON }} |
|
|
<div class="webmentions"> |
|
|
<div class="webmentions"> |
|
|
{{ $mJSON := getJSON $pathJSON }} |
|
|
|
|
|
{{ partial "webmention.html" $mJSON }} |
|
|
|
|
|
|
|
|
{{ $mJSON := getJSON $pathJSON }} |
|
|
|
|
|
<div class="like interaction"><h4>Likes</h4>{{ partial "likes.html" $mJSON }}</div> |
|
|
|
|
|
<div class="share interaction"><h4>Shares</h4>{{ partial "shares.html" $mJSON }}</div> |
|
|
|
|
|
<h4>Comments & Replies</h4>{{ partial "webmention.html" $mJSON }} |
|
|
</div> |
|
|
</div> |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
|
|
|
|
|
|