From 053a2d0f9f92e4b5fc9499b732c1f9159d073d90 Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Wed, 2 Feb 2022 15:37:18 +0700 Subject: Project box title image - TODO --- layouts/partials/project-image.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/layouts/partials/project-image.html b/layouts/partials/project-image.html index d0d7a1e..c0af73e 100644 --- a/layouts/partials/project-image.html +++ b/layouts/partials/project-image.html @@ -44,6 +44,18 @@ {{ end }}
+{{/* TODO: handle title image + add CSS */}} +{{/* + {{ if .context.Params.title_image }} + {{ $image_file := or .context.Params.cover_image .context.Params.title_image }} + {{ if $image_file }} + {{ $image := .context.Resources.GetMatch $image_file }} + {{ with $image }} + {{ .Name }} + {{ end }} + {{ end }} + {{ end }} +*/}} {{ with .context.Title }}
{{ . }} -- cgit v1.2.3