cryogen

jumar 2022-01-17T04:32:31.001300Z

I have some trouble with AsciiDoc syntax in Cryogen and relative links. How can I render them properly? I'm trying something like:

link:/posts/my-summary-post[Summary]
Which gets rendered simply as
So it skips the hostname.

jumar 2022-01-17T08:03:19.001600Z

I have the same problem with images - have to use ..

// I need to use this
image::../img/my.png[]

// instead of preferred:
image::/img/my.png[]

Jakub Holý (HolyJak) 2022-01-17T17:36:32.001800Z

I'm quite sure it works for me in https://github.com/holyjak/blog.jakubholy.net

Jakub Holý (HolyJak) 2022-01-17T18:15:59.002Z

see https://blog.jakubholy.net/2020/best-team-ever/ and there the link labeled "troubleshooting-friendly responses" with source here: https://github.com/holyjak/blog.jakubholy.net/blob/master/content/asc/posts/2020/best-team-ever.asc#L80 The code there is:

link:/2020/troubleshooting-friendly-responses/[troubleshooting-friendly responses]
and it works just fine

jumar 2022-01-17T18:20:21.002600Z

Interesing but this simply doesn't work for me. I tried it several times and it produces invalid links. Perhaps this can be a matter of proper configuration in config.edn?

jumar 2022-01-17T18:25:55.002800Z

I found the problem! It was :blog-prefix "/" -> it should just be an empty string. Thanks @holyjak for making me check the config.

Jakub Holý (HolyJak) 2022-01-17T18:32:00.003Z

Happy to hear that

jumar 2022-01-17T05:05:59.001400Z

Hmm, weird - it doesn't seem to work with relative urls starting with / (the root) If I use .. it works:

link:../posts/my-summary-post[Summary]
For the context, I'm using this link on in one of the "pages" so it's not in the 'posts' folder.