Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render a single page template #8

Open
maisnamraju opened this issue Sep 24, 2015 · 0 comments
Open

How to render a single page template #8

maisnamraju opened this issue Sep 24, 2015 · 0 comments

Comments

@maisnamraju
Copy link

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 %}

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

No branches or pull requests

1 participant