Merge branch 'main' into massive-relayout
This commit is contained in:
commit
dbb202d7f9
8 changed files with 46 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
node_modules/
|
||||
public/
|
||||
/resources/
|
||||
.hugo_build.lock
|
||||
|
|
|
@ -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;
|
||||
|
|
13
content/blog/2023/guide-to-computing/index.md
Normal file
13
content/blog/2023/guide-to-computing/index.md
Normal file
|
@ -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/
|
3
content/photos/2021/mug-o-broth/IMG_1345.jpeg
Normal file
3
content/photos/2021/mug-o-broth/IMG_1345.jpeg
Normal file
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82d792674ba767171a51d69d9419eadb90af0c04d68331814e7f4ee312dd25b9
|
||||
size 1448774
|
6
content/photos/2021/mug-o-broth/index.md
Normal file
6
content/photos/2021/mug-o-broth/index.md
Normal file
|
@ -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.
|
|
@ -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 }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ if and (gt .WordCount 400) (isset .Params "toc") .Params.toc }}
|
||||
{{ if and (gt .WordCount 400) (.Params.toc | default false) }}
|
||||
<aside id="table-of-contents">
|
||||
<details {{ if eq .Params.toc "open" }}open{{ end }}>
|
||||
<summary>Table of Contents</summary>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $thumbnail := partial "photos/thumbnail.html" . -}}
|
||||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" nil "Height" nil) -}}
|
||||
<entry>
|
||||
{{ partial "atom_entry_metadata.xml" . }}
|
||||
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue