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

Missing urls in site.pages #130

@Sirtea

Description

@Sirtea

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions