diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-18 17:58:51 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-18 18:39:11 +0300 |
commit | 0f2d3808ee3b548f1861c602489432015465f71f (patch) | |
tree | 736f04dd78d6aa067917fa7c6ef5f8b9b4b34c67 /layouts/partials/head/openGraph.html | |
parent | 2ed572bea85f12c65ca59d03689f99443a0efd75 (diff) |
Use headless bundle for home page
Diffstat (limited to 'layouts/partials/head/openGraph.html')
-rw-r--r-- | layouts/partials/head/openGraph.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html index 8022127..6765eec 100644 --- a/layouts/partials/head/openGraph.html +++ b/layouts/partials/head/openGraph.html @@ -6,8 +6,12 @@ {{ with .Resources.ByType "image" }} {{ range first 5 (sort . "Params.weight") }} -<meta property="og:image" content="{{ .Permalink }}"/> +<meta property="og:image" content="{{ .RelPermalink }}"/> {{ end }} {{ else }} -<meta property="og:image" content="{{ .Site.Params.avatar | absURL }}"/> +{{ with .Site.GetPage "page" "home" }} +{{ range first 5 (.Resources.ByType "image") }} +<meta property="og:image" content="{{ .RelPermalink }}"/> +{{ end }} +{{ end }} {{ end }} |