diff --git a/themes/nipponalba/layouts/_default/section.html b/themes/nipponalba/layouts/_default/section.html index 926f482..1cf6783 100644 --- a/themes/nipponalba/layouts/_default/section.html +++ b/themes/nipponalba/layouts/_default/section.html @@ -6,7 +6,7 @@ {{ partial "pagination.html" . }} {{ range .Paginator.Pages}} {{ if not (eq .Type "response")}}
- {{ with .Page.Params.Image }}
{{ partial "image.html" . }}
{{ end }} + {{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} {{ end }}{{ end }}
{{if eq .Type "article"}}

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
diff --git a/themes/nipponalba/layouts/_default/section.jp.html b/themes/nipponalba/layouts/_default/section.jp.html index 71ec0e3..82d6c34 100644 --- a/themes/nipponalba/layouts/_default/section.jp.html +++ b/themes/nipponalba/layouts/_default/section.jp.html @@ -6,7 +6,7 @@ {{ partial "pagination.html" . }} {{ range .Paginator.Pages}} {{ if not (eq .Type "response")}}
- {{ with .Page.Params.Image }}
{{ partial "image.html" . }}
{{ end }} + {{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} {{ end }}{{ end }}
{{if eq .Type "article"}}

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 8241adb..af7ed64 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -4,7 +4,7 @@ - {{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }} + {{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} {{ end }}{{ end }}
{{ if eq .Type "article" }}

{{ .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
diff --git a/themes/nipponalba/layouts/_default/single.jp.html b/themes/nipponalba/layouts/_default/single.jp.html index 0c12f7b..c473523 100644 --- a/themes/nipponalba/layouts/_default/single.jp.html +++ b/themes/nipponalba/layouts/_default/single.jp.html @@ -4,7 +4,7 @@ - {{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }} + {{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} {{ end }}{{ end }}
{{ if eq .Type "article" }}

{{ .Title }}

{{ .Description }}
{{ with .Page.Params.Blog }}ブログ: {{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}カテゴリー: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}分間の読み取り
diff --git a/themes/nipponalba/layouts/index.html b/themes/nipponalba/layouts/index.html index 26b5019..2d4c995 100644 --- a/themes/nipponalba/layouts/index.html +++ b/themes/nipponalba/layouts/index.html @@ -22,7 +22,7 @@

Latest articles

{{ range (first 3 (where .Site.RegularPages "Type" "=" "article")) }} {{ end }}

Latest photos