abdullahtarawneh.com/layouts/shortcodes/work/work-items.html
2024-06-02 00:04:04 -05:00

11 lines
No EOL
421 B
HTML

{{ 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 }}