From 8807411a617e521226e9b0f32df1a3dcacf4db48 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 15 Sep 2022 17:12:24 -0400 Subject: [PATCH] major style changes --- layouts/_default/list.html | 18 +------ layouts/_default/rss.xml | 25 ++++----- layouts/articles/rss.xml | 23 --------- layouts/index.html | 4 +- layouts/partials/head.html | 20 ++++---- layouts/partials/header.html | 4 +- layouts/partials/item.html | 28 +++++++++++ layouts/partials/sidebar.html | 22 +++++--- layouts/podcast/rss.xml | 70 +++++++++----------------- layouts/rss.xml | 34 ------------- layouts/shortcodes/audio.html | 2 +- layouts/shortcodes/gallery-end.html | 1 + layouts/shortcodes/gallery-start.html | 1 + layouts/shortcodes/interverse.html | 0 layouts/shortcodes/yesterweb.html | 3 ++ static/css/theme.css | 59 ++++++++++------------ static/res/default.png | Bin 0 -> 173499 bytes 17 files changed, 129 insertions(+), 185 deletions(-) delete mode 100644 layouts/articles/rss.xml create mode 100644 layouts/partials/item.html delete mode 100644 layouts/rss.xml create mode 100644 layouts/shortcodes/gallery-end.html create mode 100644 layouts/shortcodes/gallery-start.html create mode 100644 layouts/shortcodes/interverse.html create mode 100644 layouts/shortcodes/yesterweb.html create mode 100644 static/res/default.png diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d567336..b97e1c8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,23 +15,7 @@ {{ if .Pages }}
{{range .Pages}} -
-
- {{ if .Params.video}} - - {{else}} - - - - {{end}} -
-
-

{{.Title}}

-

{{.Params.description}}

-
-
+ {{partial "item" .}} {{end}}
{{end}} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 79096cd..f166787 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,25 +1,26 @@ - {{ .Title }} + {{.Title}} {{ .Permalink }} {{.Params.description}} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}} - {{ with .OutputFormats.Get "RSS" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ range .Pages }} + + {{.Site.BaseURL}}{{.Site.Params.default_img}} + + {{ 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 }} - - - {{- .Content | html -}} - - {{ end }} + {{ .Permalink }}{{ if .Params.video}} + + {{end}}{{ if .Params.audio}} + + {{end}}{{ if .Params.image}} + {{.Site.BaseURL}}{{.Params.image}}{{end}} + {{ .Summary | html}} + {{ end }} diff --git a/layouts/articles/rss.xml b/layouts/articles/rss.xml deleted file mode 100644 index e00a1f8..0000000 --- a/layouts/articles/rss.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - {{.Title}} - {{ .Permalink }} - {{.Params.description}} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}} - {{ with .OutputFormats.Get "RSS" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ range .Pages }} - - {{ .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 }} - - diff --git a/layouts/index.html b/layouts/index.html index e5df978..9d477ca 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,7 +12,7 @@ {{ if .Site.Data.details.social_links}}
-
+

Stay up to date

-
+ {{end}}