diff options
-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"> {{ . }} |