diff --git a/assets/rss-image.avif b/assets/rss-image.avif new file mode 100644 index 0000000..ce4fb55 Binary files /dev/null and b/assets/rss-image.avif differ diff --git a/assets/rss-image.jpg b/assets/rss-image.jpg new file mode 100644 index 0000000..6d9c5d4 Binary files /dev/null and b/assets/rss-image.jpg differ diff --git a/config.yaml b/config.yaml index f3117c1..7e16204 100644 --- a/config.yaml +++ b/config.yaml @@ -29,9 +29,9 @@ params: isso_url: "comments.redstrate.com" geekring_site_id: 227 gitlab_username: "redstrate" - profile_picture: "/rss-image.png" + profile_picture: "/rss-image.jpg" images: - - rss-image.png + - rss-image.jpg author: 'redstrate' fediverse_url: "@redstrate@mastodon.art" image_host: "https://images.redstrate.com" diff --git a/assets/rss-image.png b/static/rss-image.png similarity index 100% rename from assets/rss-image.png rename to static/rss-image.png diff --git a/themes/red/layouts/_default/baseof.html b/themes/red/layouts/_default/baseof.html index 6fc0c1d..c46b14b 100644 --- a/themes/red/layouts/_default/baseof.html +++ b/themes/red/layouts/_default/baseof.html @@ -2,7 +2,6 @@ {{- partial "head.html" . -}} - {{- block "head" . }}{{- end }} diff --git a/themes/red/layouts/partials/header.html b/themes/red/layouts/partials/header.html index 9c4da5f..32dc221 100644 --- a/themes/red/layouts/partials/header.html +++ b/themes/red/layouts/partials/header.html @@ -1,4 +1,10 @@ {{ with resources.Get .Site.Params.profile_picture }} - Profile Picture + + {{ $avif_path := replace . ".png" ".avif "}} + {{ with resources.Get (strings.TrimSpace $avif_path) }} + + {{ end }} + Profile Picture + {{ end }}

{{ .Site.Title }}