Skip to content

Commit ac9cb09

Browse files
committed
Twitter card
1 parent ac5a03d commit ac9cb09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ languageCode = "fr-fr"
44
title = "onestla.tech"
55
theme = "beautifulhugo"
66

7-
[Params]
8-
share_img = "header.jpg"
7+
[[Params]]
8+
image = "header.jpg"

Diff for: themes/beautifulhugo/layouts/partials/seo/twitter.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{{- with .Description | default .Params.subtitle | default .Summary }}
55
<meta name="twitter:description" content="{{ . | truncate 200 }}">
66
{{- end }}
7+
<meta name="twitter:image" content="https://onestla.tech/header.jpg" />
78
{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }}
89
<meta name="twitter:image" content="{{ . | absURL }}" />
910
{{- end }}

0 commit comments

Comments
 (0)