diff --git a/themes/red/layouts/_default/art-detail.html b/themes/red/layouts/_default/art-detail.html
index c8f9e8d..47aec0a 100644
--- a/themes/red/layouts/_default/art-detail.html
+++ b/themes/red/layouts/_default/art-detail.html
@@ -1,6 +1,5 @@
{{ define "main" }}
- {{ . }}
-
+ {{ . }}
{{ end }}
{{ if .Params.threed }}
diff --git a/themes/red/layouts/partials/art-gallery.html b/themes/red/layouts/partials/art-gallery.html
index c118dd6..04556f7 100644
--- a/themes/red/layouts/partials/art-gallery.html
+++ b/themes/red/layouts/partials/art-gallery.html
@@ -1,11 +1,11 @@
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
diff --git a/themes/red/layouts/partials/art-tag.html b/themes/red/layouts/partials/art-tag.html
index c758b21..73d77b4 100644
--- a/themes/red/layouts/partials/art-tag.html
+++ b/themes/red/layouts/partials/art-tag.html
@@ -1,5 +1,4 @@
{{ .Title }}
-
{{ .Content }}
diff --git a/themes/red/layouts/partials/comments.html b/themes/red/layouts/partials/comments.html
index 64560b4..99604cf 100644
--- a/themes/red/layouts/partials/comments.html
+++ b/themes/red/layouts/partials/comments.html
@@ -1,17 +1,17 @@
Comments
{{ if hugo.IsProduction }}
-
-
-
-
+
+
+
+
{{ else }}
-
Comments are disabled in development mode.
+
Comments are disabled in development mode.
{{ end }}
diff --git a/themes/red/layouts/partials/featured-art.html b/themes/red/layouts/partials/featured-art.html
index 68dba66..2a5f797 100644
--- a/themes/red/layouts/partials/featured-art.html
+++ b/themes/red/layouts/partials/featured-art.html
@@ -30,14 +30,12 @@
{{ with .title }}
- "{{ . }}"
+ "{{ . }}"
{{ end }}
{{ else }}
-
-
CANNOT FIND {{ .filename }}
-
+
CANNOT FIND {{ .filename }}
{{ end }}
{{ end }}
diff --git a/themes/red/layouts/partials/head.html b/themes/red/layouts/partials/head.html
index afded2e..b9e79e6 100644
--- a/themes/red/layouts/partials/head.html
+++ b/themes/red/layouts/partials/head.html
@@ -27,13 +27,13 @@
{{ $masonry := resources.Get "js/masonry.min.js" }}
{{ if hugo.IsProduction }}
- {{ $masonry = $masonry | minify | fingerprint | resources.PostProcess }}
+ {{ $masonry = $masonry | fingerprint | resources.PostProcess }}
{{ end }}
{{ $imagesloaded := resources.Get "js/imagesloaded.min.js" }}
{{ if hugo.IsProduction }}
- {{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}
+ {{ $imagesloaded = $imagesloaded | fingerprint | resources.PostProcess }}
{{ end }}
diff --git a/themes/red/layouts/partials/header.html b/themes/red/layouts/partials/header.html
index 31ebb44..cf15321 100644
--- a/themes/red/layouts/partials/header.html
+++ b/themes/red/layouts/partials/header.html
@@ -1,5 +1,4 @@
-{{ $avatar := resources.Get .Site.Params.profile_picture }}
-{{ with $avatar }}
-

+{{ with resources.Get .Site.Params.profile_picture }}
+

{{ end }}
{{ .Site.Title }}
diff --git a/themes/red/layouts/partials/related.html b/themes/red/layouts/partials/related.html
index 431fe55..5b5ae5d 100644
--- a/themes/red/layouts/partials/related.html
+++ b/themes/red/layouts/partials/related.html
@@ -1,5 +1,4 @@
-{{ $related := .Site.RegularPages.Related . | first 5 }}
-{{ with $related }}
+{{ with .Site.RegularPages.Related . | first 5 }}
See Also
{{ range . }}
diff --git a/themes/red/layouts/partials/render-art.html b/themes/red/layouts/partials/render-art.html
index e763d01..da4238a 100644
--- a/themes/red/layouts/partials/render-art.html
+++ b/themes/red/layouts/partials/render-art.html
@@ -1,56 +1,55 @@
{{ $base := "art" }}
+
{{ if .Params.threed }}
-{{ $base = "3d" }}
+ {{ $base = "3d" }}
{{ end }}
{{ if .Params.animation }}
-{{ $base = "animation" }}
+ {{ $base = "animation" }}
{{ end }}
{{ $full := resources.Get (printf "%s/%s.webp" $base .Params.slug) }}
{{ if $full }}
+ {{ $filename_without_ext := .Params.slug }}
-{{ $filename_without_ext := .Params.slug }}
+ {{ $month := 1 }}
+ {{ $year := 1 }}
-{{ $month := 1 }}
-{{ $year := 1 }}
-
-{{ if .Params.date }}
- {{ $split := split .Params.date "-" }}
- {{ $month = index $split 0 }}
- {{ $year = index $split 3 }}
-{{ end }}
-
-
-
-{{ $path := printf "/%s/%d/%.2d/%s" $base (int $year) (int $month) $filename_without_ext}}
- {{ $title := .Params.title }}
- {{ $image := (resources.Get (printf "%s/%s.webp" $base .Params.slug)).Resize "400x" }}
-
- {{ if .Params.nsfw }}
- {{ $image = $image | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}
+ {{ if .Params.date }}
+ {{ $split := split .Params.date "-" }}
+ {{ $month = index $split 0 }}
+ {{ $year = index $split 3 }}
{{ end }}
- {{ with $image }}
- {{ if $.Params.threed }}
- {{ with resources.Get "3d.png" }}
-
- {{ end }}
+
+
+ {{ $path := printf "/%s/%d/%.2d/%s" $base (int $year) (int $month) $filename_without_ext}}
+ {{ $title := .Params.title }}
+ {{ $image := (resources.Get (printf "%s/%s.webp" $base .Params.slug)).Resize "400x" }}
+
+ {{ if .Params.nsfw }}
+ {{ $image = $image | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}
{{ end }}
- {{ if $.Params.animation }}
- {{ with resources.Get "play-circle.png" }}
-
+ {{ with $image }}
+ {{ if $.Params.threed }}
+ {{ with resources.Get "3d.png" }}
+
+ {{ end }}
{{ end }}
+
+ {{ if $.Params.animation }}
+ {{ with resources.Get "play-circle.png" }}
+
+ {{ end }}
+ {{ end }}
+
+
+ {{ else }}
+ Thumbnail not found!
{{ end }}
-
- {{ else }}
- Thumbnail not found!
- {{ end }}
-
+
{{ else }}
-
-CANNOT FIND {{ .Params.slug }}
-
+ CANNOT FIND {{ .Params.slug }}
{{ end }}
diff --git a/themes/red/layouts/partials/voting.html b/themes/red/layouts/partials/voting.html
index 4e42432..b74b6ee 100644
--- a/themes/red/layouts/partials/voting.html
+++ b/themes/red/layouts/partials/voting.html
@@ -1,7 +1,7 @@
{{ $name := urlize .Title }}
{{ with .Slug }}
-{{ $name = . }}
+ {{ $name = . }}
{{ end }}
@@ -11,16 +11,13 @@
{{ if hugo.IsProduction }}
-{{ $site := resources.Get "js/voting.js" }}
-{{ if hugo.IsProduction }}
- {{ $site = $site | minify | fingerprint | resources.PostProcess }}
-{{ end }}
-
+ {{ $site = resources.Get "js/voting.js" | minify | fingerprint | resources.PostProcess }}
+
-
+
{{ else }}
-debug: {{ $name }}
+ Voting is disabled in development mode.
{{ end }}
diff --git a/themes/red/layouts/shortcodes/profile-picture.html b/themes/red/layouts/shortcodes/profile-picture.html
index 7586182..21e910b 100644
--- a/themes/red/layouts/shortcodes/profile-picture.html
+++ b/themes/red/layouts/shortcodes/profile-picture.html
@@ -1,4 +1,3 @@
-{{ $avatar := resources.Get .Site.Params.profile_picture }}
-{{ with $avatar }}
-
+{{ with resources.Get .Site.Params.profile_picture }}
+
{{ end }}
diff --git a/themes/red/layouts/shortcodes/recent-posts.html b/themes/red/layouts/shortcodes/recent-posts.html
index 375ef01..2f26df9 100644
--- a/themes/red/layouts/shortcodes/recent-posts.html
+++ b/themes/red/layouts/shortcodes/recent-posts.html
@@ -1,11 +1,10 @@
Recent Blog Posts
+
-
-{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
-
-
- {{ .Title }}
-
{{ .Summary }}
-
-{{ end }}
-
+ {{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
+
-
+ {{ .Title }}
+
{{ .Summary }}
+
+ {{ end }}