forked from hugo-toha/toha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenGraph Headers (hugo-toha#333)
Signed-off-by: hossainemruz <[email protected]>
- Loading branch information
1 parent
d9df105
commit 4a0aa47
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{ $title := (index site.Data site.Language.Lang).site.openGraph.title | default site.Title }} | ||
{{ $type := (index site.Data site.Language.Lang).site.openGraph.type | default "website" }} | ||
{{ $description := (index site.Data site.Language.Lang).site.openGraph.description | default (index site.Data site.Language.Lang).site.description }} | ||
{{ $image := (index site.Data site.Language.Lang).site.openGraph.image | default (index site.Data site.Language.Lang).author.image }} | ||
{{ $url := (index site.Data site.Language.Lang).site.openGraph.url | default site.BaseURL }} | ||
|
||
<!-- ============ open graph tags ========== --> | ||
<meta property="og:title" content="{{ $title }}"/> | ||
<meta property="og:type" content="{{ $type }}"/> | ||
<meta property="og:description" content="{{ $description }}"/> | ||
<meta property="og:image" content="{{ $image }}"> | ||
<meta property="og:url" content="{{ $url }}"> |