flake-parts / community.flake.parts

A `flake-parts` community website containing docs for various community modules
https://community.flake.parts
18 stars 1 forks source link

Auto-detect `siteUrl` #154

Open shivaraj-bh opened 2 months ago

shivaraj-bh commented 2 months ago

Manual override of the og:image requires a page.image metadata in the README, like:

---
page:
  image: <my-image.png>
---

# Foo Blog
...

But this doesn’t work if the siteUrl is not configured in index.yaml. See for example:

Before:

og-image-before

After including siteUrl in index.yaml:

og-image-after
srid commented 2 months ago

https://github.com/juspay/services-flake/commit/6533cd23526ba1a73286b5fe8108c2f5ff370253 solves it for services-flake, but not other modules.

A general solution would involve configuring siteUrl automatically ... something to consider as part of https://github.com/srid/emanote/issues/494