Hi!
Using notepad I tried to use my own twig to display content as well as articles (posts) on the same page. I think Im on the right way but my formatting is a little crappy and I cant figure out why.
I created a site.yaml.twig with the following code:
{% extends 'partials/base.html.twig' %}
{% set collection = page.collection() %}
{% block body %}
<body class="post-template page" itemscope itemtype="http://schema.org/WebPage">
{% endblock %}
{% block header %},{% endblock %}
{% block content %}
<main id="summer-page-container" class="summer-page-container" role="main">
<header class="summer-page-header">
<div class="summer-page-menu-header">
<a class="summer-blog-logo" href="{{ basebase_url_absolute_url }}">
<img src="{{ base_url }},{{ site.logo }}" alt="Blog Logo" /></a>
</a>
{% include 'partials/navigation.html.twig' %}
</div>
<div class="summer-page-title row">
<div class="small-12 columns">
<h1>{{ page.title }}</h1>
</div>
</div>
</header>
<article class="summer-page-content">
<div>{{ content }}</div>
</article>
<div class ="summer-content" role="main">
{% for post in collection %}
{% include 'partials/article.html.twig' %}
{% endfor %}
{% if config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {'pagination':collection.params.pagination} %}
{% endif %}
</main>
{% endblock %}
{% block footer %},{% endblock %}
What I`m doing wrong?
Best regards; siren