1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Blog</title> </head> <body> {% if posts %} <ul> {% for post in posts %} <li> <a href="{{ post.name }}">{{ post.metadata.title }}</a> ({{ post.metadata.date }}) </li> {% endfor %} </ul> {% endif %} </body> </html>