mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 14:16:28 +00:00
config: Allow twitter social icon to be commented out
Breaking change: `twitter` option added to `config.toml` for social sharing metadata
This commit is contained in:
1 parent
304211dba0
commit
99e0edf9bb
2 files changed
+4
-3
No files matched your search
@@ -70,6 +70,7 @@ enableGitInfo = false
|
||||
address = "Building 1 Room 1, Stanford University, California, 90210, USA"
|
||||
office_hours = "Monday 10:00 to 13:00 or email for appointment"
|
||||
phone = "888 888 88 88"
|
||||
twitter = ""
|
||||
skype = "echo123"
|
||||
telegram = ""
|
||||
|
||||
|
||||
@@ -118,9 +118,9 @@
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
{{ range where $.Site.Params.social ".icon" "twitter" }}
|
||||
<meta property="twitter:site" content="@{{ replaceRE "^//twitter.com/([^/]+)" "$1" .link }}">
|
||||
<meta property="twitter:creator" content="@{{ replaceRE "^//twitter.com/([^/]+)" "$1" .link }}">
|
||||
{{ with .Site.Params.twitter }}
|
||||
<meta property="twitter:site" content="@{{ . }}">
|
||||
<meta property="twitter:creator" content="@{{ . }}">
|
||||
{{ end }}
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
|
||||
Reference in new issue
Block a user