How to add auto share images #548
Unanswered
h-enk
asked this question in
How-to guides
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A (very) short guide to implementing auto share images.
Implementation
Upload to Cloudinary:
soehne-web-halbfett.woff2+soehne-web-buch.woff2Add to
./layouts/partials/head/opengraph.html:{{ $pathPage := .RelPermalink | replaceRE "/$" "" -}} {{ $pathPage := replaceRE "/" "%252F" $pathPage -}} <meta property="og:image" content="https://res.cloudinary.com/ventizo/image/upload/w_1280,h_800,c_fill,q_auto,f_auto/w_760,c_fit,co_rgb:fff,g_south_west,x_105,y_200,l_text:soehne-web-halbfett.woff2_80:{{ replaceRE " " "%20" .Title }}/w_760,c_fit,co_rgb:fff,g_south_west,x_105,y_105,l_text:soehne-web-buch.woff2_40:{{ .Site.Params.domainTLD }}{{ $pathPage }}/v1621325515/ventizo-share-image"> <meta property="og:image:width" content="1280"> <meta property="og:image:height" content="800"> <meta property="og:image:alt" content="{{ .Title }}">Examples
Issues
Site.Paramsto construct URL in template partial:See also: index.ts
Resources
Beta Was this translation helpful? Give feedback.
All reactions