mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
atom feed shortcode fixes
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
{{ 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>
|
||||
<id>{{ "/" | absLangURL }}</id>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<author>
|
||||
<name>{{ .Site.Title }}</name>
|
||||
<uri>{{ .Permalink }}</uri>
|
||||
</author>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{- with .Site.Copyright }}
|
||||
<rights>{{ . }}</rights>
|
||||
{{- end }}
|
||||
{{- with .Site.Params.defaultImage }}
|
||||
<logo>{{ . | absURL }}</logo>
|
||||
{{- 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" }}
|
||||
{{ 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 }}
|
||||
{{- 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 }}
|
||||
{{- range (where .Site.RegularPages "Section" "notes") }}
|
||||
<entry>
|
||||
@@ -27,7 +30,8 @@
|
||||
</author>
|
||||
{{- end }}
|
||||
<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 | html }}
|
||||
</content>
|
||||
|
1
layouts/shortcodes/codepen.atom.xml
Symbolic link
1
layouts/shortcodes/codepen.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
codepen.rss.xml
|
1
layouts/shortcodes/facebook.atom.xml
Symbolic link
1
layouts/shortcodes/facebook.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
facebook.rss.xml
|
1
layouts/shortcodes/gh-buttons.atom.xml
Symbolic link
1
layouts/shortcodes/gh-buttons.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
gh-buttons.rss.xml
|
1
layouts/shortcodes/gist.atom.xml
Symbolic link
1
layouts/shortcodes/gist.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
gist.rss.xml
|
1
layouts/shortcodes/image.atom.xml
Symbolic link
1
layouts/shortcodes/image.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
image.rss.xml
|
1
layouts/shortcodes/instagram.atom.xml
Symbolic link
1
layouts/shortcodes/instagram.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
instagram.rss.xml
|
1
layouts/shortcodes/tweet.atom.xml
Symbolic link
1
layouts/shortcodes/tweet.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
tweet.rss.xml
|
1
layouts/shortcodes/video.atom.xml
Symbolic link
1
layouts/shortcodes/video.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
video.rss.xml
|
1
layouts/shortcodes/vimeo.atom.xml
Symbolic link
1
layouts/shortcodes/vimeo.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
vimeo.rss.xml
|
1
layouts/shortcodes/youtube.atom.xml
Symbolic link
1
layouts/shortcodes/youtube.atom.xml
Symbolic link
@@ -0,0 +1 @@
|
||||
youtube.rss.xml
|
Reference in New Issue
Block a user