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