-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix broken links and some share icons and test mastodon page
- Loading branch information
Showing
7 changed files
with
145 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 'Het Laatste Nieuws' | ||
author: Just van den Broecke | ||
type: page | ||
date: 2024-06-03T19:47:39+00:00 | ||
--- | ||
|
||
## Laatste Nieuws van OSGeo.nl | ||
|
||
{{< mastodon "fosstodon.org" "osgeonl" 112553777381594010 10 >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- $s := T "share_on" }} | ||
<div class="post_share"> | ||
{{ $s }}: | ||
<!-- <a href="https://twitter.com/intent/tweet?text={{ .Title }}&url={{ .Permalink }}&tw_p=tweetbutton" class="twitter" title="{{ $s }} Twitter" target="_blank" rel="nofollow">--> | ||
<!-- {{ partial "sprite" (dict "icon" "twitter") }}--> | ||
<!-- </a>--> | ||
<!-- <a href="https://www.facebook.com/sharer.php?u={{ .Permalink }}&t={{ .Title }}" class="facebook" title="{{ $s }} Facebook" target="_blank" rel="nofollow">--> | ||
<!-- {{ partial "sprite" (dict "icon" "facebook") }}--> | ||
<!-- </a>--> | ||
<a href="#linkedinshare" id = "linkedinshare" class="linkedin" title="{{ $s }} LinkedIn" rel="nofollow"> | ||
{{ partial "sprite" (dict "icon" "linkedin") }} | ||
</a> | ||
<a href="{{ .Permalink }}" title="Copy Link" class="link link_yank"> | ||
{{ partial "sprite" (dict "icon" "copy") }} | ||
</a> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- get mastodon id as curl https://mapstodon.space/api/v1/accounts/lookup?acct=justb4 --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@idotj/mastodon-embed-timeline@latest/dist/mastodon-timeline.min.css" integrity="sha256-1UGgxsonaMCfOEnVOL89aMKSo3GEAmaRP0ISbsWa6lU=" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/@idotj/mastodon-embed-timeline@latest/dist/mastodon-timeline.umd.js" integrity="sha256-E6WPG6iq+qQIzvu3HPJJxoAeRdum5siq13x4ITjyxu8=" crossorigin="anonymous"></script> | ||
<div id="mt-container" class="mt-container"> | ||
<div class="mt-body" role="feed"> | ||
<div class="mt-loading-spinner"></div> | ||
</div> | ||
</div> | ||
<script> | ||
{{ $instance := (index .Params 0) }} | ||
{{ $user := (index .Params 1) }} | ||
{{ $userId := (index .Params 2) }} | ||
{{ $limit := (index .Params 3) }} | ||
window.addEventListener("load", () => { | ||
const myTimeline = new MastodonTimeline.Init({ | ||
instanceUrl: "https://{{ $instance }}", | ||
timelineType: "profile", | ||
userId: "{{ $userId }}", | ||
profileName: "@{{ $user }}", | ||
maxNbPostFetch: "{{ $limit }}", | ||
maxNbPostShow: "{{ $limit }}", | ||
defaultTheme: "dark", | ||
markdownBlockquote: true, | ||
hidePinnedPosts: true, | ||
hideReblog: true, | ||
}); | ||
}); | ||
</script> |