diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 11:55:39 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 11:55:39 +0200 |
| commit | a135e9bc110cb3337101e7e9d6d29c391430b0fc (patch) | |
| tree | 9c9361d9c564fc6f93a5f3657dea205242bca645 /layouts/partials/templates | |
| parent | 4c70f6a3a6d780c2933585dbfb8fb72a4bc75c12 (diff) | |
| download | gohugo-theme-ed-a135e9bc110cb3337101e7e9d6d29c391430b0fc.tar.gz | |
Add Facebook Page Admin ID support for Domain Insights
Diffstat (limited to 'layouts/partials/templates')
| -rw-r--r-- | layouts/partials/templates/opengraph.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 71e040e..55bcbe3 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -5,9 +5,9 @@ <meta property="og:url" content="{{ .Permalink }}"> {{- if .Params.cover.image -}} {{- if (ne .Params.cover.relative true) }} - <meta property="og:image" content="{{ .Params.cover.image | absURL }}" /> + <meta property="og:image" content="{{ .Params.cover.image | absURL }}"> {{- else }} - <meta property="og:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" /> + <meta property="og:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}"> {{- end }} {{- if .Params.cover.width -}} @@ -23,6 +23,10 @@ <meta property="og:image:height" content="200"> {{- end }} -{{- /* TODO: add fb:admins and fb:app_id */ -}} -<!-- meta property="fb:admins" content="" --> -<!-- meta property="fb:app_id" content="" --> +{{- /* Facebook Page Admin ID for Domain Insights */}} +{{- with site.Social.facebook_admin }} + <meta property="fb:admins" content="{{ . }}"> +{{- end }} +{{- with site.Social.facebook_id }} + <meta property="fb:app_id" content="{{ . }}"> +{{- end }} |
