From c4f36998ec38fb4549bb4e1907035c343af466e7 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sun, 4 Sep 2022 09:40:18 -0400 Subject: [PATCH] adding-gallery function --- layouts/_default/rss.xml | 24 ++++++++++++++++-------- layouts/shortcodes/gallery-end.html | 1 + layouts/shortcodes/gallery-start.html | 1 + layouts/shortcodes/video.html | 1 + static/css/theme.css | 17 +++++++++-------- 5 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 layouts/shortcodes/gallery-end.html create mode 100644 layouts/shortcodes/gallery-start.html diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index bdcd09a..c0f39f6 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,20 +1,28 @@ - + {{.Title}} {{ .Permalink }} {{.Params.description}} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}} - {{ range .Site.RegularPages }} + {{.}}{{end}}{{ if .Site.Data.details.profilephoto}} + + {{.Site.Data.details.name}} + {{.Site.BaseURL}} + {{.Site.BaseURL}}{{.Site.Data.details.profilephoto}} + {{end}} + {{ range .Site.RegularPages }} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{- .Summary | html -}} - {{- .Content | html -}} - - {{ end }} + {{ .Permalink }}{{ if .Params.video}} + + {{end}}{{ if .Params.audio}} + + {{end}}{{ if .Params.image}} + {{.Params.image}}{{end}} + {{- .Content | html -}} + {{ end }} diff --git a/layouts/shortcodes/gallery-end.html b/layouts/shortcodes/gallery-end.html new file mode 100644 index 0000000..7f5eaa3 --- /dev/null +++ b/layouts/shortcodes/gallery-end.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/shortcodes/gallery-start.html b/layouts/shortcodes/gallery-start.html new file mode 100644 index 0000000..e4d6b5c --- /dev/null +++ b/layouts/shortcodes/gallery-start.html @@ -0,0 +1 @@ +