voxpelli/webpage-micropub-to-github

Permalinks don't seem to be working

ohhelloana opened this issue · 1 comments

Hi! I used this package today at indie web camp with https://www.ownyourgram.com. Out of the box it works fine but I wanted to be able to customise the permalink. So my posts would be like https://www.ohhelloana.blog/my-post-name and my instagram posts would have something like https://www.ohhelloana.blog/photos/:slug.

So I tried to replace MICROPUB_PERMALINK_STYLE while being aware about issue #19. Unfortunately it doesn't appear to work.

I had a friend helping out me and it looks like the permalink isn't being added to the content (we made a fork and added logs to check out).
screen shot 2018-11-04 at 13 54 09

Is setting permalinkStyle meant to set the url\permalink front matter property in the post? It appears this is not what the code is doing. Is there another way I can do this?

Closing this issue because I now understand where I am "wrong" - I think! I think that if I wanted such fancy urls I should use collections instead. I could be wrong again but I am pretty sure this issue I created isn't right either :)