added atom feed

This commit is contained in:
Nils Schulte 2019-11-19 16:50:35 +01:00
parent 02ae20de4d
commit 40b7e45070
3 changed files with 19 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
public/* public/*
static/fonts/* static/fonts/*
resources/* resources/*
deploy.sh

View File

@ -5,3 +5,18 @@ title = "nilsschulte.de"
pygmentsCodeFences = true pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true pygmentsCodeFencesGuessSyntax = true
[outputs]
home = ["HTML"]
section = ["HTML", "RSS", "Atom"]
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats.RSS]
mediaType = "application/xml"
baseName = "rss"
[outputFormats.Atom]
mediaType = "application/atom+xml"
baseName = "atom"

View File

@ -5,11 +5,9 @@
<title>{{ partial "title.txt" . }}</title> <title>{{ partial "title.txt" . }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ range .AlternativeOutputFormats -}} {{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}" /> {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}} {{ end -}}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/normalize.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/normalize.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}\img\favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}\img\favicon.ico" />