diff --git a/config.toml b/config.toml index 561c23d2..7b376b53 100644 --- a/config.toml +++ b/config.toml @@ -35,7 +35,7 @@ ignoreErrors = ["error-remote-getjson"] [taxonomies] blog = "blog" -image = "image" +images = "images" tag = "tag" category = "category" type = "type" @@ -45,11 +45,13 @@ repost-of = "repost-of" bookmark-of = "bookmark-of" posttype = "posttype" slug = "slug" +series = "series" [params] -title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿" +title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿 | personal site" author = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿" profilePicture = "images/profile.jpg" +images = ["images/profile.jpg"] siteLogo = "images/na-sm.png" keywords = "" favicon = "favicons/" diff --git a/content/article/end-of-the-imperial-march/index.md b/content/article/end-of-the-imperial-march/index.md index 095764d8..9d93be5c 100644 --- a/content/article/end-of-the-imperial-march/index.md +++ b/content/article/end-of-the-imperial-march/index.md @@ -15,7 +15,7 @@ category: - "imperial stout" - "coffee" - "cocoa nibs" -Image: ["/images/not-black-and-white/23l_imperial_stout_all_grain_beer_kit.png"] +images: ["/images/not-black-and-white/23l_imperial_stout_all_grain_beer_kit.png"] Type: ["article"] draft: false DibleComments: false diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 5ce8e366..c89ec5e8 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -10,7 +10,7 @@
- {{if eq .Type "article" }}
{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

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

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
{{ .ReadingTime }}-minute read

{{ with .Page.Params.Blog }} {{ partial "taxonomy/blog.html" . }}{{ end }}
diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 6d7af2bf..6c0c8b22 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -5,7 +5,7 @@ - {{ if eq .Type "article" }}{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

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

{{ .Title }}

{{ .Description }}
{{ .ReadingTime }}-minute read

{{ with .Page.Params.Blog }} {{ partial "taxonomy/blog.html" . }}{{ end }}
diff --git a/themes/nipponalba/layouts/index.html b/themes/nipponalba/layouts/index.html index bd716501..4ad2c827 100644 --- a/themes/nipponalba/layouts/index.html +++ b/themes/nipponalba/layouts/index.html @@ -34,7 +34,7 @@

Latest posts

{{ range (first 3 (where .Site.RegularPages "Type" "!=" "response")) }}
- {{ if eq .Type "article"}}{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

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

{{ .Title }}

{{ end }}
{{ if not (eq .Type "article")}}{{ .Content }}{{ else}}{{ .Summary }}{{ end }} {{ if eq .Type "photo"}}
diff --git a/themes/nipponalba/layouts/partials/head.html b/themes/nipponalba/layouts/partials/head.html index 57ab8ef2..fe0f49a2 100644 --- a/themes/nipponalba/layouts/partials/head.html +++ b/themes/nipponalba/layouts/partials/head.html @@ -33,6 +33,7 @@ + {{ template "_internal/opengraph.html" . }}