Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Lednerb/bilberry-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Brendel <mail@lednerb.eu>2020-07-24 14:43:01 +0300
committerSascha Brendel <mail@lednerb.eu>2020-07-24 14:43:01 +0300
commit8d24427f749aef3d42b9cc9555ec19a1e0cbc388 (patch)
treeaf2d93111f3e2af04c88137aae204bdf3f834f1a
parent05ac1924d21e274569793ec0c7b4dffb9c3c096f (diff)
Fixed logical error for #208
-rw-r--r--layouts/partials/content-type/article.html2
-rw-r--r--layouts/partials/content-type/audio.html2
-rw-r--r--layouts/partials/content-type/code.html2
-rw-r--r--layouts/partials/content-type/gallery.html2
-rw-r--r--layouts/partials/content-type/page.html2
-rw-r--r--layouts/partials/content-type/picture.html2
-rwxr-xr-xlayouts/partials/content-type/video.html2
7 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/content-type/article.html b/layouts/partials/content-type/article.html
index 88477ef..3c86527 100644
--- a/layouts/partials/content-type/article.html
+++ b/layouts/partials/content-type/article.html
@@ -6,7 +6,7 @@
{{ partial "featured-image" . }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/audio.html b/layouts/partials/content-type/audio.html
index 59a5a7b..eaff31d 100644
--- a/layouts/partials/content-type/audio.html
+++ b/layouts/partials/content-type/audio.html
@@ -31,7 +31,7 @@
{{ end }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/code.html b/layouts/partials/content-type/code.html
index 5294fe7..c266500 100644
--- a/layouts/partials/content-type/code.html
+++ b/layouts/partials/content-type/code.html
@@ -6,7 +6,7 @@
{{ partial "featured-image" . }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/gallery.html b/layouts/partials/content-type/gallery.html
index 89cb408..e2d8df0 100644
--- a/layouts/partials/content-type/gallery.html
+++ b/layouts/partials/content-type/gallery.html
@@ -30,7 +30,7 @@
{{ end }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/page.html b/layouts/partials/content-type/page.html
index f8e6f3d..80d5981 100644
--- a/layouts/partials/content-type/page.html
+++ b/layouts/partials/content-type/page.html
@@ -6,7 +6,7 @@
{{ partial "featured-image" . }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/picture.html b/layouts/partials/content-type/picture.html
index 1300d98..dacdea4 100644
--- a/layouts/partials/content-type/picture.html
+++ b/layouts/partials/content-type/picture.html
@@ -6,7 +6,7 @@
{{ partial "featured-image" . }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}
diff --git a/layouts/partials/content-type/video.html b/layouts/partials/content-type/video.html
index ab7a73c..93b8f15 100755
--- a/layouts/partials/content-type/video.html
+++ b/layouts/partials/content-type/video.html
@@ -33,7 +33,7 @@
{{ end }}
{{ $PAGE_TYPE := "SINGLE_PAGE"}}
- {{ if .Scratch.Get "singlePage"}}
+ {{ if not (.Scratch.Get "singlePage") }}
{{ $PAGE_TYPE := "MULTI_PAGE"}}
{{ end }}
{{ partialCached "default-content" . .Title .Content $PAGE_TYPE }}