From 61089c8de32cfcbfd65fcd95d30afd71e1affe7c Mon Sep 17 00:00:00 2001 From: dhonus Date: Sat, 6 Jan 2024 10:57:19 +0100 Subject: [PATCH] made the titles be nicer --- assets/style.sass | 9 +++++++-- content/posts/savory/cauliflower-curry/index.md | 3 ++- content/posts/sweet/bundt cake/index.md | 2 +- content/posts/sweet/pancakes/index.md | 3 ++- themes/bean/layouts/_default/single.html | 4 ++-- themes/bean/layouts/_default/taxonomy.html | 2 +- themes/bean/layouts/index.html | 2 +- themes/bean/layouts/partials/head.html | 2 +- themes/bean/layouts/partials/header.html | 2 +- themes/bean/layouts/rss.xml | 2 +- 10 files changed, 19 insertions(+), 12 deletions(-) diff --git a/assets/style.sass b/assets/style.sass index 36bdb90..9533c06 100644 --- a/assets/style.sass +++ b/assets/style.sass @@ -196,7 +196,7 @@ div.recent-posts color: $link h2 margin: 0 - font-size: 1.4rem + font-size: 1.35rem div.vertical display: flex @@ -372,7 +372,7 @@ div.recipe margin-bottom: 0 &.title margin-top: 0 - h4#optionally-add + h4 margin-top: .6rem ul margin: .6rem 0 0 0 @@ -553,6 +553,11 @@ $gallery-gap: 1rem column-count: 1 column-gap: 2em width: 96% + div.teaser_container + div.round-teasers + gap: 2.5rem + width: 96% + margin: auto @media screen and ( max-width: 750px ) article.content diff --git a/content/posts/savory/cauliflower-curry/index.md b/content/posts/savory/cauliflower-curry/index.md index 3347790..4e8a301 100644 --- a/content/posts/savory/cauliflower-curry/index.md +++ b/content/posts/savory/cauliflower-curry/index.md @@ -29,7 +29,8 @@ Cooking time: 1 hour - [ ] 1 teaspoon salt - [ ] 1 teaspoon pepper - [ ] 2 cups white rice -#### Optional + +#### Optionally add - [ ] 1/2 cup frozen peas - [ ] 1/2 cup cilantro, chopped ### Steps diff --git a/content/posts/sweet/bundt cake/index.md b/content/posts/sweet/bundt cake/index.md index e8c88f7..1bd9bb9 100644 --- a/content/posts/sweet/bundt cake/index.md +++ b/content/posts/sweet/bundt cake/index.md @@ -25,7 +25,7 @@ Cooking time: 45 minutes - [ ] 120g neutral oil - [ ] juice of 1/2 lemon / vinegar - [ ] 15g cocoa powder -### Optional +#### Optionally add - [ ] confectioners' sugar to decorate ### Steps diff --git a/content/posts/sweet/pancakes/index.md b/content/posts/sweet/pancakes/index.md index d177b0c..f3c878c 100644 --- a/content/posts/sweet/pancakes/index.md +++ b/content/posts/sweet/pancakes/index.md @@ -20,7 +20,8 @@ Cooking time: 10 minutes - [ ] 3.5g baking powder - [ ] 1 large banana - [ ] 2 tablespoons oil/vegan butter to fry on -### Optional + +#### Optionally add - [ ] maple syrup topping - [ ] strawberries or other fruit diff --git a/themes/bean/layouts/_default/single.html b/themes/bean/layouts/_default/single.html index d3c3419..7ff9e1d 100644 --- a/themes/bean/layouts/_default/single.html +++ b/themes/bean/layouts/_default/single.html @@ -4,7 +4,7 @@
-

{{ .Title }}

+

{{ strings.Title .Title }}

{{ with .Resources.GetMatch "cover.*" }}
@@ -77,7 +77,7 @@

Recent recipes

{{ end }} {{ end }} -

{{ .Title }}

+

{{ strings.Title .Title }}

{{ .Summary | truncate 200 }} diff --git a/themes/bean/layouts/_default/taxonomy.html b/themes/bean/layouts/_default/taxonomy.html index 3d1448b..f29ef6a 100644 --- a/themes/bean/layouts/_default/taxonomy.html +++ b/themes/bean/layouts/_default/taxonomy.html @@ -55,7 +55,7 @@

{{ $title }}

{{ end }} {{ end }} -

{{ .Title }}

+

{{ strings.Title .Title }}

{{ .Summary | truncate 200 }}
diff --git a/themes/bean/layouts/index.html b/themes/bean/layouts/index.html index 875f0fd..e90cd93 100644 --- a/themes/bean/layouts/index.html +++ b/themes/bean/layouts/index.html @@ -26,7 +26,7 @@

{{ .Title }}

{{ end }} {{ end }} -

{{ .Title }}

+

{{ strings.Title .Title }}

{{ .Summary | truncate 200 }}
diff --git a/themes/bean/layouts/partials/head.html b/themes/bean/layouts/partials/head.html index 06cc488..0ab5ca7 100644 --- a/themes/bean/layouts/partials/head.html +++ b/themes/bean/layouts/partials/head.html @@ -9,7 +9,7 @@ {{ $first = upper $first }} {{ $title = print $first $rest " | " .Site.Title }} {{ end }} - {{ $title }} – {{.Site.Params.description}} + {{ strings.Title $title }} – {{.Site.Params.description}} {{ $seed := now.Unix }} diff --git a/themes/bean/layouts/partials/header.html b/themes/bean/layouts/partials/header.html index b23df89..5b4b430 100644 --- a/themes/bean/layouts/partials/header.html +++ b/themes/bean/layouts/partials/header.html @@ -14,7 +14,7 @@

{{.Title}}

{{ $first := substr .Title 0 1 }} {{ $rest := substr .Title 1 }} {{ $first = upper $first }} - {{ $title := print $first $rest }} + {{ $title := strings.Title (print $first $rest) }}

{{ $title }} | {{ .Site.Title }}

{{ .Site.Params.description }} diff --git a/themes/bean/layouts/rss.xml b/themes/bean/layouts/rss.xml index 1035eb2..252480a 100644 --- a/themes/bean/layouts/rss.xml +++ b/themes/bean/layouts/rss.xml @@ -27,7 +27,7 @@ {{- end -}} {{ range $pages }} - {{ .Title }} + {{ strings.Title .Title }} {{ .Permalink }} {{ .Permalink }}