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>2020-07-01 12:02:23 +0300
committerQueensferry <queensferry.me@gmail.com>2020-07-01 12:02:23 +0300
commit8cb68c8d55f8cccb1ebe4cb77572a1199f6381b3 (patch)
tree78c65279937d52756f0abe0920adf1993726e643 /layouts
parentaf2b21ab97eeee142264b5bd1346c83558e034fa (diff)
feat: support twitter cards
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 82088e4..c519428 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -22,7 +22,10 @@
<meta name="keywords" content="{{ range $key, $value := .Site.Params.keywords }} {{ $value }} {{ end }}">
{{ end }}
- <!-- favicon -->
+ <!-- twitter -->
+ <meta name="twitter:card" content="summary" />
+ <meta name="twitter:title" content="{{ .Title }}" />
+ <meta name="twitter:description" content="{{ .Summary }}" />
<!-- permalink -->
<link rel="canonical" href="{{ .Permalink }}">
@@ -48,6 +51,6 @@
{{ end }}
{{ range .Site.Params.custom_css }}
- <link rel="stylesheet" href="{{ . | absURL }}" />
+ <link rel="stylesheet" href="{{ . | absURL }}" />
{{ end }}
</head>