Skip to content

Commit cfa41aa

Browse files
custom oggraph image for BOSC (#144)
* custom oggraph image for BOSC * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3ba6732 commit cfa41aa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{- with .Title | default .Site.Title }}
2+
<meta property="og:title" content="{{ . }}" />
3+
{{- end }}
4+
{{- with .Description | default .Params.subtitle | default .Summary }}
5+
<meta property="og:description" content="{{ . }}">
6+
{{- end }}
7+
{{ if isset .Params "bosc" }}
8+
<meta property="og:image" content="{{ .Site.Params.bosc_logo | absURL }}" />
9+
{{ else }}
10+
{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }}
11+
<meta property="og:image" content="{{ . | absURL }}" />
12+
{{- end }}
13+
{{ end }}
14+
{{- with .Site.Params.fb_app_id }}
15+
<meta property="fb:app_id" content="{{ . }}" />
16+
{{- end }}
17+
<meta property="og:url" content="{{ .Permalink | absLangURL }}" />
18+
<meta property="og:type" content="website" />
19+
<meta property="og:site_name" content="{{ .Site.Title }}" />

0 commit comments

Comments
 (0)