addtheme
This commit is contained in:
32
user/themes/lecampus/templates/blog.html.twig
Normal file
32
user/themes/lecampus/templates/blog.html.twig
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
{% set collection = page.collection() %}
|
||||
{% set image = page.media.images|first %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css/bricklayer.css') %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
<section id="body-wrapper" class="section blog-listing">
|
||||
{% if image %}
|
||||
{{image.html}}
|
||||
{% endif %}
|
||||
|
||||
<h2>{{page.title}}</h2>
|
||||
{{content}}
|
||||
|
||||
{% if show_sidebar %}
|
||||
{% block sidebar %}
|
||||
{% include 'partials/sidebar.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
{% for item in page.collection %}
|
||||
<h3>{{item.title}}</h3>
|
||||
{{item.content}}
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user