2023-05-05 16:36:10 +02:00
|
|
|
<footer>
|
2024-03-25 11:04:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-05-18 20:32:09 +02:00
|
|
|
{{ $iconsize_footer := 32 }}
|
2023-05-19 16:04:19 +02:00
|
|
|
|
2023-05-19 16:15:21 +02:00
|
|
|
<div class="three-column-grid">
|
2024-03-11 14:59:44 +01:00
|
|
|
|
2023-05-19 16:15:21 +02:00
|
|
|
<div>
|
|
|
|
{{ $iconsize := .Site.Params.mediumIconSize }}
|
2024-02-28 14:28:29 +01:00
|
|
|
<h2>Follow us</h2>
|
2023-05-20 19:59:58 +02:00
|
|
|
|
|
|
|
<nav aria-label="Social media">
|
2023-05-19 16:15:21 +02:00
|
|
|
{{ if and
|
|
|
|
(.Site.Params.mastodon_handle)
|
|
|
|
(.Site.Params.mastodon_instance)
|
|
|
|
}}
|
2024-03-11 16:51:01 +01:00
|
|
|
<a class="icon" href="{{ .Site.Params.mastodon_instance }}@{{ .Site.Params.mastodon_handle }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "mastodon" "iconsize" $iconsize_footer "alt" "Icoon van Mastodon" "title" "Toots of Fediversity") }}</a>
|
2023-05-19 16:15:21 +02:00
|
|
|
{{ end }}
|
2024-03-11 16:51:01 +01:00
|
|
|
<a class="icon" href="{{ absURL "atom.xml" }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "rss" "iconsize" $iconsize_footer "alt" "Icoon van Atom-feed" "title" "RSS-feed for news") }}</a>
|
|
|
|
<a class="icon" href="{{ absURL "feed.json" }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "database" "iconsize" $iconsize_footer "alt" "Icoon van JSON-feed" "title" "JSON Feed for news") }}</a>
|
2023-05-20 19:59:58 +02:00
|
|
|
</nav>
|
2023-05-19 16:15:21 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-02-28 14:28:29 +01:00
|
|
|
<h2>Helpful links</h2>
|
2023-05-20 19:59:58 +02:00
|
|
|
<nav aria-label="Footer links">
|
|
|
|
<ul>
|
2023-06-01 20:16:32 +02:00
|
|
|
<li><a href="{{ relURL "contact/" }}">Contact</a></li>
|
|
|
|
<li><a href="{{ relURL "privacy/" }}">Privacy</a></li>
|
2024-03-11 14:59:44 +01:00
|
|
|
|
2023-05-20 19:59:58 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2023-05-19 16:15:21 +02:00
|
|
|
</div>
|
2024-03-25 11:04:27 +01:00
|
|
|
<div>test
|
|
|
|
<script>
|
|
|
|
var blogActor = '@fediversity@mastodon.fediversity.eu';
|
|
|
|
|
|
|
|
var showSubscribeModal = function () {
|
|
|
|
var modal = document.getElementById("subscribe-modal");
|
|
|
|
modal.style.display = "block";
|
|
|
|
};
|
|
|
|
|
|
|
|
var subscribeInMastodon = function () {
|
|
|
|
var mastodonUrl = document.getElementById('subscribe-mastodon-url-host').value;
|
|
|
|
|
|
|
|
if (mastodonUrl == undefined || mastodonUrl == '') {
|
|
|
|
document.getElementById('error-subscribe').style.display = 'block';
|
|
|
|
document.getElementById('error-subscribe').innerText = 'Please enter your Mastodon server URL. For example: techhub.social';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// validate that mastodonUrl is a valid domain with a dot
|
|
|
|
if (!mastodonUrl.includes('.')) {
|
|
|
|
document.getElementById('error-subscribe').style.display = 'block';
|
|
|
|
document.getElementById('error-subscribe').innerText = 'Please enter a valid Mastodon server URL. For example: techhub.social';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var mastodonUrl = document.getElementById('subscribe-mastodon-url-host').value;
|
|
|
|
|
|
|
|
if (!mastodonUrl.startsWith('http')) {
|
|
|
|
mastodonUrl = "https:\/\/" + mastodonUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
document.location.href = mastodonUrl + '/authorize_interaction?uri=' + encodeURIComponent(blogActor);
|
|
|
|
};
|
|
|
|
|
|
|
|
var closeBtnOnClick = function () {
|
|
|
|
var modal = document.getElementById("subscribe-modal");
|
|
|
|
modal.style.display = "none";
|
|
|
|
};
|
|
|
|
|
|
|
|
// When the user clicks anywhere outside of the modal, close it
|
|
|
|
window.onclick = function (event) {
|
|
|
|
if (event.target == modal) {
|
|
|
|
var modal = document.getElementById("subscribe-modal");
|
|
|
|
modal.style.display = "none";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="subscribe-modal" class="modal" style="display: none">
|
|
|
|
<div class="modal-content">
|
|
|
|
<span id="close-modal" class="close" onclick="closeBtnOnClick();">×</span>
|
|
|
|
<h3>Subscribe</h3>
|
|
|
|
<p>
|
|
|
|
You can subscribe to this blog by following with any existing account on any Mastodon server.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Where is your account hosted?</strong>
|
|
|
|
</p>
|
|
|
|
<form onsubmit="subscribeInMastodon(); return false;">
|
|
|
|
<span id="error-subscribe" style="display: none; color: red;"> </span>
|
|
|
|
<input type="text" class="mastodon-url-input" id="subscribe-mastodon-url-host" placeholder="ex. mastodon.social">
|
|
|
|
<input class="button-9" type="submit" value="Take me home!" onclick="replyToMastodon();">
|
|
|
|
</form>
|
|
|
|
<p></p>
|
|
|
|
<p>Not on Mastodon? <a class="join-mastodon-link" href="https://joinmastodon.org/">Join now!</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2023-05-19 16:15:21 +02:00
|
|
|
</div>
|
2023-05-15 11:04:58 +02:00
|
|
|
|
|
|
|
{{ if .Site.IsServer }}
|
2023-05-21 18:26:58 +02:00
|
|
|
<div style="background-color: yellow; border: 2px solid black; padding: 10px; margin-top: 20px;">
|
|
|
|
<strong>Ingebouwde webserver van Hugo gedetecteerd. Deze melding zal niet in productie worden getoond en is voor ontwikkeling.</strong><br>
|
|
|
|
<ul>
|
|
|
|
<li>Kind = {{ .Kind }}</li>
|
|
|
|
<li>Layout = {{ .Layout }}</li>
|
|
|
|
<li>Type = {{ .Type }}</li>
|
|
|
|
<li>Section = {{ .Section }}</li>
|
|
|
|
<li>BundleType = {{ .BundleType }}</li>
|
|
|
|
<li>IsPage = {{ .IsPage }}</li>
|
|
|
|
<li>IsSection = {{ .IsSection }}</li>
|
2023-06-21 15:34:33 +02:00
|
|
|
<li>Content types = {{ .Params.content_types }}</li>
|
2023-05-21 18:26:58 +02:00
|
|
|
</ul>
|
2023-05-15 11:04:58 +02:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-05-05 16:36:10 +02:00
|
|
|
</footer>
|