mirror of
https://github.com/trwnh/hugo-content-adapter-mastodon.git
synced 2024-11-24 09:31:21 +00:00
38 lines
592 B
HTML
38 lines
592 B
HTML
|
{{ define "head" }}
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "body" }}
|
||
|
<body>
|
||
|
<main>
|
||
|
<h1>Mastodon/Status view</h1>
|
||
|
|
||
|
<h2>Status</h2>
|
||
|
|
||
|
{{ with .Params.mastodon.spoiler_text }}
|
||
|
<p>{{.}}</p>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ with .Content }}
|
||
|
<div class="status__content">{{.}}</div>
|
||
|
{{ end }}
|
||
|
|
||
|
<h2>Status params</h2>
|
||
|
|
||
|
<dl>
|
||
|
{{ range $k, $v := .Params.mastodon }}
|
||
|
<dt>{{$k}}</dt>
|
||
|
<dd>{{$v}}</dd>
|
||
|
{{ end }}
|
||
|
</dl>
|
||
|
|
||
|
<h2>Activity</h2>
|
||
|
{{ with .Resources.Get "activity" }}
|
||
|
<pre>{{.Content | unmarshal | jsonify (dict "indent" " ") }}</pre>
|
||
|
{{ end }}
|
||
|
|
||
|
</main>
|
||
|
</body>
|
||
|
{{ end }}
|