Monday, 25 June 2018

Permalink in const_url

In my config file I basically have permalink: :inLink/:title/ which makes the following possible:

https://example.com/hello/post-1 (= all good!)

So, inLink = hello in my markdown file.

Now I have this line also … const post_url = config.get('page_url').replace('%SLUG%', event.slug)+'#comment-'+event.id;

And this renders: https://example.com/post-1(= bad!)

So the inLink permalink variable hello is missing from this.

Question is now how/where to add the inLink variable here in this line… const post_url = config.get('page_url').replace('%SLUG%', event.slug)+'#comment-'+event.id; ???



from Permalink in const_url

No comments:

Post a Comment