Skip to content

Commit

Permalink
made the titles be nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonus committed Jan 6, 2024
1 parent 52eca0e commit 61089c8
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 12 deletions.
9 changes: 7 additions & 2 deletions assets/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ div.recent-posts
color: $link
h2
margin: 0
font-size: 1.4rem
font-size: 1.35rem

div.vertical
display: flex
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion content/posts/savory/cauliflower-curry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/posts/sweet/bundt cake/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion content/posts/sweet/pancakes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions themes/bean/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<section>
<article class="content">
<div class="meta">
<h1>{{ .Title }}</h1>
<h1>{{ strings.Title .Title }}</h1>
<div class="cover">
{{ with .Resources.GetMatch "cover.*" }}
<div class="wrapper">
Expand Down Expand Up @@ -77,7 +77,7 @@ <h2>Recent recipes</h2>
{{ end }}
{{ end }}
</a>
<a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .RelPermalink }}"><h2>{{ strings.Title .Title }}</h2></a>
</div>
<span>
{{ .Summary | truncate 200 }}
Expand Down
2 changes: 1 addition & 1 deletion themes/bean/layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>{{ $title }}</h1>
{{ end }}
{{ end }}
</a>
<a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .RelPermalink }}"><h2>{{ strings.Title .Title }}</h2></a>
{{ .Summary | truncate 200 }}
</span>
<span>
Expand Down
2 changes: 1 addition & 1 deletion themes/bean/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h2>{{ .Title }}</h2>
{{ end }}
{{ end }}
</a>
<a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .RelPermalink }}"><h2>{{ strings.Title .Title }}</h2></a>
{{ .Summary | truncate 200 }}
</span>
<span>
Expand Down
2 changes: 1 addition & 1 deletion themes/bean/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ $first = upper $first }}
{{ $title = print $first $rest " | " .Site.Title }}
{{ end }}
<title>{{ $title }} – {{.Site.Params.description}}</title>
<title>{{ strings.Title $title }} – {{.Site.Params.description}}</title>
<meta property="og:title" content="{{ $title }}" />
<meta property="og:description" content="{{.Site.Params.description}}" />
{{ $seed := now.Unix }}
Expand Down
2 changes: 1 addition & 1 deletion themes/bean/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>{{.Title}}</h3>
{{ $first := substr .Title 0 1 }}
{{ $rest := substr .Title 1 }}
{{ $first = upper $first }}
{{ $title := print $first $rest }}
{{ $title := strings.Title (print $first $rest) }}
<span class="identity-text">
<h3>{{ $title }} | {{ .Site.Title }}</h3>
<span>{{ .Site.Params.description }}</span>
Expand Down
2 changes: 1 addition & 1 deletion themes/bean/layouts/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{- end -}}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<title>{{ strings.Title .Title }}</title>
<link>{{ .Permalink }}</link>
<image>
<url>{{ .Permalink }}</url>
Expand Down

0 comments on commit 61089c8

Please sign in to comment.