notablog icon indicating copy to clipboard operation
notablog copied to clipboard

Internal link issue

Open youcanmake opened this issue 3 years ago • 3 comments

When I use @ to create an internal link to another page in Notion, the generated site doesn't seem to generate a link to a page in my site (xxx.github.io/xxxx) but a link to original Notion page (notion.so/xxxx). How should I solve this problem?

I've tried to put the linked page into the notablog database, but it doesn't seem to work.

youcanmake avatar Jul 12 '21 09:07 youcanmake

This is a known issue I think, the NotionPage->HTML generation is not recursive/nested. That is, if you have pages within pages, those won't be converted. You have to do some workarounds and hard-codings to achive this at the moment.

I wanted to work on this issue, but was waiting for the official API release. Given it's now released, it's a good time to work on it now 😃 We have to check the module https://github.com/dragonman225/nast for this change.

rounakdatta avatar Jul 12 '21 09:07 rounakdatta

Thank you for such a quick response! Looking forward!

youcanmake avatar Jul 12 '21 10:07 youcanmake

@rounakdatta @dragonman225 I want this feature for my blog too. Basically I have sub-pages within a given page and I want them to be converted as well. Although I am not familiar with node js, I can try to look at this issue if I can get some pointers on how to get started with nast :)

JanakyMurthy avatar Jul 25 '21 15:07 JanakyMurthy