Add opengraph+twitter tags (#48)
This commit is contained in:
@@ -3,6 +3,7 @@ title: "Lorem Ipsum"
|
|||||||
date: 2021-04-15T23:39:49+05:30
|
date: 2021-04-15T23:39:49+05:30
|
||||||
tags: ["xyz", "def"]
|
tags: ["xyz", "def"]
|
||||||
type: "post"
|
type: "post"
|
||||||
|
image: "/images/lorem-ipsum/quick-fox.png"
|
||||||
---
|
---
|
||||||
|
|
||||||
# Heading 1
|
# Heading 1
|
||||||
|
|||||||
BIN
exampleSite/static/images/lorem-ipsum/quick-fox.png
Normal file
BIN
exampleSite/static/images/lorem-ipsum/quick-fox.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
@@ -8,9 +8,26 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
{{ $title := .Title | default .Site.Title }}
|
||||||
|
{{ $description := .Description | default .Site.Params.Description }}
|
||||||
|
{{ $image := .Params.image | default .Site.Params.AvatarURL }}
|
||||||
|
|
||||||
<!-- SEO titles & descriptions -->
|
<!-- SEO titles & descriptions -->
|
||||||
<title>{{ .Title | default .Site.Title }}</title>
|
<title>{{ $title }}</title>
|
||||||
<meta name="description" content="{{ .Description | default .Site.Params.Description }}">
|
<meta name="description" content="{{ $description }}">
|
||||||
|
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="{{ $title }}">
|
||||||
|
<meta property="og:description" content="{{ $description }}">
|
||||||
|
<meta property="og:image" content="{{ $image }}">
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:title" content="{{ $title }}">
|
||||||
|
<meta name="twitter:description" content="{{ $description }}">
|
||||||
|
<meta property="twitter:domain" content="{{ .Permalink }}">
|
||||||
|
<meta property="twitter:url" content="{{ .Permalink }}">
|
||||||
|
<meta name="twitter:image" content="{{ $image }}">
|
||||||
|
|
||||||
<!-- SEO canonicals: helps Google understand your site better when using marketing campaign tagging etc -->
|
<!-- SEO canonicals: helps Google understand your site better when using marketing campaign tagging etc -->
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user