diff --git a/config.toml b/config.toml index 8ba84b0..d42b6e6 100644 --- a/config.toml +++ b/config.toml @@ -1,8 +1,8 @@ # Configuratie voor de website -baseURL = "https://www3.nluug.nl" +baseURL = "https://www3.nluug.nl/" languageCode = "nl" -defaultcontentlanguage = "nl" +defaultContentLanguage = "nl" title = "NLUUG" theme = "nluug" enableGitInfo = true diff --git a/content/nieuws/2019-11-05-lening-voor-freedom-internet.rst b/content/nieuws/2019-11-05-lening-voor-freedom-internet.rst index a5ead5c..7bef7a6 100644 --- a/content/nieuws/2019-11-05-lening-voor-freedom-internet.rst +++ b/content/nieuws/2019-11-05-lening-voor-freedom-internet.rst @@ -12,6 +12,7 @@ related_members: - mark-janssen - patrick-reijnen - ronny-lam +layout: news signed_by: "Koen, Mark, Patrick, Ronny" --- diff --git a/content/nieuws/2023-05-06-nieuwe-website-in-aanbouw.rst b/content/nieuws/2023-05-06-nieuwe-website-in-aanbouw.rst index c854bae..f0d549b 100644 --- a/content/nieuws/2023-05-06-nieuwe-website-in-aanbouw.rst +++ b/content/nieuws/2023-05-06-nieuwe-website-in-aanbouw.rst @@ -10,7 +10,6 @@ tags: - website slug: nieuwe-website-in-aanbouw title: "Nieuwe website in aanbouw" -type: news related_members: - michael-boelen - patrick-reijnen diff --git a/content/nieuws/_index.rst b/content/nieuws/_index.rst index f0cee48..0acbdb9 100644 --- a/content/nieuws/_index.rst +++ b/content/nieuws/_index.rst @@ -1,7 +1,9 @@ --- cascade: - type: news + type: posts + layout: news title: "Nieuwsberichten" +type: section --- Hier staan alle nieuwsberichten diff --git a/themes/nluug/layouts/index.json b/themes/nluug/layouts/index.json index 0e2bb5a..cea02d1 100644 --- a/themes/nluug/layouts/index.json +++ b/themes/nluug/layouts/index.json @@ -2,9 +2,9 @@ "version": "https://jsonfeed.org/version/1", "title": "{{ .Site.Title }}", "home_page_url": "{{ .Site.BaseURL }}", - "feed_url": "{{ .Site.BaseURL }}feed.json", + "feed_url": "{{ absURL "feed.json" }}", "description": "{{ .Site.Params.description }}", - "favicon": "{{ .Site.BaseURL }}/assets/favicon.ico", + "favicon": "{{ absURL "assets/favicon.ico" }}", "expired": false, "author": { "name": "{{ .Site.Params.author }}", @@ -31,4 +31,4 @@ }{{ if ne (add $index 1) $len }},{{ end }} {{ end }} ] -} \ No newline at end of file +} diff --git a/themes/nluug/layouts/index.xml b/themes/nluug/layouts/index.xml index 5f448ef..4ccf207 100644 --- a/themes/nluug/layouts/index.xml +++ b/themes/nluug/layouts/index.xml @@ -1,23 +1,24 @@ - + {{- $author := or (.Site.Params.author) (.Site.Author.name) -}} + {{- $language := or (.Site.LanguageCode) (.Site.Language.Lang) -}} {{ .Site.Title }} {{ .Site.Params.description }} - {{ .Site.BaseURL }} - - en - Copyright {{ now.Format "2006"}}, Calvin Tran - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - Hugo - gohugo.io + {{ absURL "" }} + {{ $language | default "en" }} + Copyright {{ now.Format "2006"}}, {{ $author }} + {{ .Site.LastChange.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Params.webmaster }} + {{ . }} + {{ end }} http://cyber.harvard.edu/rss/rss.html - - {{ $author := or (.Site.Params.author) (.Site.Author.name) }} - {{ range where .Site.RegularPages "Section" "posts" }} + + {{ range where .Site.RegularPages "Type" "posts" }} {{ .Title }} {{ .Permalink }} - {{ .Content | html }} - {{ $author }} + {{ .Content | plainify }} + {{ .Params.Author | default $author }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} diff --git a/themes/nluug/layouts/partials/head.html b/themes/nluug/layouts/partials/head.html index d19dc8e..d9c7ade 100644 --- a/themes/nluug/layouts/partials/head.html +++ b/themes/nluug/layouts/partials/head.html @@ -8,9 +8,9 @@ {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} - - - + + + {{ $styles := resources.Get "scss/styles.scss" | toCSS (dict "outputStyle" "compressed") | minify }} {{ $styles_extra := resources.Get "scss/_extra.scss" | toCSS (dict "outputStyle" "compressed") | minify }} diff --git a/themes/nluug/layouts/news/single.html b/themes/nluug/layouts/posts/news.html similarity index 100% rename from themes/nluug/layouts/news/single.html rename to themes/nluug/layouts/posts/news.html