You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to have jekyll-asciidoc output true relative links ?
i.e. if I in a post at my.site/blog/apost.html have:
link:/blog/bpost.html
I currently get a a href with the value /blog/bpost.html but what I'm looking for is that it puts
link:./bpost.html when rendered as as part of /blog but when aggreated on the front page the link should be blog/bpost.html.
I have a function in jekyll that does transformation based on the location of the page the rendering is happening on thus I was wondering if there was a way to tell asciidoc to apply this function when rendering or maybe even better that the jekyll asciidoc plugin understands the location it is being rendered to/from ?
The text was updated successfully, but these errors were encountered:
to be clear - my goal here is that my output of jekyll build is 100% moveable independent on wether hosted from a file system, github pages, my top level domain, a sub path on my site or IPFS.
At the moment I have that for all content - except hrefs and image links in adoc based posts.
Using link: means you want the url as written in the output href. If you want some adoc-awareness in generated links xref: or <<>> syntax would be more appropriate. I haven't investigated what happens with those yet, nor with image links. I'd guess that if image links don't work properly, neither will xrefs.
Is there a way to have jekyll-asciidoc output true relative links ?
i.e. if I in a post at my.site/blog/apost.html have:
link:/blog/bpost.html
I currently get a a href with the value
/blog/bpost.html
but what I'm looking for is that it putslink:./bpost.html
when rendered as as part of/blog
but when aggreated on the front page the link should beblog/bpost.html
.I have a function in jekyll that does transformation based on the location of the page the rendering is happening on thus I was wondering if there was a way to tell asciidoc to apply this function when rendering or maybe even better that the jekyll asciidoc plugin understands the location it is being rendered to/from ?
The text was updated successfully, but these errors were encountered: