Commit 67956c07 authored by Jamie Tanna's avatar Jamie Tanna

Opt-in to syndication on a per-post/-event basis

As part of jvt.me#409, we want to selectively syndicate to external
sites less often than originally thought, only adding the metadata if
required. This means that the content will be marked up with an array of
sites and their link text to be shown.

Also, don't even show the `#syndication-targets` container unless we're
actually syndicating, so HTML-Proofer knows when to complain about links
not being set.
parent b27cec6a
......@@ -55,16 +55,23 @@
<div class="p-description">{{ .Content }}</div>
{{ end }}
{{ if .Params.syndication }}
<div id="syndication-targets">
<p>This post may be syndicated to these sites:</p>
<ul class="syndication-targets">
<ul>
{{ range .Params.syndication }}
<li>
<a href="https://news.indieweb.org/en" class="u-syndication">
IndieNews
<a href="{{ .url }}" class="u-syndication">
{{ .text }}
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ partial "webmention.html" . }}
......
......@@ -61,15 +61,21 @@
</ul>
{{ end }}
{{ if .Params.syndication }}
<div id="syndication-targets">
<p>This post may be syndicated to these sites:</p>
<ul class="syndication-targets">
<ul>
{{ range .Params.syndication }}
<li>
<a href="https://news.indieweb.org/en" class="u-syndication">
IndieNews
<a href="{{ .url }}" class="u-syndication">
{{ .text }}
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ partial "webmention.html" . }}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment