sprig
sprig copied to clipboard
How to render a single page template
I have tried a couple of way but so far the closest I've got is getting all the pages to show up with the title as the home page.
Here is what i wrote on the template, how do I set the proper titles for the pages.
{% extends 'layouts/base.twig' %}
{% block content %}
{% for page in pages() %}{{ set_up_page(page) }}
{% include 'content/content-' ~ page.post_name ~ '.twig' %}
{% endfor %}
{% endblock %}