acrylamid icon indicating copy to clipboard operation
acrylamid copied to clipboard

Permalink and output don't necessarily match

Open pop opened this issue 8 years ago • 0 comments

I've started using acrylamid for my blog and so far I really like it. I have found a bug with it though which I haven't been able to fix by looking at the acrylamid source.

The bug is essentially that the output location of a file does not seem to correspond with the permalink for that file. In the branch mentioned below I have two types of entries, liveblog and blog. Unfortunately all blog posts list their permalinks as if they are liveblog posts (/liveblog/sub-dir/entry-name) when they should be permalinking to a blogpost (/blog/entry-name).

I have created a branch which demonstrates this bug on my website. Navigate to a blog post and you should get a 404 when you build and acrylamid view the website locally.

If you have any questions feel free to ask. I can clarify any confusing points.

Edit: I added a third entry view and it seems that all entry permalinks are set to one of the entry permalink patterns. I'm not sure what the rule is or how to find/fix it but no matter how many views you have in conf.py all entry permalinks are set to the same pattern. The views if field does build the entry in the correct output location but the permalink is not set accordingly.

pop avatar Mar 25 '16 18:03 pop