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 <git@rootwork.org>2022-06-30 23:57:19 +0300
committerGitHub <noreply@github.com>2022-06-30 23:57:19 +0300
commit69751d47e52293c22100bdd297679dacb9f4e9e3 (patch)
treebee11193e68cb04224f29540dc84e9705beb70b9 /exampleSite
parent77f33ab9841416cfcbd0e5e85a0c14d8b601a5e4 (diff)
parent0efdd7a84ae133b71bf1daa12cc09c6dfe4c7824 (diff)
Merge pull request #324 from chipzoller/baseurl-fixes
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config/_default/params.toml35
-rw-r--r--exampleSite/content/post/markdown-syntax.md4
-rw-r--r--exampleSite/content/post/markdown-syntax.pt.md4
-rw-r--r--exampleSite/content/post/notices.md4
4 files changed, 32 insertions, 15 deletions
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index d565a29..2ba2b67 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -26,9 +26,34 @@ numberOfTagsShown = 14 # Applies for all other default & custom taxonomies. e.g
# Details on page bundles: https://gohugo.io/content-management/page-bundles/#leaf-bundles
usePageBundles = false
-# will be used on share >> twitter, facebook, linkedin
+# Path variables
+#
+# By default, each of these directories are children of the `static` directory.
+#
+# In some Apache server installs, these directory names could conflict and you
+# may want to change them. See:
+# https://github.com/chipzoller/hugo-clarity/issues/74
+#
+# If you change the names of these directories, be sure to copy the contents of
+# the originals to get the files included with Hugo Clarity.
+#
+# Images:
+imagesDir = "images/" # without a leading forward slash
+# Icons:
+iconsDir = "icons/" # without a leading forward slash
+# Fonts:
+fontsDir = "fonts/" # without a leading forward slash
+
+# Social media sharing image: Will be used on Twitter, Facebook, LinkedIn, etc.
+# when a given page has no other image present.
fallBackOgImage = "images/thumbnail.png"
+# Logo image
+logo = "logos/logo.png"
+
+# center logo on navbar
+centerLogo = false # Set to "true" for centering or "false" for left aligned.
+
# sets the maximum number of lines per codeblock. The codeblock will however be scrollable and expandable.
codeMaxLines = 7
@@ -41,11 +66,6 @@ enableMathNotation = false
# directory(s) where your articles are located
mainSections = ["post"] # see config details here https://gohugo.io/functions/where/#mainsections
-# center logo on navbar
-centerLogo = false # Set to "true" for centering or "false" for left aligned.
-
-logo = "logos/logo.png"
-
# Label Non inline images on an article body
figurePositionShow = false # toggle on or off globally
# you can toggle this behaviour on or off on per page using the same variable inside your articles frontmatter
@@ -99,9 +119,6 @@ languageMenuName = "🌐"
# notice of the footer.
# since = 2016
-# tell hugo where you store your icons e.g favicons. This is useful if you're using an apache server and there are conflicts >> see issue https://github.com/chipzoller/hugo-clarity/issues/74. If this is applicable to you, be sure to copy the contents of https://github.com/chipzoller/hugo-clarity/tree/master/static/icons to your preferred icons directory
-iconsDir = "icons/" # without a leading forward slash
-
# Show related content at the end of an article based on the 'series' taxonomy. Can be set in post front matter.
# showRelatedInArticle = false
# showRelatedInSidebar = false
diff --git a/exampleSite/content/post/markdown-syntax.md b/exampleSite/content/post/markdown-syntax.md
index 4e9245b..c9b8062 100644
--- a/exampleSite/content/post/markdown-syntax.md
+++ b/exampleSite/content/post/markdown-syntax.md
@@ -46,7 +46,7 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The following image is located within the Hugo site. Because it has alt text but no title text, the caption is generated by the alt text.
-![Jane Doe](/images/jane-doe.png)
+![Jane Doe](../images/jane-doe.png)
### Remote image, specified caption
@@ -58,7 +58,7 @@ The following image is loaded from a remote URL. The alt text is the same (for s
Alt text is always recommended for SEO, accessibility and in cases when images don't load. However, you don't necessarily always want an image to have a caption. In that case, use a title with one space:
-![A building](/images/building.png " ")
+![A building](../images/building.png " ")
## Blockquotes
diff --git a/exampleSite/content/post/markdown-syntax.pt.md b/exampleSite/content/post/markdown-syntax.pt.md
index 74a6293..695235a 100644
--- a/exampleSite/content/post/markdown-syntax.pt.md
+++ b/exampleSite/content/post/markdown-syntax.pt.md
@@ -51,7 +51,7 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The following image is located within the Hugo site. Because it has alt text but no title text, the caption is generated by the alt text.
-![Jane Doe](/images/jane-doe.png)
+![Jane Doe](../images/jane-doe.png)
### Remote image, specified caption
@@ -63,7 +63,7 @@ The following image is loaded from a remote URL. The alt text is the same (for s
Alt text is always recommended for SEO, accessibility and in cases when images don't load. However, you don't necessarily always want an image to have a caption. In that case, use a title with one space:
-![A building](/images/building.png " ")
+![A building](../images/building.png " ")
## Blockquotes
diff --git a/exampleSite/content/post/notices.md b/exampleSite/content/post/notices.md
index 66b9a50..41b4553 100644
--- a/exampleSite/content/post/notices.md
+++ b/exampleSite/content/post/notices.md
@@ -61,7 +61,7 @@ public void SayHello()
If you're using VS Code for your editing, copy the `.vscode\clarity.code-snippets` file into a `.vscode` root folder on your repo. This will enable you to type
`note` then `<tab>` then choose with up/down arrows which flavor notice you want, then `<tab>` again to provide a title, then `<tab>` to add your content!
-![](/images/Note-Snippet.gif)
+![](../images/Note-Snippet.gif)
To use the snippet, you need to first **enable quickSuggestions for Markdown** (one time only):
@@ -74,4 +74,4 @@ To use the snippet, you need to first **enable quickSuggestions for Markdown** (
}
```
4. Close and save the settings.
-{{% /notice %}} \ No newline at end of file
+{{% /notice %}}