commit
04cb3f3d66
|
@ -37,6 +37,10 @@ copyright = "© {year}"
|
|||
# "Twitter", "GitHub", "Email", "Facebook", "GitLab", "Instagram", "LinkedIn", "YouTube"
|
||||
iconTitles = ["Twitter", "GitHub"]
|
||||
|
||||
# Metadata for Twitter cards, defaults to params.twitter
|
||||
# twitterSite = "@<your handle>"
|
||||
# twitterAuthor = "@<your handle>"
|
||||
|
||||
# This disables Hugo's default syntax highlighting in favor
|
||||
# of prismjs. If you wish to use Hugo's default syntax highlighting
|
||||
# over prismjs, remove this. You will also need to remove the prismjs
|
||||
|
|
|
@ -16,10 +16,9 @@
|
|||
{{ if isset .Site.Params "twitter" }}
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ .Title }}" />
|
||||
<meta name="twitter:description" content="{{ if .IsHome }}{{ htmlEscape .Site.Params.description }}{{ else }}{{ htmlEscape .Description }}{{ end }}"
|
||||
/>
|
||||
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}" />
|
||||
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}" />
|
||||
<meta name="twitter:description" content="{{ if .IsHome }}{{ htmlEscape .Site.Params.description }}{{ else }}{{ htmlEscape .Description }}{{ end }}"/>
|
||||
<meta name="twitter:site" content="{{ .Site.Params.twitterSite | default .Site.Params.twitter }}" />
|
||||
<meta name="twitter:creator" content="{{ .Site.Params.twitterCreator | default .Site.Params.twitter }}" />
|
||||
{{ end }}
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
||||
|
|
Loading…
Reference in New Issue