diff --git a/.gitignore b/.gitignore index dc1c02a..13dbcb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +node_modules/ public/ /resources/ .hugo_build.lock diff --git a/assets/styles/root/050_typography.css b/assets/styles/root/050_typography.css index 3af2b67..308bf96 100644 --- a/assets/styles/root/050_typography.css +++ b/assets/styles/root/050_typography.css @@ -26,7 +26,7 @@ --h5-size: 125%; --h6-size: 100%; - --line-height: 2; + --line-height: 1.5; --heading-line-height: 1; /* A little extra line height so the descenders don't get clipped */ --site-heading-line-height: 1.1; diff --git a/content/blog/2023/guide-to-computing/index.md b/content/blog/2023/guide-to-computing/index.md new file mode 100644 index 0000000..2442430 --- /dev/null +++ b/content/blog/2023/guide-to-computing/index.md @@ -0,0 +1,13 @@ +--- +title: "Guide to Computing" +date: 2023-09-23T10:24:35-07:00 +categories: "Tech" +tags: ["Retro Computing", "Design"] +--- + +I really enjoyed looking through the images on [Docubyte's Guide to +Computing][link]. It depicts machines from the early days of modern computing -- +think IBM mainframes, PDP-1's, and lots of midcentury modern design -- in a way +I found really intriguing. + +[link]: https://www.docubyte.com/projects/guide-to-computing/ diff --git a/content/photos/2021/mug-o-broth/IMG_1345.jpeg b/content/photos/2021/mug-o-broth/IMG_1345.jpeg new file mode 100644 index 0000000..922a61b --- /dev/null +++ b/content/photos/2021/mug-o-broth/IMG_1345.jpeg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82d792674ba767171a51d69d9419eadb90af0c04d68331814e7f4ee312dd25b9 +size 1448774 diff --git a/content/photos/2021/mug-o-broth/index.md b/content/photos/2021/mug-o-broth/index.md new file mode 100644 index 0000000..fc99748 --- /dev/null +++ b/content/photos/2021/mug-o-broth/index.md @@ -0,0 +1,6 @@ +--- +title: "Mug o' Broth" +date: 2021-09-13T12:21:17-07:00 +--- + +A perfect Mug o' Broth from Wise Sons, a Jewish deli in San Francisco. diff --git a/layouts/partials/photos/thumbnail.html b/layouts/partials/photos/thumbnail.html index dbd9e1f..831c669 100644 --- a/layouts/partials/photos/thumbnail.html +++ b/layouts/partials/photos/thumbnail.html @@ -1,3 +1,19 @@ +{{/* + Renders a photo thumbnail. If neither a target height or target width are + given, and the image is already in the correct orientation, no image + processing is performed. + + Arguments + --------- + "Page" : A reference to the current Page + "Height" : The target height of the image + "Width" : The target width of the image + + Returns + ------- + The processed thumbnail image resource +*/}} + {{- $thumbnailResource := .Page.Resources.GetMatch (index .Page.Params "thumbnail" | default "[tT]humbnail*") | default (index (.Page.Resources.ByType "image") 0) -}} @@ -9,15 +25,15 @@ {{ $orientation := partial "images/orientation_angle.html" $thumbnailResource }} {{ $targetWidth := 0 }} -{{ if isset . "Width" }} - {{ $targetWidth = .Width }} +{{ with .Width }} + {{ $targetWidth = . }} {{ else }} {{ $targetWidth = $thumbnailResource.Width }} {{ end }} {{ $targetHeight := 0 }} -{{ if isset . "Height" }} - {{ $targetHeight = .Height }} +{{ with .Height }} + {{ $targetHeight = . }} {{ else }} {{ $targetHeight = $thumbnailResource.Height }} {{ end }} diff --git a/layouts/partials/table_of_contents.html b/layouts/partials/table_of_contents.html index e6fa931..f1dcb62 100644 --- a/layouts/partials/table_of_contents.html +++ b/layouts/partials/table_of_contents.html @@ -1,4 +1,4 @@ -{{ if and (gt .WordCount 400) (isset .Params "toc") .Params.toc }} +{{ if and (gt .WordCount 400) (.Params.toc | default false) }}