Browse Source

Add SEO tags override to disable Twitter tags

master
BBaoVanC 5 months ago
parent
commit
d67fa65d91
Signed by: bbaovanc GPG Key ID: 18089E4E3CCF1D3A
  1. 13
      layouts/partials/seo_tags.html

13
layouts/partials/seo_tags.html

@ -0,0 +1,13 @@
<!-- Primary Meta Tags -->
<meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" />
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" />
<!-- Open Graph / Facebook -->
{{ template "_internal/opengraph.html" . }}
<!-- Twitter -->
<!--{{ template "_internal/twitter_cards.html" . }}-->
<!-- Microdata -->
{{ template "_internal/schema.html" . }}