English title translations, updates section

This commit is contained in:
Benjamin Bach 2022-01-08 01:45:05 +01:00
parent d40a9556ab
commit f6196411ab
Signed by: benjaoming
GPG Key ID: 7D49441634585664
6 changed files with 50 additions and 39 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
---
layout: page
title: Tjenester
title: Services
---
## Services of data.coop

View File

@ -0,0 +1,6 @@
---
layout: page
title: Opdateringer
---
## Opdateringer og nyheder

View File

@ -0,0 +1,6 @@
---
layout: page
title: Updates
---
## Updates and news

View File

@ -2,38 +2,34 @@
{{ define "main" }}
<main aria-role="main">
<header class="homepage-header">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
<header class="homepage-header">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
</main>
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
<br>
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
{{ partial "tags" . }}
{{ if eq .Site.Params.showPostSummary true }}
<br>
{{ .Summary }}
{{ end }}
</p>
{{ end }}
{{ .Site.Params.mainSections }}
{{ $pages := where site.RegularPages "Type" "in" ("") }}
{{ range $pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
<br>
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
{{ partial "tags" . }}
{{ if eq .Site.Params.showPostSummary true }}
<br>
{{ .Summary }}
{{ end }}
</p>
{{ end }}
{{ end }}