From 30ecd1eda155d73ea417491373494bb7eb3a5b94 Mon Sep 17 00:00:00 2001 From: selankon Date: Mon, 8 Jul 2024 17:37:48 +0200 Subject: [PATCH] Add custom html --- custom.html | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 custom.html diff --git a/custom.html b/custom.html new file mode 100644 index 0000000..6fd480f --- /dev/null +++ b/custom.html @@ -0,0 +1,88 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} +
+
+
+
+
+
+ {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ with .Site.Params.homepage.homepageImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ if $homepageImage }} + +
+
+
+
+ {{ end }} +
+
+ {{ with .Site.Author.image }} + {{ $authorImage := "" }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $authorImage = resources.GetRemote . }} + {{ else }} + {{ $authorImage = resources.Get . }} + {{ end }} + {{ if $authorImage }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "288x288" }} + {{ end }} + {{ $.Site.Author.name | default + {{ end }} + {{ end }} +

+ {{ .Site.Author.name | default .Site.Title }} +

+ {{ with .Site.Author.headline }} +

+ {{ . | markdownify }} +

+ {{ end }} +
+ {{ with .Site.Author.links }} +
+ {{ range $links := . }} + {{ range $name, $url := $links }} + {{ partial + "icon.html" $name }} + {{ end }} + {{ end }} +
+ {{ end }} +
+
{{ .Content }}
+
+
+
+
+
+
+ {{ partial "recent-articles/main.html" . }} +
+{{ if .Site.Params.homepage.layoutBackgroundBlur | default false }} +
+ +{{ end }}