mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-23 18:38:55 +00:00
Version 1.0.2
This commit is contained in:
parent
04ca27e80b
commit
92f85d765b
1 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set columns = page.header.layout == 'standard' ? 'col-4 col-6-medium col-12-small' : 'col-6 col-12-small' %}
|
||||
|
||||
{% block menu %}
|
||||
{% include 'partials/sidebar_right.html.twig' %}
|
||||
{% endblock %}
|
||||
|
@ -10,13 +12,20 @@
|
|||
<header>
|
||||
<div class="title">
|
||||
<h2>{{ page.header.title }}</h2>
|
||||
{% if page.header.subtitle %}
|
||||
<p>{{ page.header.subtitle }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{% if page.header.primaryImage %}
|
||||
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
|
||||
{% endif %}
|
||||
|
||||
{{ page.content|raw}}
|
||||
<!-- Portfolio -->
|
||||
{% block portfolio %}
|
||||
<section>
|
||||
<div class="row">
|
||||
<div class="row aln-center">
|
||||
{% for item in page.header.images %}
|
||||
<div class="{{columns}} portfolio_item">
|
||||
<a href="{{page.media[item.image].url}}" class="glightbox" data-width="100vw" data-zoomable="true" data-glightbox='title: {{item.title}}; description: {{item.description|raw}}'>
|
||||
|
|
Loading…
Add table
Reference in a new issue