From f6196411ab106c558b8fcfec0503d2cad3a93094 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sat, 8 Jan 2022 01:45:05 +0100 Subject: [PATCH] English title translations, updates section --- config.yaml | 19 ++++--- content/services/_index.en.md | 2 +- content/updates/_index.da.md | 6 ++ content/updates/_index.en.md | 6 ++ .../newsite.en.md} | 0 themes/datacoop2020/layouts/index.html | 56 +++++++++---------- 6 files changed, 50 insertions(+), 39 deletions(-) create mode 100644 content/updates/_index.da.md create mode 100644 content/updates/_index.en.md rename content/{post/creating-a-new-theme.en.md => updates/newsite.en.md} (100%) diff --git a/config.yaml b/config.yaml index 7a1368e..048349f 100644 --- a/config.yaml +++ b/config.yaml @@ -27,20 +27,20 @@ languages: LanguageName: English menu: nav: - - name: "Bliv Medlem" + - name: "Mebership" url: "/membership/" weight: 1 - - name: "Om os" + - name: "About us" url: "/about/" weight: 2 - - name: "Tjenester" + - name: "Services" url: "/services/" weight: 3 - - name: "Vedtægter" + - name: "Statutes" url: "/rights/" weight: 4 - - name: "Nyheder" - url: "/news/" + - name: "Updates" + url: "/updates/" weight: 5 taxonomies: @@ -53,6 +53,9 @@ params: description: "Et datakollektiv, der passer på dine data." includeBootstrapJs: true +# Sections displayed on front page +mainSections: ['updates'] + menu: nav: - name: "Bliv Medlem" @@ -67,7 +70,7 @@ menu: - name: "Vedtægter" url: "/rights/" weight: 4 - - name: "Nyheder" - url: "/news/" + - name: "Opdateringer" + url: "/updates/" weight: 5 diff --git a/content/services/_index.en.md b/content/services/_index.en.md index 0314c89..5be455c 100644 --- a/content/services/_index.en.md +++ b/content/services/_index.en.md @@ -1,6 +1,6 @@ --- layout: page -title: Tjenester +title: Services --- ## Services of data.coop diff --git a/content/updates/_index.da.md b/content/updates/_index.da.md new file mode 100644 index 0000000..be84ee7 --- /dev/null +++ b/content/updates/_index.da.md @@ -0,0 +1,6 @@ +--- +layout: page +title: Opdateringer +--- + +## Opdateringer og nyheder diff --git a/content/updates/_index.en.md b/content/updates/_index.en.md new file mode 100644 index 0000000..f4f877c --- /dev/null +++ b/content/updates/_index.en.md @@ -0,0 +1,6 @@ +--- +layout: page +title: Updates +--- + +## Updates and news diff --git a/content/post/creating-a-new-theme.en.md b/content/updates/newsite.en.md similarity index 100% rename from content/post/creating-a-new-theme.en.md rename to content/updates/newsite.en.md diff --git a/themes/datacoop2020/layouts/index.html b/themes/datacoop2020/layouts/index.html index 3147e52..aa53918 100644 --- a/themes/datacoop2020/layouts/index.html +++ b/themes/datacoop2020/layouts/index.html @@ -2,38 +2,34 @@ {{ define "main" }}
-
-

{{.Title}}

- {{ with .Params.subtitle }} - {{.}} - {{ end }} -
-
- - {{.Content}} -
-
- {{ range first 10 .Site.RegularPages }} - {{ .Render "summary"}} - {{ end }} -
+
+

{{.Title}}

+ {{ with .Params.subtitle }} + {{.}} + {{ end }} +
+
+ + {{.Content}} +
-{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ range $pages.ByPublishDate.Reverse }} -

- {{ .Title | markdownify }} - {{ $customDateFormat := "January 2, 2006" }} - {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} -
- {{ .PublishDate.Format $customDateFormat }} - {{ partial "tags" . }} - {{ if eq .Site.Params.showPostSummary true }} -
- {{ .Summary }} - {{ end }} -

-{{ end }} + {{ .Site.Params.mainSections }} + {{ $pages := where site.RegularPages "Type" "in" ("") }} + {{ range $pages.ByPublishDate.Reverse }} +

+ {{ .Title | markdownify }} + {{ $customDateFormat := "January 2, 2006" }} + {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} +
+ {{ .PublishDate.Format $customDateFormat }} + {{ partial "tags" . }} + {{ if eq .Site.Params.showPostSummary true }} +
+ {{ .Summary }} + {{ end }} +

+ {{ end }} {{ end }}