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

github.com/appernetic/hugo-nederburg-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoransv <gsv@appernetic.io>2018-08-31 17:02:25 +0300
committerGitHub <noreply@github.com>2018-08-31 17:02:25 +0300
commitb4fcf0eaffa662cdd3e3feea86966cd1c6b50c79 (patch)
tree2ed34a3a6aecdeed77961d3698915a1a4e0c3fda
parentfe6805b496689466271a05eccee7ea4663b336d5 (diff)
parente21fa2492ed7fc58ab954d311f83339ea5fb50cb (diff)
Merge branch 'master' into multiple-writers
-rw-r--r--exampleSite/config.toml5
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/category.html2
-rw-r--r--layouts/partials/portfolio.html2
4 files changed, 7 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 168c5fd..3938aa2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -10,6 +10,8 @@ preserveTaxonomyNames = true
paginate = 5 #frontpage pagination
[params]
+ # Unmark to use post folder for images. Default is static folder.
+ #usepostimgfolder = true
slogan = "A fast &amp; secure theme"
description = "Describe your website" # meta description
author = "Göran Svensson"
@@ -89,4 +91,5 @@ paginate = 5 #frontpage pagination
stackoverflow = "full profile url in stackoverflow"
instagram = "full profile url in instagram"
github = "full profile url in github"
- pinterest = "full profile url in pinterest" \ No newline at end of file
+ pinterest = "full profile url in pinterest"
+
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 8e1f1e1..414a808 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -16,7 +16,7 @@
{{ if and (isset .Params "image") .Params.image }}
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-design tag-standard-2 tag-tagalicious tag-travel entry full-without-featured odd excerpt-1">
- <div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}">
+ <div class='featured-image lazy lazy-bg-image' {{ if isset .Site.Params "usepostimgfolder" }} data-background="{{ .Permalink }}{{ .Params.image }}"{{ else }} data-background="{{ .Params.image | absURL }}"{{ end }}>
</div>
{{ else }}
diff --git a/layouts/partials/category.html b/layouts/partials/category.html
index 40c994e..ac014c3 100644
--- a/layouts/partials/category.html
+++ b/layouts/partials/category.html
@@ -24,7 +24,7 @@
{{ end }}
{{ if and (isset .Params "image") .Params.image }}
- <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}"></div></a>
+ <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' {{if isset .Site.Params "usepostimgfolder"}}data-background="{{ .Permalink }}{{ .Params.image }}"{{ else }}data-background="{{ .Params.image | absURL }}"{{ end }}></div></a>
{{ end }}
<div class="excerpt-container">
diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html
index 855792c..4db2f15 100644
--- a/layouts/partials/portfolio.html
+++ b/layouts/partials/portfolio.html
@@ -23,7 +23,7 @@
{{ end }}
{{ if and (isset .Params "image") .Params.image }}
- <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}"></div></a>
+ <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' {{if isset .Site.Params "usepostimgfolder"}}data-background="{{ .Permalink }}{{ .Params.image }}"{{ else }}data-background="{{ .Params.image | absURL }}"{{ end }}></div></a>
{{ end }}
<div class="excerpt-container">