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.
17 lines
436 B
HTML
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 }}
|
|
|