{{ .Scratch.Set "fedishare_page" true -}} {{ partial "head.html" . }} {{ .Scratch.Delete "fedishare_page" -}} {{ $projects := dict "calckey" "share?text={text}" "diaspora" "bookmarklet?title={title}¬es={description}&url={url}" "fedibird" "share?text={text}" "firefish" "share?text={text}" "foundkey" "share?text={text}" "friendica" "compose?title={title}&body={description}%0A{url}" "glitchcafe" "share?text={text}" "gnusocial" "notice/new?status_textarea={text}" "hometown" "share?text={text}" "hubzilla" "rpost?title={title}&body={description}%0A{url}" "kbin" "new/link?url={url}" "mastodon" "share?text={text}" "meisskey" "share?text={text}" "microdotblog" "post?text=[{title}]({url})%0A%0A{description}" "misskey" "share?text={text}" -}} {{ $domains := slice (dict "domain" "mastodon.social" "softwarename" "mastodon" "score" "100" "active_users_monthly" "1000") (dict "domain" "fedibird.com" "softwarename" "fedibird" "score" "100" "active_users_monthly" "1000") (dict "domain" "lemmy.world" "softwarename" "lemmy" "score" "100" "active_users_monthly" "1000") (dict "domain" "kbin.social" "softwarename" "kbin" "score" "100" "active_users_monthly" "1000") (dict "domain" "pixelfed.social" "softwarename" "pixelfed" "score" "100" "active_users_monthly" "1000") (dict "domain" "micro.blog" "softwarename" "microdotblog" "score" "100" "active_users_monthly" "1000") (dict "domain" "misskey.io" "softwarename" "misskey" "score" "100" "active_users_monthly" "1000") (dict "domain" "bookwyrm.social" "softwarename" "bookwyrm" "score" "100" "active_users_monthly" "1000") (dict "domain" "diasp.org" "softwarename" "diaspora" "score" "100" "active_users_monthly" "1000") -}} {{ if .Site.Params.fetchFediverseInstances -}} {{ with resources.GetRemote "https://api.fediverse.observer/" (dict "method" "post" "body" `{"query": "{nodes(softwarename: \"\"){softwarename domain score active_users_monthly}}"}` "headers" (dict "Content-Type" "application/json" ) ) -}} {{ with .Err -}} {{ warnf "Failed retrieving the list of Fediverse instances: %s" . -}} {{ else -}} {{ $domains = sort (. | unmarshal).data.nodes "domain" -}} {{ end -}} {{ end -}} {{ end -}} {{ range $domains -}} {{ if and .softwarename (isset $projects .softwarename) (gt .score 90) (gt .active_users_monthly 10) -}} {{ end -}} {{ end -}}

{{ i18n "shareOnTitle" }}{{ i18n "fediverse" }}