Эх сурвалжийг харах

Switch to using internal metadata templates

Apis Necros 2 жил өмнө
parent
commit
65dcd51c46

+ 2 - 1
layouts/partials/head.html

@@ -20,7 +20,8 @@
 	<meta name="msapplication-TileColor" content="#da532c">
 	<meta name="theme-color" content="#ffffff">
 	
-	{{- partial "opengraph.html" . }}
+	{{- template "_internal/opengraph.html" . }}
+	{{- template "_internal/twitter_cards.html" . }}
 
 	<meta name="canonical" content="{{ .Permalink }}" />
 	

+ 0 - 8
layouts/partials/opengraph.html

@@ -1,8 +0,0 @@
-<meta property="og:title" content="{{ if isset .Params "title" }}{{ print .Title " - " .Site.Title }}{{ else }}{{ .Site.Title }}{{ end }}" />
-    {{- if and (eq .Type "blog") (not .IsSection) }}
-    <meta property="og:type" content="article" />
-    {{- else }}
-    <meta property="og:type" content="website" />
-    {{- end }}
-    <meta property="og:image" content="" />
-    <meta property="og:url" content="{{ .Permalink }}" />