From 3292d580071d28c2d242c57081520d35f5f3b42c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 9 Nov 2017 21:31:18 +0000 Subject: [PATCH] Add image hack for better display --- layouts/partials/content.html | 10 +++++----- layouts/partials/list_item.html | 2 +- static/src/scss/style.scss | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 3af4094..49ad0aa 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,17 +1,17 @@ {{ if .Params.image }} - +
{{ end }}

{{ .Title }}

{{ .Params.subtitle }}

{{ if .Params.date }} - {{ .Date.Format "2006-01-02" }} + {{ .Date.Format "2006-01-02" }} {{ end }} {{ range .Params.tags }} - - {{ . }} - + + {{ . }} + {{ end }}


diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index e1c3b76..ebc40d7 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -2,7 +2,7 @@ {{ if .Params.image }}
- {{ .Title }} image +
{{ end }} diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 491c2b7..67130a3 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -145,8 +145,9 @@ footer { width: 20%; } - img { + .image { width: 100%; + height: 10vh; } }