Skip to content

Commit

Permalink
Add: templates: twitter-card (hugo-toha#732)
Browse files Browse the repository at this point in the history
Co-authored-by: Emruz Hossain <[email protected]>
  • Loading branch information
uh-zz and hossainemruz committed Jan 27, 2023
1 parent e5fcc95 commit b498330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}

0 comments on commit b498330

Please sign in to comment.