Last active
March 19, 2024 19:36
-
-
Save markocupic/c60a35eec9e0bfd00601a0b72488ee91 to your computer and use it in GitHub Desktop.
News Template for Contao 5x with AOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="news_card{{ class|default('') }}" data-aos="fade-down" data-aos-duration="600" data-aos-once="true" data-aos-anchor-placement="top-bottom" itemscope itemtype="http://schema.org/Article"> | |
<div class="card"> | |
{% if addImage|default %} | |
<a href="{{ insert_tag('news_url::'~id) }}" title="weiterlesen"> | |
{% set picture = picture|merge({"alt": headline}) %} | |
<div class="image-zoom-in"> | |
{% include '@Contao/picture_default' with picture %} | |
</div> | |
</a> | |
{% endif %} | |
<div class="card-body"> | |
<p class="card-date m-0 text-muted"> | |
<time datetime="{{ datetime }}" itemprop="datePublished"><small>{{ date }}</small></time> | |
</p> | |
<a href="{{ insert_tag('news_url::'~id) }}" class="text-decoration-none" title="weiterlesen"> | |
<h6 class="card-title mt-0">{{ newsHeadline }}</h6> | |
</a> | |
<p class="card-news-teaser small">{{ teaser|striptags|raw|slice(0, 100) }}</p> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment