Files
fundor333.com/layouts/partials/syndication.html
fundor333 8cd0bd3371 Adds syndication adder script
Adds a script to automatically add syndication links to posts' frontmatter based on RSS feeds from Mastodon, Bluesky and Medium.

It also updates the Makefile to include the new script, the `.gitignore` file to ignore the log file, and the syndication partial to correctly render syndication links.

It uses the source URL inside the content to find the local file.
2025-06-16 22:55:52 +02:00

17 lines
436 B
HTML

{{with .Params.syndication}}
<hr>
<div class="syndication">
<h3>Syndication</h3>
<i class="fas fa-link"></i>
This post was also syndicated to:
{{ range $index, $url := .}}
{{- $parsed_url := urls.Parse $url -}}
{{- if $index }}, {{- end }}
<a target="_blank" class="u-syndication" href="{{ $url }}" rel="syndication">{{ $parsed_url.Host }}</a>
{{ end }}
</div>
<br>
{{ end }}