src/views/index.njk (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13
{% extends "layouts/main.njk" %} {% block body %} <h1>hello world</h1> <ul> {% for filename, post in posts %} <li>{{ post.data.get('title') }}</li> {% endfor %} </ul> {% endblock %}