You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Support @-links in Notion to other pages in the same Notion Database (blog).
To do that, Notoma needs to know the URL structure of the blog engine that the user is using after the conversion to .md — it can't just link to another .md file.
Behavior
When parsing each page, if the page has @-links to other pages, try processing each link and replacing it with the link to the blog page corresponding to the linked Notion page.
If the link is to a Notion page that is not in the same database, don't process it and keep the Notion.so URL.
If the link is in the same database (same blog), try guessing the URL structure.
If the URL structure can't be detected, log an error and keep the link.
Implementation details
Unfortunately, every static gen engine has their own permalink pattern (URL structure), that can also be tweaked in the engine config.
So this behavior will only work for some engines, that Notoma will have to detect, and read their configs. Most of the configs are just YAML or JSON anyway.
Alternatively, Notoma can ask for a permalink format and have it's own permalink setting. That would be easier.
The text was updated successfully, but these errors were encountered:
Support @-links in Notion to other pages in the same Notion Database (blog).
To do that, Notoma needs to know the URL structure of the blog engine that the user is using after the conversion to
.md
— it can't just link to another.md
file.Behavior
Implementation details
Unfortunately, every static gen engine has their own permalink pattern (URL structure), that can also be tweaked in the engine config.
So this behavior will only work for some engines, that Notoma will have to detect, and read their configs. Most of the configs are just YAML or JSON anyway.
Alternatively, Notoma can ask for a permalink format and have it's own permalink setting. That would be easier.
The text was updated successfully, but these errors were encountered: