forked from data.coop/website
English title translations, updates section
This commit is contained in:
parent
d40a9556ab
commit
f6196411ab
19
config.yaml
19
config.yaml
|
@ -27,20 +27,20 @@ languages:
|
||||||
LanguageName: English
|
LanguageName: English
|
||||||
menu:
|
menu:
|
||||||
nav:
|
nav:
|
||||||
- name: "Bliv Medlem"
|
- name: "Mebership"
|
||||||
url: "/membership/"
|
url: "/membership/"
|
||||||
weight: 1
|
weight: 1
|
||||||
- name: "Om os"
|
- name: "About us"
|
||||||
url: "/about/"
|
url: "/about/"
|
||||||
weight: 2
|
weight: 2
|
||||||
- name: "Tjenester"
|
- name: "Services"
|
||||||
url: "/services/"
|
url: "/services/"
|
||||||
weight: 3
|
weight: 3
|
||||||
- name: "Vedtægter"
|
- name: "Statutes"
|
||||||
url: "/rights/"
|
url: "/rights/"
|
||||||
weight: 4
|
weight: 4
|
||||||
- name: "Nyheder"
|
- name: "Updates"
|
||||||
url: "/news/"
|
url: "/updates/"
|
||||||
weight: 5
|
weight: 5
|
||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
|
@ -53,6 +53,9 @@ params:
|
||||||
description: "Et datakollektiv, der passer på dine data."
|
description: "Et datakollektiv, der passer på dine data."
|
||||||
includeBootstrapJs: true
|
includeBootstrapJs: true
|
||||||
|
|
||||||
|
# Sections displayed on front page
|
||||||
|
mainSections: ['updates']
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
nav:
|
nav:
|
||||||
- name: "Bliv Medlem"
|
- name: "Bliv Medlem"
|
||||||
|
@ -67,7 +70,7 @@ menu:
|
||||||
- name: "Vedtægter"
|
- name: "Vedtægter"
|
||||||
url: "/rights/"
|
url: "/rights/"
|
||||||
weight: 4
|
weight: 4
|
||||||
- name: "Nyheder"
|
- name: "Opdateringer"
|
||||||
url: "/news/"
|
url: "/updates/"
|
||||||
weight: 5
|
weight: 5
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: page
|
layout: page
|
||||||
title: Tjenester
|
title: Services
|
||||||
---
|
---
|
||||||
|
|
||||||
## Services of data.coop
|
## Services of data.coop
|
||||||
|
|
6
content/updates/_index.da.md
Normal file
6
content/updates/_index.da.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: Opdateringer
|
||||||
|
---
|
||||||
|
|
||||||
|
## Opdateringer og nyheder
|
6
content/updates/_index.en.md
Normal file
6
content/updates/_index.en.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: Updates
|
||||||
|
---
|
||||||
|
|
||||||
|
## Updates and news
|
|
@ -2,38 +2,34 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
<main aria-role="main">
|
<main aria-role="main">
|
||||||
<header class="homepage-header">
|
<header class="homepage-header">
|
||||||
<h1>{{.Title}}</h1>
|
<h1>{{.Title}}</h1>
|
||||||
{{ with .Params.subtitle }}
|
{{ with .Params.subtitle }}
|
||||||
<span class="subtitle">{{.}}</span>
|
<span class="subtitle">{{.}}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
<div class="homepage-content">
|
<div class="homepage-content">
|
||||||
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
{{ range first 10 .Site.RegularPages }}
|
|
||||||
{{ .Render "summary"}}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ .Site.Params.mainSections }}
|
||||||
{{ range $pages.ByPublishDate.Reverse }}
|
{{ $pages := where site.RegularPages "Type" "in" ("") }}
|
||||||
<p>
|
{{ range $pages.ByPublishDate.Reverse }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<p>
|
||||||
{{ $customDateFormat := "January 2, 2006" }}
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
|
{{ $customDateFormat := "January 2, 2006" }}
|
||||||
<br>
|
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
|
||||||
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
|
<br>
|
||||||
{{ partial "tags" . }}
|
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
|
||||||
{{ if eq .Site.Params.showPostSummary true }}
|
{{ partial "tags" . }}
|
||||||
<br>
|
{{ if eq .Site.Params.showPostSummary true }}
|
||||||
{{ .Summary }}
|
<br>
|
||||||
{{ end }}
|
{{ .Summary }}
|
||||||
</p>
|
{{ end }}
|
||||||
{{ end }}
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue