Aditya Telange
Aditya Telange
fixed by #1510
Relative paths are not recommended to be used with OpenGraph images, they won't work. Give this a read https://ogp.me/#data_types
Oh my bad I didn't pay enough attention it seems. Those issues are very old and I don't remember much. If you have some free time, can you please share...
Understood, but are there any benefits of not setting a baseURL?
I am trying to figure this out but I am not getting it. With cover images we use ```yml # content/blog/mypost/index.md --- cover: { image: media/cover/secure-http-headers.jpeg, relative: true } ---...
Rest of the code is from Hugo templates unmodified. https://github.com/gohugoio/hugo/blob/cb98e9061b3d62b6f1e635a6cf9a8be57dc3f56c/tpl/tplimpl/embedded/templates/opengraph.html
There was some development on this https://github.com/gohugoio/hugo/pull/11688#issuecomment-1835416580 and I think https://github.com/gohugoio/hugo/commit/14d85ec136413dcfc96ad8e4d31633f8f9cbf410 fixes the issue?
If that fix works, we can clone https://github.com/gohugoio/hugo/commit/14d85ec136413dcfc96ad8e4d31633f8f9cbf410#diff-6be91eea11ef02863538c2b6698248757ad498326c234fe7c085c134c9a4245a to `layouts/partials/templates/_funcs/get-page-images.html` in PaperMod and pick remaining changes for `opengraph` and `twitter_cards` - https://github.com/gohugoio/hugo/commit/14d85ec136413dcfc96ad8e4d31633f8f9cbf410#diff-fa08dcd44528f7a509376d58270909ca26c568e1b51e4d6f0b7a77f8cc32e5cd - https://github.com/gohugoio/hugo/commit/14d85ec136413dcfc96ad8e4d31633f8f9cbf410#diff-5b97abb8773a42aee840ae8559e2961cef2412c3065e2d85778eb06868d74297 And keep the templates from hugo...
> Great catch, I must have missed this (or it wasnt yet done when I looked into it originally). I think this might solve the issue. Ill check and if...
Why not just add this to custom css https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets ```css .entry-content { -webkit-line-clamp: ; } ```