diff --git a/content/about/40.jpg b/assets/img/portrait.jpg similarity index 100% rename from content/about/40.jpg rename to assets/img/portrait.jpg diff --git a/config.yaml b/config.yaml index cefb3f6..0c60fe7 100644 --- a/config.yaml +++ b/config.yaml @@ -19,9 +19,8 @@ params: title: "Gab’s Notes" description: "My take on tech-related subjects (but not only)." keywords: [blog, tech, docker, golang, python, self-hosting] - author: "Gabriel Augendre" - # author: ["Me", "You"] # multiple authors - #images: [""] +# author: "Gabriel Augendre" + images: ["img/portrait.jpg"] DateFormat: "2006-01-02" defaultTheme: auto # dark, light disableThemeToggle: false diff --git a/content/about/index.md b/content/about/index.md index c1290d4..4c1f440 100644 --- a/content/about/index.md +++ b/content/about/index.md @@ -31,7 +31,7 @@ I'm Gabriel, a Go and Python software developer at [OVHcloud](https://www.ovhclo {{< unsafe >}}
{{< /unsafe >}} -{{< img src="39.jpg" alt="A picture of Gabriel Augendre" >}} +{{< img src="img/portrait.jpg" alt="A picture of Gabriel Augendre" >}} {{< img src="41.jpg" alt="His usual avatar for online profiles, the dwarf from a medieval fantasy audio story named 'Le Donjon de Naheulbeuk' (French)" >}} {{< unsafe >}}
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index c43a3ec..3dbe15b 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,5 +1,7 @@ {{ $src := .Get "src" }} -{{ $origImage := .Page.Resources.GetMatch $src }} +{{ $pageImage := .Page.Resources.Get $src }} +{{ $siteImage := resources.Get $src }} +{{ $origImage := $pageImage | default $siteImage }} {{ if eq $origImage.MediaType.SubType "svg" }} {{ else }}