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-25 13:33:30 +0300
committerSascha Brendel <mail@lednerb.eu>2020-07-25 13:33:30 +0300
commit3d05181bc12dbdcd078a840149f187bead566f3f (patch)
treeb96956c9c3b2a28655acc6a8c8c5e713863197cb
parent4428ebf836fab0d09ed9f35f73c1f878c74340fe (diff)
Refactored partials to always include the .html suffix as described in the official hugo documentation. Part of #208
-rw-r--r--layouts/_default/baseof.html12
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html6
-rw-r--r--layouts/partials/article-wrapper.html2
-rw-r--r--layouts/partials/content-type/article.html6
-rw-r--r--layouts/partials/content-type/audio.html6
-rw-r--r--layouts/partials/content-type/code.html6
-rw-r--r--layouts/partials/content-type/gallery.html6
-rw-r--r--layouts/partials/content-type/page.html6
-rw-r--r--layouts/partials/content-type/picture.html6
-rwxr-xr-xlayouts/partials/content-type/video.html6
12 files changed, 34 insertions, 34 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3bdfdb1..8817f03 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -69,7 +69,7 @@
<link rel="stylesheet" href="{{ "theme.css" | absURL }}">
- {{ partial "twitter-card" . }}
+ {{ partial "twitter-card.html" . }}
{{ if isset .Site.Params "css_modules" }}
{{ range .Site.Params.css_modules }}
@@ -80,20 +80,20 @@
<body class="bilberry-hugo-theme">
- {{ partial "topnav" . }}
+ {{ partial "topnav.html" . }}
- {{ partial "header" . }}
+ {{ partial "header.html" . }}
<div class="main container">
{{ block "main" . }}{{ end }}
</div>
- {{ partial "footer" . }}
+ {{ partial "footer.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{ if and (isset .Site.Params "enable_mathjax") (eq .Site.Params.enable_mathjax true) }}
- {{ partial "mathjax" . }}
+ {{ partial "mathjax.html" . }}
{{ end }}
@@ -106,7 +106,7 @@
{{ end }}
{{ if and (isset .Site.Params "algolia_search") (eq .Site.Params.algolia_search true) }}
- {{ partial "algolia-search" . }}
+ {{ partial "algolia-search.html" . }}
{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 5aca570..8188e9e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,10 +6,10 @@
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
- {{ partial "content-type/article" . }}
+ {{ partial "content-type/article.html" . }}
{{ end }}
</div>
{{ end }}
- {{ partial "paginator" . }}
+ {{ partial "paginator.html" . }}
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e292803..90386a4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,7 +4,7 @@
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
- {{ partial "content-type/article" . }}
+ {{ partial "content-type/article.html" . }}
{{ end }}
</div>
diff --git a/layouts/index.html b/layouts/index.html
index 411ae6b..37d70a2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -8,14 +8,14 @@
{{/* Do nothing if the pinOnlyToFirstPage flag is set and we're not on page 1. */}}
{{else}}
{{ range first 1 (where .Data.Pages "URL" .Site.Params.pinnedPost) }}
- {{ partial "article-wrapper" . }}
+ {{ partial "article-wrapper.html" . }}
{{end}}
{{end}}
{{end}}
{{ range $paginator.Pages }}
- {{ partial "article-wrapper" . }}
+ {{ partial "article-wrapper.html" . }}
{{ end }}
- {{ partial "paginator" . }}
+ {{ partial "paginator.html" . }}
{{ end }}
diff --git a/layouts/partials/article-wrapper.html b/layouts/partials/article-wrapper.html
index 83cae09..39cfe9c 100644
--- a/layouts/partials/article-wrapper.html
+++ b/layouts/partials/article-wrapper.html
@@ -4,7 +4,7 @@
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
- {{ partial "content-type/article" . }}
+ {{ partial "content-type/article.html" . }}
{{ end }}
</div>
{{end}}
diff --git a/layouts/partials/content-type/article.html b/layouts/partials/content-type/article.html
index 43913c0..149a65f 100644
--- a/layouts/partials/content-type/article.html
+++ b/layouts/partials/content-type/article.html
@@ -3,7 +3,7 @@
</a>
<article class="default article">
- {{ partial "featured-image" . }}
- {{ partial "default-content" . }}
- {{ partial "article-footer" . }}
+ {{ partial "featured-image.html" . }}
+ {{ partial "default-content.html" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/audio.html b/layouts/partials/content-type/audio.html
index 4ae0be1..767bd8a 100644
--- a/layouts/partials/content-type/audio.html
+++ b/layouts/partials/content-type/audio.html
@@ -3,7 +3,7 @@
</a>
<article class="audio">
- {{ partial "featured-image" . }}
+ {{ partial "featured-image.html" . }}
{{ with .Params.spotify }}
<div class="responsive-audio spotify">
@@ -30,6 +30,6 @@
</div>
{{ end }}
- {{ partial "default-content" . }}
- {{ partial "article-footer" . }}
+ {{ partial "default-content.html" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/code.html b/layouts/partials/content-type/code.html
index 3cba019..01395a5 100644
--- a/layouts/partials/content-type/code.html
+++ b/layouts/partials/content-type/code.html
@@ -3,7 +3,7 @@
</a>
<article class="default article">
- {{ partial "featured-image" . }}
- {{ partial "default-content" . }}
- {{ partial "article-footer" . }}
+ {{ partial "featured-image.html" . }}
+ {{ partial "default-content.html" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/gallery.html b/layouts/partials/content-type/gallery.html
index 8ef30c2..88d992f 100644
--- a/layouts/partials/content-type/gallery.html
+++ b/layouts/partials/content-type/gallery.html
@@ -26,9 +26,9 @@
</ul>
</div>
{{ else}}
- {{ partial "featured-image" . }}
+ {{ partial "featured-image.html" . }}
{{ end }}
- {{ partial "default-content" . }}
- {{ partial "article-footer" . }}
+ {{ partial "default-content.html" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/page.html b/layouts/partials/content-type/page.html
index 3943b45..2aa1eb4 100644
--- a/layouts/partials/content-type/page.html
+++ b/layouts/partials/content-type/page.html
@@ -3,12 +3,12 @@
</a>
<article class="default article">
- {{ partial "featured-image" . }}
- {{ partial "default-content" . }}
+ {{ partial "featured-image.html" . }}
+ {{ partial "default-content.html" . }}
{{ with .Params.link }}
<script>window.location = {{ . | relURL }}</script>
{{ end }}
- {{ partial "article-footer" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/picture.html b/layouts/partials/content-type/picture.html
index 39ed8b6..df9a4a5 100644
--- a/layouts/partials/content-type/picture.html
+++ b/layouts/partials/content-type/picture.html
@@ -3,7 +3,7 @@
</a>
<article class="picture">
- {{ partial "featured-image" . }}
- {{ partial "default-content" . }}
- {{ partial "article-footer" . }}
+ {{ partial "featured-image.html" . }}
+ {{ partial "default-content.html" . }}
+ {{ partial "article-footer.html" . }}
</article>
diff --git a/layouts/partials/content-type/video.html b/layouts/partials/content-type/video.html
index cd144b8..c989bad 100755
--- a/layouts/partials/content-type/video.html
+++ b/layouts/partials/content-type/video.html
@@ -3,7 +3,7 @@
</a>
<article class="video">
- {{ partial "featured-image" . }}
+ {{ partial "featured-image.html" . }}
{{ with .Params.youtube }}
<div class="responsive-video youtube">
@@ -31,7 +31,7 @@
</video>
</div>
{{ end }}
-
+
{{ partial "default-content.html" . }}
- {{ partial "article-footer" . }}
+ {{ partial "article-footer.html" . }}
</article>