Closed zimmicz closed 9 years ago
Yeah I'm cleaning up the code around how URLs are passed around and processed, it's a bit of a mess right now.
Note however that {{pcurl(site.root)}}
is incorrect. You either just use site.root
, or pcurl('/')
, or even pcurl('')
. The pcurl
function processes a simple URL by making it absolute, i.e. preprending site.root
, and appending any debug stuff like ?!debug
.
Alright, good to know. Anything I can do about the broken image src url?
Nope, I have to fix it :) Most problems should be fixed with 9b1de1f21627fdb887648fa5526734c19b156420, so you can pull and try again, but I'm still writing tests and chasing side effect bugs.
My config.yml looks as follows:
In my HTML template, I use
<h1><a href="{{pcurl(site.root)}}">Michal Zimmermann</a></h1>
which should take me to the www.zimmi.cz/posts (as www.zimmi.cz is my root domain). It takes me to www.zimmi.cz/posts/posts instead.Using
<a class="pagination" href="{{pagination.next_page}}">
takes me to www.zimmi.cz/2 where it should take me to www.zimmi.cz/posts/2 instead.<img src="{{assets.lines}}" title="Self-intersecting lines" class="img-responsive centered">
is translated to
<img src="/_asset/posts/2015-03-30_postgis-count-line-self-intersections-assets/lines.png" title="Self-intersecting lines" class="img-responsive centered">
on a localhostand to
<img src="/postsposts/2015/postgis-count-line-self-intersections/lines.png" title="Self-intersecting lines" class="img-responsive centered">
on a production environment.Is this a bug or is it my faulty settings?