From 4fe8cb6d3fee1dfa92ab3091bb9c3a1ae4bb20cb Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 4 Jan 2023 16:59:09 -0500 Subject: [PATCH] banners and pretty previews --- layouts/_default/list.html | 209 ++++++++++- layouts/_default/rss.xml | 2 +- layouts/_default/single.html | 190 +++++++++- layouts/index.html | 206 +++++++++- layouts/partials/banner-item.html | 8 + layouts/partials/banner.html | 14 + layouts/partials/head.html | 25 +- layouts/partials/header.html | 15 +- layouts/partials/item.html | 34 +- layouts/partials/metadata.html | 29 +- layouts/partials/sidebar.html | 59 +-- layouts/shortcodes/link-preview.html | 9 +- static/css/theme.css | 542 +++++++++++++++++---------- static/res/default.svg | 60 +++ 14 files changed, 1080 insertions(+), 322 deletions(-) create mode 100644 layouts/partials/banner-item.html create mode 100644 layouts/partials/banner.html create mode 100644 static/res/default.svg diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1ae76be..d81b55e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,21 +1,212 @@ + {{partial "head" .}} + {{partial "header" .}} + {{partial "banner" .}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
- {{if .Content}} - {{.Content}} - {{end}} +
+ {{if .Content}} + {{.Content}} + {{end}} +
{{ if .Pages }} - {{range .Pages}} - {{partial "item" .}} - {{end}} - {{end}} -
+ {{range .Pages}} + {{partial "item" .}} + {{end}} + {{end}} + + +
{{partial "footer" .}} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 84e1551..65f47fd 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -22,7 +22,7 @@ {{end}}{{ if .Params.image}} {{.Site.BaseURL}}{{.Params.image}}{{end}} - {{ .Summary | html}} + {{- .Content | html -}} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0c6b8bf..ecd8a19 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,11 +5,195 @@ {{partial "header" .}} + {{partial "banner-item" .}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
- {{.Content}} -
+ {{.Content}} {{ if .Params.author}}
diff --git a/layouts/index.html b/layouts/index.html index 166173b..a9cdf7c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,32 +1,204 @@ + {{partial "head" .}} + {{partial "header" .}} + {{partial "banner" .}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
{{.Content}}
- {{ if .Site.Data.details.social_links}} -
-
-

Stay up to date

- - -
- {{end}}