From 9be694621f29bebddf304fa293c6cc7833916df0 Mon Sep 17 00:00:00 2001 From: mikael Date: Mon, 26 Jan 2026 12:20:29 +0100 Subject: [PATCH 01/19] Fix right aligned footer logos --- assets/css/footer.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/css/footer.scss b/assets/css/footer.scss index 76bf64e..e2d1c30 100644 --- a/assets/css/footer.scss +++ b/assets/css/footer.scss @@ -33,6 +33,9 @@ footer { justify-items: end; a { display: block; + img { + margin-left: auto; + } } } From 7d650337f1a2aa5ff8233de409e2308823cbec6a Mon Sep 17 00:00:00 2001 From: irl Date: Sun, 8 Feb 2026 13:41:17 +0000 Subject: [PATCH 02/19] feat: move example content to an example directory --- {content => example/content}/_index.md | 0 {content => example/content}/posts/_index.md | 0 {content => example/content}/posts/post-1.md | 0 {content => example/content}/posts/post-2.md | 0 .../content}/posts/post-3/bryce-canyon.jpg | Bin {content => example/content}/posts/post-3/index.md | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename {content => example/content}/_index.md (100%) rename {content => example/content}/posts/_index.md (100%) rename {content => example/content}/posts/post-1.md (100%) rename {content => example/content}/posts/post-2.md (100%) rename {content => example/content}/posts/post-3/bryce-canyon.jpg (100%) rename {content => example/content}/posts/post-3/index.md (100%) diff --git a/content/_index.md b/example/content/_index.md similarity index 100% rename from content/_index.md rename to example/content/_index.md diff --git a/content/posts/_index.md b/example/content/posts/_index.md similarity index 100% rename from content/posts/_index.md rename to example/content/posts/_index.md diff --git a/content/posts/post-1.md b/example/content/posts/post-1.md similarity index 100% rename from content/posts/post-1.md rename to example/content/posts/post-1.md diff --git a/content/posts/post-2.md b/example/content/posts/post-2.md similarity index 100% rename from content/posts/post-2.md rename to example/content/posts/post-2.md diff --git a/content/posts/post-3/bryce-canyon.jpg b/example/content/posts/post-3/bryce-canyon.jpg similarity index 100% rename from content/posts/post-3/bryce-canyon.jpg rename to example/content/posts/post-3/bryce-canyon.jpg diff --git a/content/posts/post-3/index.md b/example/content/posts/post-3/index.md similarity index 100% rename from content/posts/post-3/index.md rename to example/content/posts/post-3/index.md From bcdfb3c0fdfc2857486d397c9825988cd0eaf082 Mon Sep 17 00:00:00 2001 From: irl Date: Sun, 8 Feb 2026 13:41:32 +0000 Subject: [PATCH 03/19] feat: layout for GLNs --- assets/css/datapage.scss | 47 ++++++++++++++++++++++++++++++++++++++++ layouts/gln.html | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 assets/css/datapage.scss create mode 100644 layouts/gln.html diff --git a/assets/css/datapage.scss b/assets/css/datapage.scss new file mode 100644 index 0000000..8083528 --- /dev/null +++ b/assets/css/datapage.scss @@ -0,0 +1,47 @@ +@use "hugo:vars" as v; + + +@media(min-width: v.$bp_mobile) { + .datapage { + display: flex; + flex-direction: row; + gap: 1rem; + } + + .datapage__content { + order: 1; + } + + .datapage__data { + order: 2; + min-width: 350px; + } + + .datapage__datacard { + background-color: white; + box-shadow: 0 1.5rem 4rem rgba(22,28,45,0.05) !important; + padding: 1.5rem; + } +} + +.datapage__datacard { + address { + white-space: preserve-breaks; + font-style: normal; + } + + h3 { + font-weight: 600; + } + + h4 { + color: v.$color_tertiary; + font-variant: small-caps; + } +} + +.datapage__content { + img { + max-width: 100%; + } +} \ No newline at end of file diff --git a/layouts/gln.html b/layouts/gln.html new file mode 100644 index 0000000..1f72f2b --- /dev/null +++ b/layouts/gln.html @@ -0,0 +1,39 @@ +{{ define "main" }} + +

{{ .Title }}

+ + {{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Lastmod | time.Format ":date_long" }} +
+ {{ T "Updated" }} + +
+
+
+
+

{{ T "Location Details" }}

+

{{ T "Address" }}

+
{{ .Params.address }}
+

+ {{ T "Telephone" }} +

+

+ {{ .Params.telephone }} +

+

+ GLN +

+

+ {{ with resources.Get (printf "/images/gln/%s.png" .Params.gln) }} + {{ .Params.gln }} + {{ end }} +

+
+
+
+ + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +
+
+{{ end }} From fd8d2641b92f3f51d9b1e0c4d5603696ecd8ad94 Mon Sep 17 00:00:00 2001 From: irl Date: Sun, 8 Feb 2026 13:41:56 +0000 Subject: [PATCH 04/19] fix: responsive fixes --- assets/css/contact.scss | 4 ++++ assets/css/flex-section.scss | 5 +++++ assets/css/full-section.scss | 4 ++++ assets/css/half-section.scss | 9 +++++++-- assets/css/team.scss | 4 ++++ 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/assets/css/contact.scss b/assets/css/contact.scss index 7e1e631..b192cdb 100644 --- a/assets/css/contact.scss +++ b/assets/css/contact.scss @@ -51,6 +51,10 @@ align-items: center; flex-direction: column; padding: 0 20px; + + @media (max-width: v.$bp_mobile) { + padding: 0; + } } .contact-method__name { diff --git a/assets/css/flex-section.scss b/assets/css/flex-section.scss index 7ab60c4..906da23 100644 --- a/assets/css/flex-section.scss +++ b/assets/css/flex-section.scss @@ -2,6 +2,11 @@ .flex-section { margin: 48px 95px; + + @media (max-width: v.$bp_mobile) { + margin-left: 0; + margin-right: 0; + } } .flex-section__title { diff --git a/assets/css/full-section.scss b/assets/css/full-section.scss index 7e248c2..168d0ba 100644 --- a/assets/css/full-section.scss +++ b/assets/css/full-section.scss @@ -10,6 +10,10 @@ box-sizing: border-box; max-width: v.$max_content_width; } + + @media (max-width: v.$bp_mobile) { + padding: 10px 20px; + } } .full-section__content { diff --git a/assets/css/half-section.scss b/assets/css/half-section.scss index b8db7e3..79ce08b 100644 --- a/assets/css/half-section.scss +++ b/assets/css/half-section.scss @@ -5,11 +5,16 @@ display: flex; justify-content: center; - &>div { - flex: 0 0 50%; + & > div { box-sizing: border-box; max-width: calc(v.$max_content_width / 2); } + + @media (min-width: v.$bp_mobile) { + & > div { + flex: 0 0 50%; + } + } } .half-section__content { diff --git a/assets/css/team.scss b/assets/css/team.scss index 02c6565..ee5d4b9 100644 --- a/assets/css/team.scss +++ b/assets/css/team.scss @@ -9,6 +9,10 @@ flex-direction: column; padding: 0 20px; margin-bottom: 2rem; + + @media (max-width: v.$bp_mobile) { + padding: 0; + } } .team-member__photo { From ac636aeb21edebffc6f744bf966187ab21601d75 Mon Sep 17 00:00:00 2001 From: irl Date: Sun, 8 Feb 2026 14:18:26 +0000 Subject: [PATCH 05/19] misc: add .hugo_build.lock to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index fd24942..623a515 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ _gen *.njsproj *.sln *.sw? + +.hugo_build.lock From 8a6a4ad43cb1a93587f80cee5e0501cdf1016b66 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 19:32:12 +0000 Subject: [PATCH 06/19] Add BSD-2-clause LICENCE file --- LICENCE | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 LICENCE diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..12cc60a --- /dev/null +++ b/LICENCE @@ -0,0 +1,22 @@ +Copyright 2021-2026 SR2 Communications Limited. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list + of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or other + materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. \ No newline at end of file From 40e78494ec1b3b59b3d93818901c275bee612cf2 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 19:32:54 +0000 Subject: [PATCH 07/19] fix: use sv for swedish --- i18n/{se.toml => sv.toml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename i18n/{se.toml => sv.toml} (100%) diff --git a/i18n/se.toml b/i18n/sv.toml similarity index 100% rename from i18n/se.toml rename to i18n/sv.toml From a65dc757fe8b56fdd2120c77289d2df84e27d902 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 19:50:32 +0000 Subject: [PATCH 08/19] Add README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..34783ac --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +SR2's Hugo Theme +================ + + +[![Translation status](https://hosted.weblate.org/widget/sr2/hugo-sr2/svg-badge.svg)](https://hosted.weblate.org/engage/sr2/) +[![License](https://img.shields.io/badge/License-BSD_2--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause) + +A Hugo theme created for SR2, with some simple page and blog layouts. + +Translations +------------ + +The theme is created to support other languages. +Translations are managed on Weblate. + + +Translation status + + +Licence & Copyright +------------------- + +© SR2 Communications Limited. See [LICENCE](./LICENCE) for details of the BSD 2 clause licence. \ No newline at end of file From 108a805f2761552efb8a4ac2fc87f1b3e520452e Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 19:54:10 +0000 Subject: [PATCH 09/19] Add examples of usage to README --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34783ac..f9b1d12 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,18 @@ SR2's Hugo Theme A Hugo theme created for SR2, with some simple page and blog layouts. +Examples +-------- + + * [SR2 Communications](https://www.sr2.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2.uk/)) + * [SR2 Professional Services](https://www.sr2pro.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2pro.uk/)) + * [499-501 Union Street (Management) Limited](https://www.499501.com/) ([Source Code](https://guardianproject.dev/sr2/www.499501.com/)) + Translations ------------ -The theme is created to support other languages. -Translations are managed on Weblate. +The theme is created to support multiple languages. +Translations of strings in the themes are managed on Weblate. Translation status From 96419e08dc0bfc579f4fb1fa0af7585147b31a3f Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 20:56:22 +0100 Subject: [PATCH 10/19] Added translation using Weblate (Toki Pona) --- i18n/tok.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 i18n/tok.toml diff --git a/i18n/tok.toml b/i18n/tok.toml new file mode 100644 index 0000000..c2f0441 --- /dev/null +++ b/i18n/tok.toml @@ -0,0 +1,3 @@ +Published = "" +By = "" +'Show larger map' = "" From 3a539901bbdd07e86ff4fafdade172f151215603 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 20:28:00 +0000 Subject: [PATCH 11/19] feat: add more strings for translation --- i18n/en.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/i18n/en.toml b/i18n/en.toml index 59bb26c..1198bab 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,3 +1,10 @@ Published = 'Published' +Updated = 'Updated' By = 'By %s' -'Show larger map' = 'Show larger map' \ No newline at end of file +'Show larger map' = 'Show larger map' +Telephone = 'Telephone' +Email = 'Email' +Fax = 'Fax' +'Address' = 'Address' +'Our Team' = 'Our Team' +'Contact Us' = 'Contact Us' From 1f4ee5dd22b58eeb6a4d723b5c3d6a958235430d Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 21:12:14 +0100 Subject: [PATCH 12/19] Translated using Weblate (Toki Pona) Currently translated at 100.0% (3 of 3 strings) Translation: sr2/hugo-sr2 Translate-URL: https://hosted.weblate.org/projects/sr2/hugo-sr2/tok/ --- i18n/tok.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i18n/tok.toml b/i18n/tok.toml index c2f0441..698f629 100644 --- a/i18n/tok.toml +++ b/i18n/tok.toml @@ -1,3 +1,3 @@ -Published = "" -By = "" -'Show larger map' = "" +Published = "tenpo toki" +By = "tan %s" +'Show larger map' = "o suli e sitelen ma" From cdad1ec38f41fbe99021a5297df63f195be63935 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 21:11:56 +0100 Subject: [PATCH 13/19] Translated using Weblate (Swedish) Currently translated at 100.0% (3 of 3 strings) Translation: sr2/hugo-sr2 Translate-URL: https://hosted.weblate.org/projects/sr2/hugo-sr2/sv/ --- i18n/sv.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/sv.toml b/i18n/sv.toml index a6b3859..9403b85 100644 --- a/i18n/sv.toml +++ b/i18n/sv.toml @@ -1,3 +1,3 @@ Published = 'Publicerad' By = 'Av %s' -'Show larger map' = 'Visa större karta' \ No newline at end of file +'Show larger map' = 'Visa större karta' From 46c881aa5e3fec0e68266623533183802525ac0e Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 20:29:58 +0000 Subject: [PATCH 14/19] feat: add sv translations --- i18n/sv.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i18n/sv.toml b/i18n/sv.toml index a6b3859..06a9d6f 100644 --- a/i18n/sv.toml +++ b/i18n/sv.toml @@ -1,3 +1,9 @@ Published = 'Publicerad' +Updated = 'Ändrad' By = 'Av %s' -'Show larger map' = 'Visa större karta' \ No newline at end of file +'Show larger map' = 'Visa större karta' +Telephone = 'Telefon' +Email = 'Epost' +Fax = 'Fax' +'Our Team' = 'Vårt Team' +'Contact Us' = 'Kontakta oss' \ No newline at end of file From 938f5efabde46140b42e91eaadd9d6c691361448 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Mon, 2 Mar 2026 10:00:07 +0100 Subject: [PATCH 15/19] Add more meta data and move scripts to site Makes it easy to add custom scripts by overriding _partials/scripts.html --- layouts/_partials/head.html | 40 +++++++++++++---------------- layouts/_partials/head/scripts.html | 2 ++ 2 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 layouts/_partials/head/scripts.html diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 9b5bf1b..00df7ed 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -9,31 +9,27 @@ {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} +{{ partial "head/scripts.html" . }} -{{ if not .IsHome }} - - + + +{{- if .Description }} + - -{{ end }} -{{ if eq .Name "Contact" }} - - - -{{ end }} +{{- end }} +{{- if .Params.MetaKeywords }} + +{{- end }} +{{- if .Params.MetaAuthor }} + +{{- end }} + + + + + + diff --git a/layouts/_partials/head/scripts.html b/layouts/_partials/head/scripts.html new file mode 100644 index 0000000..10b7d59 --- /dev/null +++ b/layouts/_partials/head/scripts.html @@ -0,0 +1,2 @@ + + \ No newline at end of file From e6f91a16c5466bcf57221fb8db0a8ec59eb2e1f7 Mon Sep 17 00:00:00 2001 From: irl Date: Sat, 7 Mar 2026 09:42:22 +0000 Subject: [PATCH 16/19] doc: adds Dynamic5 example to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f9b1d12..277f8f7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Examples * [SR2 Communications](https://www.sr2.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2.uk/)) * [SR2 Professional Services](https://www.sr2pro.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2pro.uk/)) * [499-501 Union Street (Management) Limited](https://www.499501.com/) ([Source Code](https://guardianproject.dev/sr2/www.499501.com/)) + * [Dynamic5 AB](https://dynamic5.com/) Translations ------------ From 189cdab5c705c8a4006ad76983749b0974d4201f Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 21:50:19 +0100 Subject: [PATCH 17/19] Translated using Weblate (Toki Pona) Currently translated at 100.0% (10 of 10 strings) Translation: SR2/hugo-sr2 Translate-URL: https://hosted.weblate.org/projects/sr2/hugo-sr2/tok/ --- i18n/tok.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/i18n/tok.toml b/i18n/tok.toml index 698f629..048259c 100644 --- a/i18n/tok.toml +++ b/i18n/tok.toml @@ -1,3 +1,10 @@ Published = "tenpo toki" By = "tan %s" 'Show larger map' = "o suli e sitelen ma" +Updated = "tenpo ante" +Telephone = "nanpa pi toki weka" +Email = "sitelen kon" +Fax = "nanpa pi sitelen weka" +Address = "nimi ma" +"Our Team" = "kulupu pali mi" +"Contact Us" = "o toki e mi" From f7e91119a53b955deddd9e50f1972fca261ecd15 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Feb 2026 21:40:33 +0100 Subject: [PATCH 18/19] Translated using Weblate (Swedish) Currently translated at 100.0% (10 of 10 strings) Translation: SR2/hugo-sr2 Translate-URL: https://hosted.weblate.org/projects/sr2/hugo-sr2/sv/ --- i18n/sv.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i18n/sv.toml b/i18n/sv.toml index 06a9d6f..5280cbf 100644 --- a/i18n/sv.toml +++ b/i18n/sv.toml @@ -6,4 +6,5 @@ Telephone = 'Telefon' Email = 'Epost' Fax = 'Fax' 'Our Team' = 'Vårt Team' -'Contact Us' = 'Kontakta oss' \ No newline at end of file +'Contact Us' = "Kontakta Oss" +Address = "Adress" From 2552bc1e9cf8c99980b83f954606b9aa12a178ff Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 17 Mar 2026 19:57:53 +0000 Subject: [PATCH 19/19] feat: add status indicator option to footer links --- layouts/_partials/footer.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index e098ee9..af29a03 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -31,8 +31,11 @@ {{ if .icon }} {{ end }} - {{ .text }} + {{ .text }} + {{ if .status }} + + {{ end }} + {{ else if .caption }} {{ else if .logo }} @@ -68,8 +71,11 @@ {{ if .icon }} {{ end }} - {{ .text }} + {{ .text }} + {{ if .status }} + + {{ end }} + {{ else if .caption }} {{ else if .logo }}