diff options
author | Queensferry <queensferry.me@gmail.com> | 2020-07-01 12:02:23 +0300 |
---|---|---|
committer | Queensferry <queensferry.me@gmail.com> | 2020-07-01 12:02:23 +0300 |
commit | 8cb68c8d55f8cccb1ebe4cb77572a1199f6381b3 (patch) | |
tree | 78c65279937d52756f0abe0920adf1993726e643 | |
parent | af2b21ab97eeee142264b5bd1346c83558e034fa (diff) |
feat: support twitter cards
-rw-r--r-- | layouts/partials/head.html | 7 |
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> |