From cdce4e0760fe0644a9b671c8d6e9f985d76c0801 Mon Sep 17 00:00:00 2001
From: Halfdan
Date: Sat, 15 Feb 2025 17:07:53 +0100
Subject: [PATCH] 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.
---
content/services/forgejo.da.md | 1 +
content/services/forgejo.en.md | 1 +
content/services/hedgedoc.da.md | 1 +
content/services/hedgedoc.en.md | 1 +
content/services/mastodon.da.md | 1 +
content/services/mastodon.en.md | 1 +
content/services/nextcloud.da.md | 1 +
content/services/nextcloud.en.md | 1 +
content/services/passit.da.md | 1 +
content/services/passit.en.md | 1 +
content/services/privatebin.da.md | 1 +
content/services/privatebin.en.md | 1 +
content/services/rallly.da.md | 1 +
content/services/rallly.en.md | 1 +
i18n/da.toml | 3 +++
i18n/en.toml | 3 +++
themes/datacoop2020/layouts/partials/service-url.html | 3 +++
themes/datacoop2020/layouts/services/list.html | 3 ++-
themes/datacoop2020/layouts/services/single.html | 2 ++
19 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 themes/datacoop2020/layouts/partials/service-url.html
diff --git a/content/services/forgejo.da.md b/content/services/forgejo.da.md
index 898d30f..558d685 100644
--- a/content/services/forgejo.da.md
+++ b/content/services/forgejo.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: Forgejo
+service_url: https://git.data.coop
service_badges:
stability: positive
secure_connection: positive
diff --git a/content/services/forgejo.en.md b/content/services/forgejo.en.md
index c6df49c..096bb0b 100644
--- a/content/services/forgejo.en.md
+++ b/content/services/forgejo.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: Forgejo
+service_url: https://git.data.coop
service_badges:
stability: positive
secure_connection: positive
diff --git a/content/services/hedgedoc.da.md b/content/services/hedgedoc.da.md
index b982091..75d8e46 100644
--- a/content/services/hedgedoc.da.md
+++ b/content/services/hedgedoc.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: HedgeDoc
+service_url: https://pad.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/hedgedoc.en.md b/content/services/hedgedoc.en.md
index b128359..ae1a954 100644
--- a/content/services/hedgedoc.en.md
+++ b/content/services/hedgedoc.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: HedgeDoc
+service_url: https://pad.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/mastodon.da.md b/content/services/mastodon.da.md
index 760bc28..776283d 100644
--- a/content/services/mastodon.da.md
+++ b/content/services/mastodon.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: Mastodon
+service_url: https://social.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/mastodon.en.md b/content/services/mastodon.en.md
index 5900ae8..3173a11 100644
--- a/content/services/mastodon.en.md
+++ b/content/services/mastodon.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: Mastodon
+service_url: https://social.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/nextcloud.da.md b/content/services/nextcloud.da.md
index 506fa5c..016c722 100644
--- a/content/services/nextcloud.da.md
+++ b/content/services/nextcloud.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: Nextcloud
+service_url: https://cloud.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/nextcloud.en.md b/content/services/nextcloud.en.md
index 64c166a..b22ab2c 100644
--- a/content/services/nextcloud.en.md
+++ b/content/services/nextcloud.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: Nextcloud
+service_url: https://cloud.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/passit.da.md b/content/services/passit.da.md
index 91c0238..131f00c 100644
--- a/content/services/passit.da.md
+++ b/content/services/passit.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: Passit
+service_url: https://passit.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/passit.en.md b/content/services/passit.en.md
index 1f44f84..9c1e4a5 100644
--- a/content/services/passit.en.md
+++ b/content/services/passit.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: Passit
+service_url: https://passit.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/privatebin.da.md b/content/services/privatebin.da.md
index 9a8b8ab..d73fa5f 100644
--- a/content/services/privatebin.da.md
+++ b/content/services/privatebin.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: PrivateBin
+service_url: https://paste.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/privatebin.en.md b/content/services/privatebin.en.md
index dbbb345..41f1ac2 100644
--- a/content/services/privatebin.en.md
+++ b/content/services/privatebin.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: PrivateBin
+service_url: https://paste.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/rallly.da.md b/content/services/rallly.da.md
index ad650c5..9263a81 100644
--- a/content/services/rallly.da.md
+++ b/content/services/rallly.da.md
@@ -1,6 +1,7 @@
---
layout: page
title: Rallly
+service_url: https://when.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/content/services/rallly.en.md b/content/services/rallly.en.md
index fe2eb13..95bc97f 100644
--- a/content/services/rallly.en.md
+++ b/content/services/rallly.en.md
@@ -1,6 +1,7 @@
---
layout: page
title: Rallly
+service_url: https://when.data.coop
service_badges:
stability: positive
connection_security: positive
diff --git a/i18n/da.toml b/i18n/da.toml
index ae7a532..bee7745 100644
--- a/i18n/da.toml
+++ b/i18n/da.toml
@@ -22,3 +22,6 @@ other = "positiv"
other = "negativ"
[service_badges_status_partial]
other = "delvis"
+
+[service_url_text]
+other = "Du kan finde {{.Service_name}} på {{.Service_url}}"
diff --git a/i18n/en.toml b/i18n/en.toml
index f54ab3f..fa978f4 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -12,3 +12,6 @@ other = "Negative"
[tagline]
other = "our data in our hands"
+
+[service_url_text]
+other = "You can find {{.Service_name}} at {{.Service_url}}"
diff --git a/themes/datacoop2020/layouts/partials/service-url.html b/themes/datacoop2020/layouts/partials/service-url.html
new file mode 100644
index 0000000..6d4edcd
--- /dev/null
+++ b/themes/datacoop2020/layouts/partials/service-url.html
@@ -0,0 +1,3 @@
+{{ if .Params.Service_url }}
+ {{ i18n "service_url_text" (dict "Service_name" .Title "Service_url" .Params.Service_url) | safeHTML }}
+{{ end }}
diff --git a/themes/datacoop2020/layouts/services/list.html b/themes/datacoop2020/layouts/services/list.html
index ea0dcb8..4b968eb 100644
--- a/themes/datacoop2020/layouts/services/list.html
+++ b/themes/datacoop2020/layouts/services/list.html
@@ -11,8 +11,9 @@
{{ $summary := index (split .Content "
") 0 }}
{{ $summary | plainify }}
+
+ {{ partial "service-url.html" .}}
-
{{ end }}
diff --git a/themes/datacoop2020/layouts/services/single.html b/themes/datacoop2020/layouts/services/single.html
index baea739..385112a 100644
--- a/themes/datacoop2020/layouts/services/single.html
+++ b/themes/datacoop2020/layouts/services/single.html
@@ -4,6 +4,8 @@
{{ .Content }}
+{{ partial "service-url.html" . }}
+
{{- $page_params := .Params }}
{{- $translated_badges := index $.Site.Data.badges .Lang }}