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

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2019-10-30 16:54:15 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2019-10-30 16:54:15 +0300
commitfb2f641e18094165029f211c092f3403113d527e (patch)
treee67668cd1c59fa887af6d8fce64e78963fab83e2
parentf6f3e126963feb7531ef17fd3050ed18f8d2b19f (diff)
Simplify config
-rw-r--r--README.md4
-rw-r--r--config.yaml5
-rw-r--r--layouts/partials/comments.html2
3 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 79798d2..59a2180 100644
--- a/README.md
+++ b/README.md
@@ -66,12 +66,12 @@ params:
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
summaries: false # Set to true to show summaries of posts on homepage
+ divider: '\2015\2015' # Set to false to remove divider below posts on homepage
schema: false # Set to true to add Schema.org metadata
opengraph: false # Set to true to add Open Graph metadata
twittercards: false # Set to true to add Twitter Cards metadata
utterances:
- enabled: false # Set to true to add Utterances comments to single posts
- repo:
+ repo: # Set to Utterances repo URL to add Utterances comments
issueterm: pathname
theme: github-light
netlify:
diff --git a/config.yaml b/config.yaml
index 5756efa..d70dd6a 100644
--- a/config.yaml
+++ b/config.yaml
@@ -7,18 +7,17 @@ params:
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
summaries: false # Set to true to show summaries of posts on homepage
+ divider: '\2015\2015' # Set to false to remove divider below posts on homepage
schema: false # Set to true to add Schema.org metadata
opengraph: false # Set to true to add Open Graph metadata
twittercards: false # Set to true to add Twitter Cards metadata
utterances:
- enabled: false # Set to true to add Utterances comments to single posts
- repo:
+ repo: # Set to Utterances repo URL to add Utterances comments
issueterm: pathname
theme: github-light
netlify:
honeypot: false # Set to true to add honeypot field in contact form
recaptcha: false # Set to true to add recaptcha challenge in contact form
- divider: '\2015\2015' # Set to false to remove divider below posts on homepage
menu:
nav:
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index 78cf3cb..447116a 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,5 +1,5 @@
{{ with site.Params.utterances }}
-{{ if in site.Params.mainSections $.Type | and .enabled }}
+{{ if in site.Params.mainSections $.Type | and .repo }}
<script src="https://utteranc.es/client.js" repo="{{ .repo }}" issue-term="{{ .issueterm }}" theme="{{ .theme }}" crossorigin="anonymous" async></script>
{{end}}
{{end}}