From 0ee795a91a27636e99a4f84f369460f7d296d532 Mon Sep 17 00:00:00 2001 From: chavlin Date: Fri, 7 Nov 2025 14:51:47 -0600 Subject: [PATCH] center the text and image --- content/_index.md | 2 -- layouts/partials/home/card.html | 23 +++++++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index 750ed55..0a7eb59 100644 --- a/content/_index.md +++ b/content/_index.md @@ -5,8 +5,6 @@ date = "2017-09-07" description = "iSTRUM" +++ -![](images/istrum-logo-mod.png) - **i**nve**S**tigating the **T**ransient **R**heology of the **U**pper **M**antle To learn more about iSTRUM, read more about the project [here](/about) or check out the [blog](/blog). \ No newline at end of file diff --git a/layouts/partials/home/card.html b/layouts/partials/home/card.html index fa513e5..46cb309 100644 --- a/layouts/partials/home/card.html +++ b/layouts/partials/home/card.html @@ -1,8 +1,27 @@
-
-
{{ .Content | emojify }}
+
+ {{ $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 }} +
{{ .Content | emojify }}