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
{{ message }}
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
baker:
processors:
- imageoptimizer
- cssmin
- copy
jinja:
twig_compatibility: true
site:
author: Michal Zimmermann
description: Pieces of knowledge from the world of GIS.
category_url: category/%category%
enable_gzip: true
hide_quickstart: true
post_url: '%year%/%slug%'
posts_per_page: 10
pretty_urls: true
root: /posts
tag_url: tag/%tag%
title: Michal Zimmermann
trailing_slash: true
smartypants:
enable: true
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="/_asset/posts/2015-03-30_postgis-count-line-self-intersections-assets/lines.png" title="Self-intersecting lines" class="img-responsive centered"> on a localhost
and 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?
The text was updated successfully, but these errors were encountered:
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.
Nope, I have to fix it :) Most problems should be fixed with 9b1de1f, 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?
The text was updated successfully, but these errors were encountered: