From 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 22:21:36 +0100 Subject: use maintained theme --- themes/CodeIT/layouts/partials/rss/item.html | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 themes/CodeIT/layouts/partials/rss/item.html (limited to 'themes/CodeIT/layouts/partials/rss/item.html') diff --git a/themes/CodeIT/layouts/partials/rss/item.html b/themes/CodeIT/layouts/partials/rss/item.html new file mode 100644 index 0000000..28256b4 --- /dev/null +++ b/themes/CodeIT/layouts/partials/rss/item.html @@ -0,0 +1,36 @@ +{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Author.name) -}} + + + {{- .Page.Title -}} + + + {{- .Page.Permalink -}} + + + {{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}} + + + {{- .params.author | default (T "author") -}} + + + {{- .Page.Permalink -}} + + + {{- " + + + {{- end -}} + {{- $content := .Page.Description -}} + {{- if $params.rssFullText -}} + {{- $content = dict "Content" .Page.Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" -}} + {{- else -}} + {{- with .Page.Summary -}} + {{- $content = dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" -}} + {{- end -}} + {{- end -}} + {{- $content | replaceRE `]*>.*` "" | replaceRE `]*( /)?>` "" | safeHTML -}} + {{- "]]>" | safeHTML -}} + + \ No newline at end of file -- cgit v1.2.3