abdullahtarawneh.com/layouts/shortcodes/work/work-items.html

11 lines
421 B
HTML
Raw Normal View History

2024-06-02 05:04:04 +00:00
{{ range where .Site.RegularPages "Section" "work" }}
<section class="work-item {{ .Permalink | relURL | anchorize }}">
<a class="work-item__link" href="{{ .Permalink }}">
<h3 class="work-item__title">{{ .Title }}</h3>
{{ with .Resources.GetMatch "cover" }}
<img class="work-item__image" src="{{ .Permalink }}" alt="">
{{ end }}
</a>
<p class="work-item__summary">{{.Summary}}</p>
</section>
{{ end }}