davideisinger.com

My personal website
Log | Files | Refs | README

commit 2cda4b8f4e98bb9df84747da283d13075aac4d41
parent c66e538e3b124ce0446ab7377ab54e7ed0ca3c30
Author: David Eisinger <[email protected]>
Date:   Mon,  5 Feb 2024 11:57:42 -0500

Add headshot

Diffstat:
Mcontent/pages/about.md | 2+-
Acontent/pages/headshot.png.enc | 0
Mthemes/v2/layouts/shortcodes/dither.html | 4++--
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/content/pages/about.md b/content/pages/about.md @@ -4,4 +4,4 @@ date: 2023-05-09T09:51:10-04:00 draft: false --- -Placeholder +{{<dither "headshot.png" />}} diff --git a/content/pages/headshot.png.enc b/content/pages/headshot.png.enc Binary files differ. diff --git a/themes/v2/layouts/shortcodes/dither.html b/themes/v2/layouts/shortcodes/dither.html @@ -1,6 +1,6 @@ -{{ $file := printf "%s%s" .Page.RelPermalink (.Get 0) }} +{{ $file := printf "%s%s" .Page.File.Dir (.Get 0) }} {{ $geo := .Get 1 }} -{{ $img := resources.GetRemote (printf "%s%s?geo=%s" (getenv "DITHER_SERVER") $file $geo) }} +{{ $img := resources.GetRemote (printf "%s/%s?geo=%s" (getenv "DITHER_SERVER") $file $geo) }} {{ $imgClass := .Get 2 }} <a href="{{ $img.RelPermalink }}">