diff options
author | Derek Severin <severinderek@gmail.com> | 2022-02-02 11:37:18 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2022-02-02 11:37:18 +0300 |
commit | 053a2d0f9f92e4b5fc9499b732c1f9159d073d90 (patch) | |
tree | 047e7b9471acc20cc0ac127eba3bffddc2ca3b95 | |
parent | a1bb569df5da58334d51942ca933b24ee904f205 (diff) |
Project box title image - TODO
-rw-r--r-- | layouts/partials/project-image.html | 12 |
1 files changed, 12 insertions, 0 deletions
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 }} <div class="project-box-caption"> <div class="project-box-caption-content"> +{{/* 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 }} + <img src="{{ .Permalink }}" class="img-responsive" alt="{{ .Name }}" style="padding-bottom:1em;"> + {{ end }} + {{ end }} + {{ end }} +*/}} {{ with .context.Title }} <div class="project-name"> {{ . }} |