Configurable mastodon instance and small style fix

This commit is contained in:
Romain de Laage 2022-11-21 16:20:59 +01:00
parent 4c21f9098c
commit 5e26921aaa
Signed by: rdelaage
GPG Key ID: 534845FADDF0C329
3 changed files with 4 additions and 1 deletions

View File

@ -2,3 +2,5 @@ baseURL: 'http://example.org/'
languageCode: 'en-us'
title: 'My New Hugo Site'
theme: 'poc'
params:
mastodonurl: https://framapiaf.org

View File

@ -1,4 +1,4 @@
<div id="fedicomment-container" data-mastodonurl="https://framapiaf.org" data-postid="{{ .Params.postid }}">
<div id="fedicomment-container" data-mastodonurl="{{ if .Params.mastodonurl }}{{ .Params.mastodonurl }}{{ else }}{{ .Site.Params.mastodonurl }}{{ end }}" data-postid="{{ .Params.postid }}">
<div class="fedicomment-alert fedicomment-warning">Your browser must support JS to view comments</div>
</div>
<script src="/fedicomment.js"></script>

View File

@ -29,6 +29,7 @@
margin: 0;
margin-left: 5px;
padding: 0;
padding-left: 5px;
border-left: solid grey 1px;
}