diff --git a/README.md b/README.md new file mode 100644 index 0000000..f9b1d12 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +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. + +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 multiple languages. +Translations of strings in the themes 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 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' diff --git a/i18n/se.toml b/i18n/se.toml deleted file mode 100644 index a6b3859..0000000 --- a/i18n/se.toml +++ /dev/null @@ -1,3 +0,0 @@ -Published = 'Publicerad' -By = 'Av %s' -'Show larger map' = 'Visa större karta' \ No newline at end of file diff --git a/i18n/sv.toml b/i18n/sv.toml new file mode 100644 index 0000000..06a9d6f --- /dev/null +++ b/i18n/sv.toml @@ -0,0 +1,9 @@ +Published = 'Publicerad' +Updated = 'Ändrad' +By = 'Av %s' +'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 diff --git a/i18n/tok.toml b/i18n/tok.toml new file mode 100644 index 0000000..698f629 --- /dev/null +++ b/i18n/tok.toml @@ -0,0 +1,3 @@ +Published = "tenpo toki" +By = "tan %s" +'Show larger map' = "o suli e sitelen ma" 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