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/" %}
...
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';
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.
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';that didnt work:
!!!!!
<a --ef="{{ page.url }}">{{ page.title }}
html: [link to: page.url] [display: page.title]
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.