From 88bf31076d9deec7dabc612fce3ba34625e9fc68 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 24 Sep 2023 15:25:51 -0700 Subject: [PATCH] Fixing structure of cards in feed --- main-site/archetypes/default.md | 1 + main-site/content/feed/learning.md | 9 --------- main-site/themes/temper/layouts/_default/baseof.html | 2 +- main-site/themes/temper/layouts/_default/list.html | 6 +++++- main-site/themes/temper/layouts/_default/single.html | 4 +++- main-site/themes/temper/static/css/style.css | 8 ++++++++ 6 files changed, 18 insertions(+), 12 deletions(-) delete mode 100644 main-site/content/feed/learning.md diff --git a/main-site/archetypes/default.md b/main-site/archetypes/default.md index 86d7719..b7a3f20 100644 --- a/main-site/archetypes/default.md +++ b/main-site/archetypes/default.md @@ -3,4 +3,5 @@ title: '{{ replace .File.ContentBaseName "-" " " | title }}' description: No description date: {{ .Date }} thumbnail: null +article: false --- diff --git a/main-site/content/feed/learning.md b/main-site/content/feed/learning.md deleted file mode 100644 index 99d3c22..0000000 --- a/main-site/content/feed/learning.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: 'Learning' -description: No description -date: 2023-09-23T01:18:52-07:00 -thumbnail: null ---- - -This theme is finally - diff --git a/main-site/themes/temper/layouts/_default/baseof.html b/main-site/themes/temper/layouts/_default/baseof.html index 5f8e2ec..cfaf72a 100644 --- a/main-site/themes/temper/layouts/_default/baseof.html +++ b/main-site/themes/temper/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{- partial "head.html" . -}} {{- partial "header.html" . -}} -
+
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}} diff --git a/main-site/themes/temper/layouts/_default/list.html b/main-site/themes/temper/layouts/_default/list.html index bd002f7..a560d92 100644 --- a/main-site/themes/temper/layouts/_default/list.html +++ b/main-site/themes/temper/layouts/_default/list.html @@ -5,7 +5,11 @@
{{ .Title }}
-

{{ .Description }}

+ {{ if .Page.Params.Article }} +

{{ .Description }}

+ {{ else }} +

{{ .Content }}

+ {{ end }}