This commit is contained in:
Fundor333
2025-01-20 20:54:21 +01:00
parent b0ecce1922
commit b07dab0f2f
10 changed files with 32 additions and 7 deletions

View File

@@ -10,5 +10,6 @@ repost:
like:
rsvp:
bookmark:
syndication_urls:
---

View File

@@ -7,6 +7,7 @@ images: []
resources:
- title: "{{ replace .Name "-" " " | title }}"
src: '_D0A7928-2.jpg'
syndication_urls:
---
## Challenge

View File

@@ -11,5 +11,6 @@ categories:
images:
keywords:
series:
syndication_urls:
---

View File

@@ -10,6 +10,8 @@ repost:
like:
rsvp:
bookmark:
syndication_urls:
- https://mastodon.social/@fundor333/113862274690176965
---
Another blog using Webmentions, creating and indipendent network between sites/blogs without the needs of social networks

View File

@@ -38,6 +38,7 @@
<div class="page-content e-content">
{{ .Content }}
</div>
{{- partial "syndication.html" . -}}
</article>
{{- partial "comments.html" . -}}
</main>

View File

@@ -22,6 +22,7 @@
{{ partial "micro.html" . }}
{{ .Content }}
</div>
{{- partial "syndication.html" . -}}
</article>
{{- partial "comments.html" . -}}
</main>

View File

@@ -1,3 +1,6 @@
{{if in site.Params.commentSections .Type}}
<hr>

View File

@@ -1,7 +1,7 @@
<meta name="fediverse:creator" content="@fundor333@mastodon.social">
<link rel="webmention" href="https://webmention.io/rknight.me/webmention" />
<link rel="pingback" href="https://webmention.io/rknight.me/xmlrpc" />
<link rel="webmention" href="https://webmention.io/fundor333.com/webmention" />
<link rel="pingback" href="https://webmention.io/fundor333.com/xmlrpc" />
<link rel="stylesheet" href="/css/webmention.css" />
<script src="https://kit.fontawesome.com/2f3b6e2e4c.js" crossorigin="anonymous"></script>

View File

@@ -1,16 +1,16 @@
<hr>
{{with .Params.Reply}}
<p><a href="{{.}}" class="u-in-reply"><i class="fa-regular fa-reply"></i>In replay of {{.}}</a></p>
<p><a href="{{.}}" class="u-in-reply"><i class="fa-regular fa-reply"></i> In replay of <span class="url-title">{{.}}</span></a></p>
{{end}}
{{with .Params.Repost}}
<p><a href="{{.}}" class="u-repost"><i class="fa-regular fa-retweet"></i>Repost of {{.}}</a></p>
<p><a href="{{.}}" class="u-repost"><i class="fa-regular fa-retweet"></i> Repost of <span class="url-title">{{.}}</span></a></p>
{{end}}
{{with .Params.Like}}
<p><a href="{{.}}" class="u-like"><i class="fa-regular fa-heart"></i>Like the lik {{.}}</a></p>
<p><a href="{{.}}" class="u-like"><i class="fa-regular fa-heart"></i> Like the lik <span class="url-title">{{.}}</span></a></p>
{{end}}
{{with .Params.Bookmark}}
<p><a href="{{.}}" class="u-bookmark"><i class="fa-regular fa-bookmark"></i>Bookmark of {{.}}</a></p>
<p><a href="{{.}}" class="u-bookmark"><i class="fa-regular fa-bookmark"></i> Bookmark of <span class="url-title">{{.}}</span></a></p>
{{end}}
{{with .Params.Rspv}}
<p><a href="{{.}}" class="u-rsvp"><i class="fa-regular fa-calendar-heart"></i>RSPV of {{.}}</a></p>
<p><a href="{{.}}" class="u-rsvp"><i class="fa-regular fa-calendar-heart"></i> RSPV of <span class="url-title">{{.}}</span></a></p>
{{end}}

View File

@@ -0,0 +1,15 @@
{{ if .Params.syndication_urls }}
<hr>
<br>
<div class="syndication">
<i class="fas fa-link"></i>
This post was also syndicated to:
{{- range $index, $url := .Params.syndication_urls }}
{{- $parsed_url := urls.Parse $url -}}
{{- if $index }}, {{- end }}
<a class="u-syndication" href="{{ $url }}" rel="syndication">{{ $parsed_url.Host }}</a>
{{- end }}
</small>
</div>
<br>
{{ end }}