mirror of
https://github.com/trwnh/hugo-content-adapter-mastodon.git
synced 2024-11-24 09:31:21 +00:00
28 lines
605 B
HTML
28 lines
605 B
HTML
|
{{ define "head" }}
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "body" }}
|
||
|
<body>
|
||
|
<main>
|
||
|
<h1>Mastodon/Statuses view</h1>
|
||
|
<ul>
|
||
|
{{ range where .RegularPages.ByDate "Params.mastodon.visibility" "public" }}
|
||
|
<li>
|
||
|
{{ with .Params.mastodon._reblog_of_uri }}
|
||
|
<div>Reblogged {{ . }}</div>
|
||
|
{{ else }}
|
||
|
{{ with .Params.mastodon.spoiler_text }}
|
||
|
<p style="border-inline: thick solid gold; background: #ddd">{{.}}</p>
|
||
|
{{ end }}
|
||
|
<div>{{.Content}}</div>
|
||
|
{{ end }}
|
||
|
<a href="{{.Permalink}}">{{.Permalink}}</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</main>
|
||
|
</body>
|
||
|
{{ end }}
|