gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
357 stars 139 forks source link

og:image doesn't work properly #159

Closed mansoorbarri closed 1 year ago

mansoorbarri commented 1 year ago

So basically i have image set for every post but it doesn't show it either when sharing the link or when testing via a tool like https://socialsharepreview.com/

For example - Post: https://mansoorbarri.com/articles/admin-vs-standard/ Front matter:

---
title: "Admin User vs Standard User"
date: 2023-03-01
tags: [Info]
image: "/images/articles/admin-vs-standard/main.webp"
type: "post"
showtableOfContents: true
---

test: image

ik that the image and the url is correct as it is embedded on the post

yashmehrotra commented 1 year ago

Thanks for reporting. This is fixed by #160 , the problem was that we were not using absolute urls

Pull the latest main branch for the changes, the demo gokarna site is also working on https://socialsharepreview.com