diff --git a/layouts/all/single.html b/layouts/all/single.html index 3d9dad3e..da39b9ee 100644 --- a/layouts/all/single.html +++ b/layouts/all/single.html @@ -1,13 +1,15 @@ {{ define "main" }}
- {{ range where .Site.Pages "Kind" "page"}} + {{ range where .Site.Pages "Kind" "page"}} {{ if not (eq .Type "response")}}
- {{ with .Page.Params.Image }}
{{ partial "image.html" . }}
{{ end }} +
- {{if eq .Type "article"}}

{{ .Title }}

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

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}-minute read
@@ -17,14 +19,14 @@ {{ .Content }} {{ if eq .Type "photo"}}
- {{$link := .Permalink}} - {{$summary := .Content}} - {{ range .Page.Params.Photo }} - {{ if isset . "value" }} - {{ .alt }} - {{ else }} - Alt not yet added, will fix! - {{end}}{{end}} + {{$link := .Permalink}} + {{$summary := .Content}} + {{ range .Page.Params.Photo }} + {{ if isset . "value" }} + {{ .alt }} + {{ else }} + Alt not yet added, will fix! + {{end}}{{end}}
{{end}}

@@ -32,19 +34,22 @@ {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
{{ end }} -
+
{{ else }}
-

{{ .Site.Params.Firstname }} - {{ if eq .Params.posttype "in-reply-to" }} replied to {{ index .Params "in-reply-to" }}{{ end }} - {{ if eq .Params.posttype "like-of" }} liked {{ index .Params "like-of" }}{{ end }} - {{ if eq .Params.posttype "repost-of" }} shared {{ index .Params "repost-of" }}{{ end }}

+ +

{{ .Site.Params.Title }} + {{ if eq .Params.posttype "like-of" }} liked {{ index .Params "like-of" }}{{ end }} + {{ if eq .Params.posttype "in-reply-to" }} replied to {{ index .Params "in-reply-to" }}{{ end }} + {{ if eq .Params.posttype "repost-of" }} shared {{ index .Params "repost-of" }}{{ end }}

{{ if .Content }}
{{ .Content }}
{{end}} {{ if not (eq .Type "article") }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
{{ end }}
-
+
{{end}} {{ end }}