From d9fb3ff9b9f9416c141953a9f21ebe24743dcbb1 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 15 Dec 2019 10:52:41 -0500 Subject: [PATCH] full-text RSS feed involves hacky symlinked shortcodes, otherwise AMP version gets chosen. not a bug but maybe file feature request: https://github.com/gohugoio/hugo/issues/5204 --- layouts/rss.xml | 4 +--- layouts/shortcodes/codepen.rss.html | 1 + layouts/shortcodes/gh-buttons.rss.html | 1 + layouts/shortcodes/image.rss.html | 1 + layouts/shortcodes/video.rss.html | 1 + layouts/shortcodes/youtube.rss.html | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) create mode 120000 layouts/shortcodes/codepen.rss.html create mode 120000 layouts/shortcodes/gh-buttons.rss.html create mode 120000 layouts/shortcodes/image.rss.html create mode 120000 layouts/shortcodes/video.rss.html create mode 120000 layouts/shortcodes/youtube.rss.html diff --git a/layouts/rss.xml b/layouts/rss.xml index c919c72b..12ea91bc 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -20,9 +20,7 @@ {{ with .Site.Author.email }}{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} - {{ .Summary | html }} - - {{ printf "Read more... ]]>" .Permalink | safeHTML }} +{{ .Content | html }} {{ end }} diff --git a/layouts/shortcodes/codepen.rss.html b/layouts/shortcodes/codepen.rss.html new file mode 120000 index 00000000..6e5cd348 --- /dev/null +++ b/layouts/shortcodes/codepen.rss.html @@ -0,0 +1 @@ +codepen.html \ No newline at end of file diff --git a/layouts/shortcodes/gh-buttons.rss.html b/layouts/shortcodes/gh-buttons.rss.html new file mode 120000 index 00000000..09ee6311 --- /dev/null +++ b/layouts/shortcodes/gh-buttons.rss.html @@ -0,0 +1 @@ +gh-buttons.html \ No newline at end of file diff --git a/layouts/shortcodes/image.rss.html b/layouts/shortcodes/image.rss.html new file mode 120000 index 00000000..231dcde4 --- /dev/null +++ b/layouts/shortcodes/image.rss.html @@ -0,0 +1 @@ +image.html \ No newline at end of file diff --git a/layouts/shortcodes/video.rss.html b/layouts/shortcodes/video.rss.html new file mode 120000 index 00000000..c45223a1 --- /dev/null +++ b/layouts/shortcodes/video.rss.html @@ -0,0 +1 @@ +video.html \ No newline at end of file diff --git a/layouts/shortcodes/youtube.rss.html b/layouts/shortcodes/youtube.rss.html new file mode 120000 index 00000000..a5581bc7 --- /dev/null +++ b/layouts/shortcodes/youtube.rss.html @@ -0,0 +1 @@ +youtube.html \ No newline at end of file