Skip to content

Commit fa6d184

Browse files
committed
opengraph
1 parent 7eaa54f commit fa6d184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layouts/_default/baseof.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
{{ end -}}
1515
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
1616
<!-- <meta name="keywords" content=""> -->
17+
<meta property="og:title" content="{{ .Title }}" />
18+
<meta property="og:type" content="website" />
19+
<meta property="og:url" content="{{ .Permalink }}" />
20+
<meta property="og:image" content="{{if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.og_image }}{{ end }}" />
1721
<meta name="viewport" content="width=device-width, initial-scale=1">
1822
<meta name="robots" content="index, follow">
1923
</head>

0 commit comments

Comments
 (0)