From bc5ccd29d633b3ced3cc009da926e42026d359be Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 21 Jul 2020 18:33:59 +0100 Subject: [PATCH] fixing p-name issue with notes and photos --- themes/nipponalba/layouts/_default/single.html | 4 ++-- themes/nipponalba/static/css/style.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 222a9197..ba8d0d08 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -4,8 +4,8 @@ - {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

{{ .Description }} - {{ if eq .Type "article" }}
+ {{ if eq .Type "article" }}{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

{{ .Description }} +
{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}-minute read
{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }} diff --git a/themes/nipponalba/static/css/style.css b/themes/nipponalba/static/css/style.css index 20af5c01..7c69ff39 100644 --- a/themes/nipponalba/static/css/style.css +++ b/themes/nipponalba/static/css/style.css @@ -370,6 +370,7 @@ line-height: 2; width: 50px; height: 50px; border-radius: 50%; + object-fit:cover; margin: 0 auto; } .intactivity{