Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Missing urls in site.pages #130

Open
Sirtea opened this issue Mar 5, 2015 · 0 comments
Open

Missing urls in site.pages #130

Sirtea opened this issue Mar 5, 2015 · 0 comments

Comments

@Sirtea
Copy link

Sirtea commented Mar 5, 2015

Hi,

I'm trying to create a sitemap.xml.
Nothing to say: a .mkd with "type: sitemap" with no content, and a for loop in the template

<ul>
{% for p in site.pages %}
<li>{{ p }} - {{ p.url }}</li>
{% endfor %}
</ul>
{{ page.url }}

The result is weird: a list of "<wok.page.Page 'sitemap'> - " elements (note empty.url) and finally the page.url "/sitemap.xml". None of the "p" vars equal "page" var.

¿What am I doing wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant