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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2022-04-01 11:25:34 +0300
committerQueensferry <queensferry.me@gmail.com>2022-04-01 11:25:34 +0300
commiteee37ae644f833740e46039e4d0fb3cad8448be3 (patch)
treea5aee4ef194d612ebe44440401732bf4cae0edd9
parent608bc04b738642a1ac4190def8caae1c3ff6031a (diff)
feat: support opengraph and schema
-rw-r--r--config.toml5
-rw-r--r--layouts/_default/baseof.html10
2 files changed, 9 insertions, 6 deletions
diff --git a/config.toml b/config.toml
index 064ae86..509bd07 100644
--- a/config.toml
+++ b/config.toml
@@ -43,9 +43,8 @@ name = "About"
url = "/about/"
weight = 3
-# https://gohugo.io/getting-started/configuration/#configure-minify
-[minify]
-minifyOutput = false # output asset minimization
+[taxonomies]
+series = "series" # a group of related posts, see https://gohugo.io/templates/internal/#open-graph
########################
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 687c478..ef3f2a7 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -33,6 +33,9 @@
{{ partial "math.html" . }}
{{ end }}
+ <!-- opengraph -->
+ {{ template "_internal/opengraph.html" . }}
+
<!-- permalink -->
<link rel="canonical" href="{{ .Permalink }}">
@@ -42,6 +45,9 @@
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
+ <!-- schema -->
+ {{ template "_internal/schema.html" . }}
+
<!-- style -->
<link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'>
<link media="screen" rel="stylesheet" href='{{ "css/content.css" | absURL }}'>
@@ -54,9 +60,7 @@
{{ end }}
<!-- twitter -->
- <meta name="twitter:card" content="summary" />
- <meta name="twitter:title" content="{{ .Title }}" />
- <meta name="twitter:description" content="{{ .Summary }}" />
+ {{ template "_internal/twitter_cards.html" . }}
{{ block "head" . }}{{ end }}
</head>