grav-theme-libretic/templates/modular/portfolio.html.twig

30 lines
1.6 KiB
Twig
Raw Normal View History

2015-01-28 00:55:56 +01:00
<div class="modular-row portfolio">
2020-12-13 01:32:27 +01:00
{{ content|raw }}
2015-01-28 00:55:56 +01:00
{% if page.header.portfolio %}
2015-01-29 12:31:15 +01:00
<div class="notebooks">
<div class="notebook-row">
{% for portfolio in page.header.portfolio %}
2015-01-29 12:31:15 +01:00
<div class="notebook">
<div class="desc">
<h4>{{ portfolio.title }}</h4>
{% if portfolio.url is defined %}
<p><a href="{{ portfolio.url }}">{{ portfolio.url }}</a><br>
{% endif %}
{{ portfolio.desc|raw }}</p>
2015-01-29 12:31:15 +01:00
</div>
{% if portfolio.details_url is defined %}
<a href="{{ portfolio.details_url }}" class="portfolio-link"">
<div class='screen'><div class="screen-content" style="background-image: url({{ page.media[portfolio.image].url }})" ></div><div class="screen-content-hover"><i class="fa-solid fa-arrow-up-right-from-square"></i> Détails</div></div>
</a>
{% else %}
<div class='screen'><div class="screen-content" style="background-image: url({{ page.media[portfolio.image].url }})" ></div></div>
{% endif %}
2015-01-29 12:31:15 +01:00
<div class='keyboard'></div>
</div>
{% endfor %}
2015-01-28 09:34:29 +01:00
</div>
2015-01-28 00:55:56 +01:00
</div>
{% endif %}
</div>
2015-01-28 00:55:56 +01:00