diff --git a/content/about/index.md b/content/about/index.md index 61d14be..04ddb6e 100644 --- a/content/about/index.md +++ b/content/about/index.md @@ -2,9 +2,13 @@ title: "Hi! 👋🏻" date: 2022-09-03T12:14:32-07:00 draft: true +resources: + - name: me + src: me.jpeg --- -{{< circular_image name=me.jpeg class=float-right width=200 >}} +{{< circular_image id=me name=me class="float-right" width=200 + alt="A photo of me, wearing a hat, standing in front of a stone background">}} I'm Eryn. My pronouns are [she/her][p]. I'm a queer trans woman. I live in San Francisco, CA, on the unceded ancestral lands of the Ramaytush Ohlone people, diff --git a/content/about/style.css b/content/about/style.css new file mode 100644 index 0000000..b39c308 --- /dev/null +++ b/content/about/style.css @@ -0,0 +1,4 @@ + +img#me { + width: min(200px, 25%); +} diff --git a/layouts/shortcodes/circular_image.html b/layouts/shortcodes/circular_image.html index c9df3f0..45b1b74 100644 --- a/layouts/shortcodes/circular_image.html +++ b/layouts/shortcodes/circular_image.html @@ -1,5 +1,12 @@ -{{ $img := (.Page.Resources.GetMatch (.Get "name")) }} -{{ $classes := .Get "class" }} -{{ $width := .Get "width" }} -{{ $resized_img := $img.Resize (printf "%dx%d" $width $width) }} - +{{- $img := (.Page.Resources.GetMatch (.Get "name")) -}} +{{- $id := .Get "id" -}} +{{- $classes := .Get "class" -}} +{{- $alt := .Get "alt" -}} +{{- $width := .Get "width" -}} +{{- $resized_img := $img.Resize (printf "%dx%d" $width $width) -}} +