Add: templates: twitter-card (#732)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Reo Uehara 2023-01-28 03:10:58 +09:00 committed by GitHub
parent e5fcc95e8b
commit b498330793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,7 @@
<!------ ADD COMMON HEADERS -------->
{{- partial "header.html" . -}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
<!------ ADD PAGE SPECIFIC HEADERS ------->
{{ block "header" . }} {{ end }}

View file

@ -10,3 +10,5 @@
<meta property="og:description" content="{{ $description }}"/>
<meta property="og:image" content="{{ $image | relURL }}">
<meta property="og:url" content="{{ $url }}">
{{ template "_internal/twitter_cards.html" . }}