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

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <ivan@rootwork.org>2021-08-28 02:59:17 +0300
committerIvan Boothe <ivan@rootwork.org>2021-08-29 04:13:29 +0300
commit7c5e9446e401634f0717d81637feeaf7306418c0 (patch)
tree5736f4c9d049367597f02b78136e843591c7daf8 /exampleSite
parent4d5b0d2f6fe3902e541f488a86c8685abe2f343f (diff)
Adding switch for using/not using page bundles with images
Signed-off-by: Ivan Boothe <ivan@rootwork.org>
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/archetypes/post.md3
-rw-r--r--exampleSite/config/_default/params.toml8
2 files changed, 9 insertions, 2 deletions
diff --git a/exampleSite/archetypes/post.md b/exampleSite/archetypes/post.md
index 80f40ad..bdb4145 100644
--- a/exampleSite/archetypes/post.md
+++ b/exampleSite/archetypes/post.md
@@ -6,6 +6,7 @@ featured: true # Sets if post is a featured post, making appear on the home page
draft: true # Sets whether to render this page. Draft of true will not be rendered.
toc: false # Controls if a table of contents should be generated for first-level links automatically.
# menu: main
+usePageBundles: false # Set to true to group assets like images in the same folder as this post.
featureImage: "/images/path/file.jpg" # Sets featured image on blog post.
thumbnail: "/images/path/thumbnail.png" # Sets thumbnail image appearing inside card on homepage.
shareImage: "/images/path/share.png" # Designate a separate image for social media sharing.
@@ -20,4 +21,4 @@ tags:
# comment: false # Disable comment if false.
---
-**Insert Lead paragraph here.** \ No newline at end of file
+**Insert Lead paragraph here.**
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index c2045db..a2214ae 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -15,6 +15,12 @@ ga_analytics = "XXXXXXXXXX"
# limit the number of taxonomies links shown on the sidebar of each page by default.
numberOfTagsShown = 14 # Applies for all other default & custom taxonomies. e.g categories, brands see https://gohugo.io/content-management/taxonomies#what-is-a-taxonomy
+# Whether to default to storing images and other assets in the `static` directory, or use Hugo page bundles.
+# Switch to `true` if you'd like to group assets with the post itself (as a "leaf bundle").
+# This can be overridden at the page level; what is set below acts as the default if no page variable is set.
+# Details on page bundles: https://gohugo.io/content-management/page-bundles/#leaf-bundles
+usePageBundles = false
+
# will be used on share >> twitter, facebook, linkedin
fallBackOgImage = "images/thumbnail.png"
@@ -96,4 +102,4 @@ websiteDomain = "example.com" # domain name of your website, most cases same as
enable = false # To enable matomo analytics change to `true`.
websiteDomain = "example.com" # Set the domain name of your website, in most cases same as your base URL this is required.
matomoDomain = "matomo.example.com" # Set to Matomo domain
-matomoSiteID = "1" # Default is set to 1, change this to the siteid being tracked \ No newline at end of file
+matomoSiteID = "1" # Default is set to 1, change this to the siteid being tracked