Adding URLs to the individual services, both in list view and in single view. This is tranlated in both the english and danish versions of the site.

This commit is contained in:
Halfdan 2025-02-15 17:07:53 +01:00
parent 8e3bf629f8
commit cdce4e0760
19 changed files with 27 additions and 1 deletions

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Forgejo title: Forgejo
service_url: https://git.data.coop
service_badges: service_badges:
stability: positive stability: positive
secure_connection: positive secure_connection: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Forgejo title: Forgejo
service_url: https://git.data.coop
service_badges: service_badges:
stability: positive stability: positive
secure_connection: positive secure_connection: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: HedgeDoc title: HedgeDoc
service_url: https://pad.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: HedgeDoc title: HedgeDoc
service_url: https://pad.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Mastodon title: Mastodon
service_url: https://social.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Mastodon title: Mastodon
service_url: https://social.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Nextcloud title: Nextcloud
service_url: https://cloud.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Nextcloud title: Nextcloud
service_url: https://cloud.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Passit title: Passit
service_url: https://passit.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Passit title: Passit
service_url: https://passit.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: PrivateBin title: PrivateBin
service_url: https://paste.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: PrivateBin title: PrivateBin
service_url: https://paste.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Rallly title: Rallly
service_url: https://when.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -1,6 +1,7 @@
--- ---
layout: page layout: page
title: Rallly title: Rallly
service_url: https://when.data.coop
service_badges: service_badges:
stability: positive stability: positive
connection_security: positive connection_security: positive

View file

@ -22,3 +22,6 @@ other = "positiv"
other = "negativ" other = "negativ"
[service_badges_status_partial] [service_badges_status_partial]
other = "delvis" other = "delvis"
[service_url_text]
other = "Du kan finde <em>{{.Service_name}}</em> på <a href='{{.Service_url}}'>{{.Service_url}}</a>"

View file

@ -12,3 +12,6 @@ other = "Negative"
[tagline] [tagline]
other = "our data in our hands" other = "our data in our hands"
[service_url_text]
other = "You can find <em>{{.Service_name}}</em> at <a href='{{.Service_url}}'>{{.Service_url}}</a>"

View file

@ -0,0 +1,3 @@
{{ if .Params.Service_url }}
{{ i18n "service_url_text" (dict "Service_name" .Title "Service_url" .Params.Service_url) | safeHTML }}
{{ end }}

View file

@ -11,8 +11,9 @@
<dd> <dd>
{{ $summary := index (split .Content "</p>") 0 }} {{ $summary := index (split .Content "</p>") 0 }}
{{ $summary | plainify }} {{ $summary | plainify }}
<br />
{{ partial "service-url.html" .}}
</dd> </dd>
{{ end }} {{ end }}
</dl> </dl>

View file

@ -4,6 +4,8 @@
{{ .Content }} {{ .Content }}
<h3>{{ partial "service-url.html" . }}</h3>
{{- $page_params := .Params }} {{- $page_params := .Params }}
{{- $translated_badges := index $.Site.Data.badges .Lang }} {{- $translated_badges := index $.Site.Data.badges .Lang }}