forked from laurens/fediversity_website
Vervangen van baseURL door absURL, feeds aanpassen en nieuwsberichten omzetten naar type 'posts'
This commit is contained in:
parent
3085327196
commit
f7598dcf1f
|
@ -1,8 +1,8 @@
|
||||||
# Configuratie voor de website
|
# Configuratie voor de website
|
||||||
|
|
||||||
baseURL = "https://www3.nluug.nl"
|
baseURL = "https://www3.nluug.nl/"
|
||||||
languageCode = "nl"
|
languageCode = "nl"
|
||||||
defaultcontentlanguage = "nl"
|
defaultContentLanguage = "nl"
|
||||||
title = "NLUUG"
|
title = "NLUUG"
|
||||||
theme = "nluug"
|
theme = "nluug"
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
|
|
|
@ -12,6 +12,7 @@ related_members:
|
||||||
- mark-janssen
|
- mark-janssen
|
||||||
- patrick-reijnen
|
- patrick-reijnen
|
||||||
- ronny-lam
|
- ronny-lam
|
||||||
|
layout: news
|
||||||
signed_by: "Koen, Mark, Patrick, Ronny"
|
signed_by: "Koen, Mark, Patrick, Ronny"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ tags:
|
||||||
- website
|
- website
|
||||||
slug: nieuwe-website-in-aanbouw
|
slug: nieuwe-website-in-aanbouw
|
||||||
title: "Nieuwe website in aanbouw"
|
title: "Nieuwe website in aanbouw"
|
||||||
type: news
|
|
||||||
related_members:
|
related_members:
|
||||||
- michael-boelen
|
- michael-boelen
|
||||||
- patrick-reijnen
|
- patrick-reijnen
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
---
|
---
|
||||||
cascade:
|
cascade:
|
||||||
type: news
|
type: posts
|
||||||
|
layout: news
|
||||||
title: "Nieuwsberichten"
|
title: "Nieuwsberichten"
|
||||||
|
type: section
|
||||||
---
|
---
|
||||||
|
|
||||||
Hier staan alle nieuwsberichten
|
Hier staan alle nieuwsberichten
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
"version": "https://jsonfeed.org/version/1",
|
"version": "https://jsonfeed.org/version/1",
|
||||||
"title": "{{ .Site.Title }}",
|
"title": "{{ .Site.Title }}",
|
||||||
"home_page_url": "{{ .Site.BaseURL }}",
|
"home_page_url": "{{ .Site.BaseURL }}",
|
||||||
"feed_url": "{{ .Site.BaseURL }}feed.json",
|
"feed_url": "{{ absURL "feed.json" }}",
|
||||||
"description": "{{ .Site.Params.description }}",
|
"description": "{{ .Site.Params.description }}",
|
||||||
"favicon": "{{ .Site.BaseURL }}/assets/favicon.ico",
|
"favicon": "{{ absURL "assets/favicon.ico" }}",
|
||||||
"expired": false,
|
"expired": false,
|
||||||
"author": {
|
"author": {
|
||||||
"name": "{{ .Site.Params.author }}",
|
"name": "{{ .Site.Params.author }}",
|
||||||
|
|
|
@ -1,23 +1,24 @@
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<!-- Required channel elements -->
|
{{- $author := or (.Site.Params.author) (.Site.Author.name) -}}
|
||||||
|
{{- $language := or (.Site.LanguageCode) (.Site.Language.Lang) -}}
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
<description>{{ .Site.Params.description }}</description>
|
<description>{{ .Site.Params.description }}</description>
|
||||||
<link>{{ .Site.BaseURL }}</link>
|
<link>{{ absURL "" }}</link>
|
||||||
<!-- Optional channel elements -->
|
<language>{{ $language | default "en" }}</language>
|
||||||
<language>en</language>
|
<copyright>Copyright {{ now.Format "2006"}}, {{ $author }}</copyright>
|
||||||
<copyright>Copyright {{ now.Format "2006"}}, Calvin Tran</copyright>
|
<lastBuildDate>{{ .Site.LastChange.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
|
{{ with .Site.Params.webmaster }}
|
||||||
<generator>Hugo - gohugo.io</generator>
|
<webMaster>{{ . }}</webMaster>
|
||||||
|
{{ end }}
|
||||||
<docs>http://cyber.harvard.edu/rss/rss.html</docs>
|
<docs>http://cyber.harvard.edu/rss/rss.html</docs>
|
||||||
<atom:link href="{{ .Site.BaseURL }}/atom.xml" rel="self" type="application/atom+xml"/>
|
<atom:link href="{{ absURL "atom.xml" }}" rel="self" type="application/atom+xml"/>
|
||||||
{{ $author := or (.Site.Params.author) (.Site.Author.name) }}
|
{{ range where .Site.RegularPages "Type" "posts" }}
|
||||||
{{ range where .Site.RegularPages "Section" "posts" }}
|
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | plainify }}</description>
|
||||||
<author>{{ $author }}</author>
|
<author>{{ .Params.Author | default $author }}</author>
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
{{ template "_internal/opengraph.html" . }}
|
{{ template "_internal/opengraph.html" . }}
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
<link rel="icon" href="{{ .Site.BaseURL }}/assets/favicon.ico">
|
<link rel="icon" href="{{ absURL "assets/favicon.ico" }} ">
|
||||||
<link rel="alternate" type="application/atom+xml" title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}/atom.xml" />
|
<link rel="alternate" type="application/atom+xml" title="{{ .Site.Title }}" href="{{ absURL "atom.xml" }}" />
|
||||||
<link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}/feed.json" />
|
<link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ absURL "feed.json" }}" />
|
||||||
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
|
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
|
||||||
{{ $styles := resources.Get "scss/styles.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
{{ $styles := resources.Get "scss/styles.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
||||||
{{ $styles_extra := resources.Get "scss/_extra.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
{{ $styles_extra := resources.Get "scss/_extra.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
||||||
|
|
Reference in a new issue