Add link to changelog to each post.

This commit is contained in:
tastytea 2021-03-30 02:25:18 +02:00
parent 0584a26902
commit 2a6da65c71
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 11 additions and 0 deletions

View File

@ -198,3 +198,8 @@ kbd
padding-left: 0.2em; padding-left: 0.2em;
border-top: 0.1em dotted var(--bg-hover); border-top: 0.1em dotted var(--bg-hover);
} }
.changelog
{
text-align: right;
}

View File

@ -4,3 +4,9 @@
<div class="comtodon" data-domain="{{ .Site.Params.comtodon.domain }}" data-status="{{ .Params.comtodon }}" {{ with .Site.Params.comtodon.moderator }}data-moderator="{{ . }}"{{ end }}></div> <div class="comtodon" data-domain="{{ .Site.Params.comtodon.domain }}" data-status="{{ .Params.comtodon }}" {{ with .Site.Params.comtodon.moderator }}data-moderator="{{ . }}"{{ end }}></div>
<script type="application/javascript" src="/comtodon.js" defer></script> --> <script type="application/javascript" src="/comtodon.js" defer></script> -->
{{- end }} {{- end }}
<aside aria-labelledby="changelog_post" class="changelog">
{{ with .File }}
<a id="changelog_post" href="https://schlomp.space/tastytea/blog/commits/branch/main/content/{{ .Path }}">Changelog for this post</a>
{{ end }}
</aside>