Freshly Baked Thoughts
Archives »-
+
- +
-
{{ .Title }}
- {{ .Date.Format ("02 Jan 2006") }} +
{{ end }}
- +
-
{{ .title }}
@@ -48,18 +50,20 @@ -
+
-
+ {{ range first $itms (shuffle (where (where .Site.Pages ".Params.disableComments" "!=" "true") "Section" "post")) }}
+
-
{{ .Title }}
- {{ .Date.Format ("02 Jan 2006") }} +
{{ end }}
@@ -69,7 +73,7 @@
- + {{ .Title }} + + + + + {{ end }} +
- - {{ .Title }} - {{ .Date.Format ("02 Jan") }} - - {{ end }} -
- + {{ .Title }} + + + + + {{ end }} +
- + {{ .Title }} + + + + + {{ end }} +
-
- {{ .Date.Format ("02") }}
- -- -
- {{ .Title }} -
- {{ if isset .Params "subtitle" }} - {{ .Params.subtitle }} - {{ else }} - {{ .Summary | truncate 50 }} - {{ end }} -
- {{ end }}
- - + + {{ .Title }} + + + + + + {{ end }} +
-About the Head Brain Baker
+The Head Brain Baker
@@ -80,7 +84,6 @@diff --git a/layouts/shortcodes/archive.html b/layouts/shortcodes/archive.html index 56b4c5f2..01a86ffa 100644 --- a/layouts/shortcodes/archive.html +++ b/layouts/shortcodes/archive.html @@ -2,13 +2,21 @@ Not finding what you're looking for? Browse the archives. -If you found my bakings amusing and/or helpful, you can buy me a coffee—if you don't mind I'll use it to enjoy a cup of tea instead. I also like to hear about your own bakings via Mastodon or e-mail. Thanks!
-
-+{{ end }} diff --git a/themes/brainbaking-minimal/assets/sass/_blockquote.sass b/themes/brainbaking-minimal/assets/sass/_blockquote.sass index 0e25caf6..90700e6b 100644 --- a/themes/brainbaking-minimal/assets/sass/_blockquote.sass +++ b/themes/brainbaking-minimal/assets/sass/_blockquote.sass @@ -1,17 +1,3 @@ -@mixin block-960 - width: calc(100% - -220px + 0px) - margin-left: -90px - -@mixin block-1120 - width: calc(100% - -260px + 0px) - margin-left: -130px - -header - @media (min-width: 960px) - @include block-960 - - @media (min-width: 1120px) - @include block-1120 blockquote font-family: $font-alt-stack @@ -39,7 +25,6 @@ blockquote margin-top: -10px p - padding-left: 0.5rem 0 !important letter-spacing: 0rem width: 100% diff --git a/themes/brainbaking-minimal/assets/sass/_bootstrap-minimal.sass b/themes/brainbaking-minimal/assets/sass/_bootstrap-minimal.sass index c897cc08..69fd638f 100644 --- a/themes/brainbaking-minimal/assets/sass/_bootstrap-minimal.sass +++ b/themes/brainbaking-minimal/assets/sass/_bootstrap-minimal.sass @@ -2,8 +2,13 @@ h1 font-size: 2.4rem @media (min-width: 768px) font-size: 3rem + margin-top: 0.5em + margin-bottom: 0.2em + h2 - font-size: 2.0rem + font-size: 1.9rem + margin-top: 1em + margin-bottom: 1em h3 font-size: 1.4rem h4 @@ -11,13 +16,11 @@ h4 h1, h2 font-weight: 700 - margin-top: 20px - margin-bottom: 10px h3, h4, h5, h6 font-weight: normal - margin-top: 10px - margin-bottom: 10px + margin-top: 1em + margin-bottom: 1em h1, h2, h3, h4, h5, h6 line-height: 1.8 diff --git a/themes/brainbaking-minimal/assets/sass/_brainbaking-intro.sass b/themes/brainbaking-minimal/assets/sass/_brainbaking-intro.sass index 03883618..dd2fca6c 100644 --- a/themes/brainbaking-minimal/assets/sass/_brainbaking-intro.sass +++ b/themes/brainbaking-minimal/assets/sass/_brainbaking-intro.sass @@ -1,11 +1,11 @@ -.intro - +.intro + padding-top: 0 article padding-top: 0.8em h1 margin: 0 - padding-bottom: 0.8em + padding-bottom: 1.2em text-shadow: #bbbbbb 0 4px 5px font-size: 5vh @@ -38,10 +38,19 @@ height: 30vh top: 6rem + header - svg.logo - visibility: hidden + @media (min-width: 960px) + width: calc(100vw - 100px) - @media (min-width: 1400px) - visibility: visible + @media (min-width: 1120px) + width: calc(100vw - 420px) + + svg.logo + visibility: hidden + position: absolute + left: 0 + + @media (min-width: 1400px) + visibility: visible diff --git a/themes/brainbaking-minimal/assets/sass/_brainbaking.sass b/themes/brainbaking-minimal/assets/sass/_brainbaking.sass index f7471d1c..6b454770 100644 --- a/themes/brainbaking-minimal/assets/sass/_brainbaking.sass +++ b/themes/brainbaking-minimal/assets/sass/_brainbaking.sass @@ -59,29 +59,29 @@ nav, footer ul list-style: circle -.flexlist +.flexgrid display: flex flex-direction: column justify-content: space-between align-items: baseline - small - opacity: 0.7 + &-8020 + *:nth-child(2) + opacity: 0.7 + @media (min-width: 600px) + flex-direction: row - @media (min-width: 600px) - flex-direction: row + *:nth-child(1) + flex: 3 1 15rem + margin: 0.1em + *:nth-child(2) + flex: 1 2 1rem + text-align: right - div, h2, h3 - flex: 3 1 15rem - small - flex: 1 2 1rem - text-align: right - -ul.smallist +ul.small padding: 0 list-style: none - div.highlight padding-top: 1.5rem padding-bottom: 1.5rem @@ -109,7 +109,7 @@ pre &.post .content > p:first-of-type::first-letter margin-top: 10px -article, main.list, main.notes, .txtblock +article, main.notes, .txtblock margin: auto flex: 1 0 auto display: block @@ -122,7 +122,7 @@ article, main.list, main.notes, .txtblock article padding-left: 1rem padding-right: 1rem - margin-bottom: 1rem + padding-bottom: 1rem text-align: left &.post .content > p:first-of-type::first-letter @@ -164,13 +164,13 @@ article .belowsingle background-color: $belowsingle border-top: 3px solid $accent - margin-top: 4rem + padding-bottom: 2rem .page-header - border-bottom: 1px solid $lightgrey + border-bottom: 1px solid darken($lightgrey, 20%) -article hr, main.intro hr +article hr margin-top: 60px margin-bottom: 60px @@ -202,19 +202,18 @@ h1, h2, h3 color: $grey main - min-height: calc(100vh - 112px) + min-height: calc(100vh - 200px) + padding-top: 3rem + padding-bottom: 2rem footer padding-top: 2rem padding-bottom: 2rem -time - color: grey - kbd color: $accent border: 1px solid $accent - font-size: 1em + font-size: 0.9em padding: 2px 4px border-radius: 3px -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25) @@ -260,16 +259,13 @@ kbd background: rgba(0,0,0,0.65) !important -.page-header - margin-top: 60px - .nowrap white-space: nowrap table width: 100% - padding-top: 1rem - padding-bottom: 1rem + margin-top: 1rem + margin-bottom: 1rem border-collapse: collapse tbody diff --git a/themes/brainbaking-minimal/assets/sass/_listing.sass b/themes/brainbaking-minimal/assets/sass/_listing.sass deleted file mode 100644 index ddcb0942..00000000 --- a/themes/brainbaking-minimal/assets/sass/_listing.sass +++ /dev/null @@ -1,48 +0,0 @@ -div.list - text-align: left - padding-left: 2rem - padding-bottom: 2rem - - h2 - border-top: 1px solid #eee - padding-top: 1rem - - h3 - color: #999 - @media (min-width: 768px) - float: left - margin-top: 1.5rem - -.list-ul - list-style: none - margin: 0 - padding: 0 - padding-bottom: 1rem - @media (min-width: 768px) - padding-left: 4rem - - li - padding: 0.8rem - - .list-date - font-weight: normal - padding-left: 0.4rem - padding-right: 0.4rem - color: white - background-color: $accent - border-radius: 2rem - margin-top: 1.5rem - float: left - - div - margin-left: 60px - - -.pages - padding: 15px 0 - -.pages-icon - padding: 0 15px - -.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover - border-color: $accent !important diff --git a/themes/brainbaking-minimal/assets/sass/main.sass b/themes/brainbaking-minimal/assets/sass/main.sass index e74f8c1b..8d87b68f 100644 --- a/themes/brainbaking-minimal/assets/sass/main.sass +++ b/themes/brainbaking-minimal/assets/sass/main.sass @@ -19,7 +19,6 @@ $accent: #018661 @import 'figures' @import 'icons' @import 'blockquote' -@import 'listing' @import 'goodreads' @import 'forms' @import 'toot' diff --git a/themes/brainbaking-minimal/layouts/_default/list.html b/themes/brainbaking-minimal/layouts/_default/list.html index 8b24802b..41fefe61 100644 --- a/themes/brainbaking-minimal/layouts/_default/list.html +++ b/themes/brainbaking-minimal/layouts/_default/list.html @@ -1,50 +1,38 @@ {{ partial "header" . }} -{{ partial "bigimg" . }} -{{ $year }}
+{{ $year }}
- {{ range (where (where $.Site.Pages "Section" "post") "Date.Year" "eq" $year).GroupByDate "Jan" }} -{{ .Key }}
+{{ range (where (where $.Site.Pages "Section" "post") "Date.Year" "eq" $year).GroupByDate "January" }} +{{ .Key }}
- {{ partial "list-ul" . }} + {{ range .Pages.GroupByDate "Jan" }} +-
+ {{ range .Pages.ByDate.Reverse }}
+
- - {{ if .Title }} - - - {{ end }} - - -- {{ .Title }} -
- - {{ if isset .Params "subtitle" }} -{{ .Params.subtitle }}
- {{ end }} -
++ {{ partial "footer" . }} diff --git a/themes/brainbaking-minimal/layouts/_default/single.html b/themes/brainbaking-minimal/layouts/_default/single.html index 908cd803..0e7fed7e 100644 --- a/themes/brainbaking-minimal/layouts/_default/single.html +++ b/themes/brainbaking-minimal/layouts/_default/single.html @@ -1,30 +1,36 @@ {{ partial "header" . }} -+ + {{ .Title }} +
+{{ .Content }} - + {{ range .Pages.GroupByDate "2006" "desc" }} {{ if ne .Key "0001" }} - - -{{ .Key }}
+{{ .Key }}
{{ range .Pages.GroupByDate "Jan" }} --
- {{ range .Pages.ByDate.Reverse }}
-
-
+ {{ range .Pages.ByDate.Reverse }}
+
- {{ partial "bigimg" . }} - - diff --git a/themes/brainbaking-minimal/layouts/_default/taxonomy.html b/themes/brainbaking-minimal/layouts/_default/taxonomy.html index f195cb5a..b93ce1fe 100644 --- a/themes/brainbaking-minimal/layouts/_default/taxonomy.html +++ b/themes/brainbaking-minimal/layouts/_default/taxonomy.html @@ -1,24 +1,32 @@ {{ partial "header" . }}+ {{ partial "single-header" . }} + {{ if (not .Params.disableComments) }}{{ .Content | safeHTML }} + + {{ if isset $.Params "tags" }} ++ +
+ {{ end }} +- {{ partial "single-comments" . }} - {{ partial "single-webmentions" . }} - {{ partial "single-related" . }} - - + {{ partial "single-webmentions" . }} + {{ partial "single-comments" . }}+ + -+ {{ .Section | humanize }} "{{ .Title }}" +
+- Tagged with:
- -
"{{ .Title }}" -- {{ range .Paginator.Pages.GroupByDate "2006" "desc" }} +- -{{ template "_internal/pagination.html" . }} - + {{ range .Pages.GroupByDate "Jan" }} ++ {{ range .Pages.GroupByDate "2006" "desc" }} + {{ if ne .Key "0001" }} {{ .Key }}
- {{ range .Pages.GroupByDate "Jan" }} -{{ .Key }}
- {{ partial "list-ul" . }} - {{ end }} - {{ end }} --
+ {{ range .Pages.ByDate.Reverse }}
+
@@ -12,8 +10,6 @@ -
- {{ with .Content }}{{ . }} diff --git a/themes/brainbaking-minimal/layouts/notes/list.html b/themes/brainbaking-minimal/layouts/notes/list.html index 3543e746..8818392b 100644 --- a/themes/brainbaking-minimal/layouts/notes/list.html +++ b/themes/brainbaking-minimal/layouts/notes/list.html @@ -1,6 +1,4 @@ {{ partial "header" . }} - -{{ partial "bigimg" . }} diff --git a/themes/brainbaking-minimal/layouts/notes/single.html b/themes/brainbaking-minimal/layouts/notes/single.html index 93321f82..1d8f345d 100644 --- a/themes/brainbaking-minimal/layouts/notes/single.html +++ b/themes/brainbaking-minimal/layouts/notes/single.html @@ -1,7 +1,4 @@ {{ partial "header" . }} - -{{ partial "bigimg" . }} - diff --git a/themes/brainbaking-minimal/layouts/partials/bigimg.html b/themes/brainbaking-minimal/layouts/partials/bigimg.html deleted file mode 100644 index 4068ab97..00000000 --- a/themes/brainbaking-minimal/layouts/partials/bigimg.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ if .Params.bigimg }} - {{- $image := resources.Get (printf "%s%s" "bigimg/" .Params.bigimg ) -}} - - {{ if eq $image nil }} - -- {{ else }} - --- {{ end }} -{{ else }} -- ----{{ end }} diff --git a/themes/brainbaking-minimal/layouts/partials/head-meta.html b/themes/brainbaking-minimal/layouts/partials/head-meta.html index 94eb6d24..662b6a73 100644 --- a/themes/brainbaking-minimal/layouts/partials/head-meta.html +++ b/themes/brainbaking-minimal/layouts/partials/head-meta.html @@ -38,41 +38,13 @@ {{ $thumb := $logo | absURL }} -{{ if .Params.bigimg }} - {{- $image := resources.Get (printf "%s%s" "bigimg/" .Params.bigimg ) -}} - {{ if eq $image nil }} +{{ $match := findRE `!\[(.*)\]\((.+).(jpg|png|gif)` .RawContent 1 }} +{{ range $match }} + {{ $relthumb := replaceRE `!\[(.*)\]\(` "" . }} + {{ if hasPrefix $relthumb "/" }} + {{ $thumb = printf "%s%s" $base $relthumb }} {{ else }} - {{- $imgsmall := $image.Resize "768x jpg q70" }} - {{ $thumb = $imgsmall.Permalink }} - {{- $imgmedium := $image.Resize "960x jpg q85" }} - - - - - {{ end }} -{{ else }} - {{ $match := findRE `!\[(.*)\]\((.+).(jpg|png|gif)` .RawContent 1 }} - {{ range $match }} - {{ $relthumb := replaceRE `!\[(.*)\]\(` "" . }} - {{ if hasPrefix $relthumb "/" }} - {{ $thumb = printf "%s%s" $base $relthumb }} - {{ else }} - {{ $thumb = printf "%s%s" $perm $relthumb }} - {{ end }} + {{ $thumb = printf "%s%s" $perm $relthumb }} {{ end }} {{ end }} diff --git a/themes/brainbaking-minimal/layouts/partials/list-ul.html b/themes/brainbaking-minimal/layouts/partials/list-ul.html deleted file mode 100644 index 164ef39c..00000000 --- a/themes/brainbaking-minimal/layouts/partials/list-ul.html +++ /dev/null @@ -1,34 +0,0 @@ -- \ No newline at end of file diff --git a/themes/brainbaking-minimal/layouts/partials/single-comments.html b/themes/brainbaking-minimal/layouts/partials/single-comments.html index 3c545cac..7f2140ea 100644 --- a/themes/brainbaking-minimal/layouts/partials/single-comments.html +++ b/themes/brainbaking-minimal/layouts/partials/single-comments.html @@ -1,13 +1,15 @@ --
- {{ range .Pages.ByDate.Reverse }}
-
- +
+ + Bio and Support + ++ - Bio and Support -
diff --git a/themes/brainbaking-minimal/layouts/partials/single-header.html b/themes/brainbaking-minimal/layouts/partials/single-header.html index f67da3f0..e2dd3ffa 100644 --- a/themes/brainbaking-minimal/layouts/partials/single-header.html +++ b/themes/brainbaking-minimal/layouts/partials/single-header.html @@ -1,9 +1,8 @@- {{ if .Title }} {{ if (not .Params.disableComments) }} - + {{ end }} diff --git a/themes/brainbaking-minimal/layouts/partials/single-related.html b/themes/brainbaking-minimal/layouts/partials/single-related.html index 39ecf7ab..fb91a0e5 100644 --- a/themes/brainbaking-minimal/layouts/partials/single-related.html +++ b/themes/brainbaking-minimal/layouts/partials/single-related.html @@ -1,32 +1,53 @@ -{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} +{{ $currtitle := .Title }} +{{ $currRellink := substr .RelPermalink 0 -1 }} +{{ $currContent := .Content }} + +{{ $backlinks := slice }} +{{ $forwardlinks := slice }} +{{ range (where (where .Site.Pages.ByDate.Reverse ".Section" "in" (slice "post")) ".Params.disableComments" "!=" "true") }} + + {{ $found := findRE $currRellink .Content 1 }} + {{ if and ($found) (ne .Title $currtitle) }} + {{ $backlinks = $backlinks | append . }} + {{ else }} + {{ $rellink := substr .RelPermalink 0 -1 }} + {{ $found = findRE $rellink $currContent 1 }} + {{ if and ($found) (ne .Title $currtitle) }} + {{ $forwardlinks = $forwardlinks | append . }} + {{ end }} + {{ end }} +{{ end }} +{{ $tagslice := first 5 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} + +{{ $related := append $tagslice $forwardlinks }} +{{ $related = append $related $backlinks }} + {{ if $related }} -@@ -13,55 +12,37 @@ {{ .Title }}
{{ end }} - {{ if isset .Params "subtitle" }} -{{ .Params.subtitle }}
- {{ end }} {{ if isset .Params "date" }} -- {{ if isset .Params "date" }} - - - {{ end }} - {{ if isset .Params "categories" }} - | - - - {{ range .Params.categories }} - {{ . }} - {{ end }} - - {{ end }} - {{ if (and (isset .Params "context") (not (eq .Params.context ""))) }} - | - - {{ with .Params.rsvp }} (RSVP: {{ . }}){{ end }}
- {{ end }} - - {{ if isset $.Params "tags" }} -
- {{ end }} -- +
+ + You Might Also Like... + - {{ range $related }} -+
Related articles - - {{ end }} - -{{ .Title }}
- | - {{ if isset .Params "subtitle" }} - {{ .Params.subtitle }} - {{ else }} - {{ .Summary | truncate 50 }} - {{ end }} -
++ {{ end }} diff --git a/themes/brainbaking-minimal/layouts/partials/single-webmentions.html b/themes/brainbaking-minimal/layouts/partials/single-webmentions.html index d2ae1c8c..c1600fd0 100644 --- a/themes/brainbaking-minimal/layouts/partials/single-webmentions.html +++ b/themes/brainbaking-minimal/layouts/partials/single-webmentions.html @@ -2,7 +2,7 @@ {{ $wmServer := .Site.Params.webmentionServer }} {{ if $mentions }} --
+ {{ range first 7 $related | uniq }}
+
+
+Discussion @@ -10,7 +10,7 @@{{ range $mentions }} diff --git a/themes/brainbaking-minimal/layouts/works/list.html b/themes/brainbaking-minimal/layouts/works/list.html index 3a82005f..df116498 100644 --- a/themes/brainbaking-minimal/layouts/works/list.html +++ b/themes/brainbaking-minimal/layouts/works/list.html @@ -1,6 +1,4 @@ {{ partial "header" . }} - -{{ partial "bigimg" . }}@@ -10,7 +8,6 @@ - {{ partial "footer" . }} \ No newline at end of file
{{ with .Content }}{{ . }} @@ -19,24 +16,23 @@ Prose in Words
++ {{ range (where .Pages "Params.type" "writing") }} + {{ partial "works-block.html" . }} + {{ end }} +- {{ range (where .Pages "Params.type" "writing") }} - {{ partial "works-block.html" . }} - {{ end }} -+Prose in Code
For those interested in smaller but technical buns of baked goodness, have fun exploring my open source projects at https://git.brainbaking.com/ or my contributions at GitHub. ++ {{ range (where .Pages "Params.type" "code") }} + {{ partial "works-block.html" . }} + {{ end }} +- {{ range (where .Pages "Params.type" "code") }} - {{ partial "works-block.html" . }} - {{ end }} -- -
-
{{ range first $itms (where .Site.Pages "Section" "post").ByDate.Reverse }}
-
Popular Bakings This Month
Statistics »-
+
-
{{ range first $itms (.Site.Data.popularposts) }}
-
Random Tasty Treats
All posts »-
- {{ range first $itms (shuffle (where .Site.Pages "Section" "post")) }}
-