1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-28 02:30:28 -04:00

atom feed shortcode fixes

This commit is contained in:
Jake Jarvis 2020-04-07 09:58:11 -04:00
parent 51101e7865
commit bfc11b4600
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
12 changed files with 23 additions and 9 deletions

View File

@ -1,21 +1,24 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ .Site.LanguageCode }}"> <feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title> <title>{{ .Site.Title }}</title>
<id>{{ "/" | absLangURL }}</id> <id>{{ .Permalink }}</id>
<author> <author>
<name>{{ .Site.Title }}</name> <name>{{ .Site.Title }}</name>
<uri>{{ .Permalink }}</uri> <uri>{{ .Permalink }}</uri>
</author> </author>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
{{- with .Site.Copyright }}
<rights>{{ . }}</rights>
{{- end }}
{{- with .Site.Params.defaultImage }} {{- with .Site.Params.defaultImage }}
<logo>{{ . | absURL }}</logo> <logo>{{ . | absURL }}</logo>
{{- end }} {{- end }}
<updated>{{ dateFormat "2006-01-02T15:04:05Z" now.UTC | safeHTML }}</updated> <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
{{- with .OutputFormats.Get "ATOM" }} {{- with .OutputFormats.Get "ATOM" }}
{{ printf `<link rel="self" type="%s" href="%s" />` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{ printf `<link rel="self" type="%s" href="%s" />` .MediaType.Type .Permalink | safeHTML }}
{{- end }} {{- end }}
{{- range .AlternativeOutputFormats }} {{- range .AlternativeOutputFormats }}
{{ printf `<link rel="alternate" type="%s" href="%s" />` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{ printf `<link rel="alternate" type="%s" href="%s" />` .MediaType.Type .Permalink | safeHTML }}
{{- end }} {{- end }}
{{- range (where .Site.RegularPages "Section" "notes") }} {{- range (where .Site.RegularPages "Section" "notes") }}
<entry> <entry>
@ -27,7 +30,8 @@
</author> </author>
{{- end }} {{- end }}
<id>{{ .Permalink }}</id> <id>{{ .Permalink }}</id>
<published>{{ dateFormat "2006-01-02T15:04:05Z" .Date.UTC | safeHTML }}</published> <published>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</published>
<updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<content type="html"> <content type="html">
{{ .Content | html }} {{ .Content | html }}
</content> </content>

View File

@ -0,0 +1 @@
codepen.rss.xml

View File

@ -0,0 +1 @@
facebook.rss.xml

View File

@ -0,0 +1 @@
gh-buttons.rss.xml

View File

@ -0,0 +1 @@
gist.rss.xml

View File

@ -0,0 +1 @@
image.rss.xml

View File

@ -0,0 +1 @@
instagram.rss.xml

View File

@ -0,0 +1 @@
tweet.rss.xml

View File

@ -0,0 +1 @@
video.rss.xml

View File

@ -0,0 +1 @@
vimeo.rss.xml

View File

@ -0,0 +1 @@
youtube.rss.xml

View File

@ -1613,9 +1613,9 @@ ee-first@1.1.1:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
electron-to-chromium@^1.3.390: electron-to-chromium@^1.3.390:
version "1.3.397" version "1.3.398"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.397.tgz#db640c2e67b08d590a504c20b56904537aa2bafa" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.398.tgz#4c01e29091bf39e578ac3f66c1f157d92fa5725d"
integrity sha512-zcUd1p/7yzTSdWkCTrqGvbnEOASy96d0RJL/lc5BDJoO23Z3G/VHd0yIPbguDU9n8QNUTCigLO7oEdtOb7fp2A== integrity sha512-BJjxuWLKFbM5axH3vES7HKMQgAknq9PZHBkMK/rEXUQG9i1Iw5R+6hGkm6GtsQSANjSUrh/a6m32nzCNDNo/+w==
elegant-spinner@^1.0.1: elegant-spinner@^1.0.1:
version "1.0.1" version "1.0.1"