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:
-rw-r--r--README.md4
-rw-r--r--config.yaml3
-rw-r--r--layouts/_default/baseof.html6
3 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index 173d428..d7e3d37 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@ A lightweight Hugo theme leveraging CSS Flexbox
Optional features:
- Show summaries on homepage
+- Schema.org, Open Graph and Twitter Cards metadata
- Utterances comments widget
- CSS and JS can be [dynamically embedded](#dynamically-embedded-css-and-js) with shortcodes
- Built-in shortcodes:
@@ -65,6 +66,9 @@ params:
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
summaries: false
+ schema: false
+ opengraph: false
+ twittercards: false
utterances:
enable: false
repo:
diff --git a/config.yaml b/config.yaml
index 5257b7c..9171d11 100644
--- a/config.yaml
+++ b/config.yaml
@@ -7,6 +7,9 @@ params:
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
summaries: false
+ schema: false
+ opengraph: false
+ twittercards: false
utterances:
enabled: false
repo:
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 72edd52..7d17574 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,9 +6,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- {{ template "_internal/schema.html" . }}
- {{ template "_internal/opengraph.html" . }}
- {{ template "_internal/twitter_cards.html" . }}
+ {{ if site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end }}
+ {{ if site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }}
+ {{ if site.Params.twittercards }}{{ template "_internal/twitter_cards.html" . }}{{ end }}
<title>
{{ if eq .Title site.Title }}
{{ site.Title }}