PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

parse issue with url #287

Closed JazzMaster closed 8 years ago

JazzMaster commented 8 years ago

im getting a double directory on url parse. I have multiple blogs so a simple file parse is not enough.I need to sort by directory.THEN, I can url parse the list.

twig: ... {% for page in pages %} {% if page.url starts with "blog3/" %}

{{ page.title }}

... what im getting pops a 404. namely: https://southernhedgehogs.org/blog3/blog3/georgia as you can see, there is only ONE blog3 folder.This should pop an article on FINE coffee. I dont know how to tweak this to work better, AS ITS NOT DOCUMENTED. also: Date sort isnt working. Im getting a-z sorting instead. [to get this to work at all, I had to hack the config file, the internal sort is broken by default.] config: //$config['pages_order_by'] = 'date'; - this is a blog so date ordering //$config['pages_order'] = 'desc'; -or asc $config['pages_order'] = 'meta.Date:asc';
JazzMaster commented 8 years ago

that didnt work:

{{ page.title }}
JazzMaster commented 8 years ago

!!!!!

<a --ef="{{ page.url }}">{{ page.title }}

JazzMaster commented 8 years ago

html: [link to: page.url] [display: page.title]

JazzMaster commented 8 years ago

closing: this is a glitch somewhere.

page.url as shown was telling me there was /double/double when just /double was there. fix: " base_url / page.url" inside the HTML (blog) link. Use the double whacky brackets. When I type it, github changes my text.