gcg-website/layouts/_default/post.html

14 lines
867 B
HTML
Raw Normal View History

2020-06-27 10:05:59 +02:00
<article class="card rounded-0 border-bottom border-primary border-top-0 border-left-0 border-right-0 hover-shadow">
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="card-body">
<ul class="list-inline mb-3">
2022-10-19 18:15:01 +02:00
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i> {{ time.Format "02 Jan 2006" .PublishDate }}</li>
2022-05-27 18:07:35 +02:00
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
2020-06-27 10:05:59 +02:00
href="{{ `author` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
</ul>
2023-01-01 17:21:53 +01:00
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
2020-06-27 10:05:59 +02:00
<p class="card-text">{{ .Summary | truncate 100 }}</p>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "read_more" }}</a>
</div>
2022-05-27 18:07:35 +02:00
</article>