based.cooking/layouts/shortcodes/artlist.html

8 lines
272 B
HTML

<ul id=artlist>
{{ $number := 0 -}}
{{- range.Site.RegularPages -}}
{{- $number = add $number 1 -}}
<li data-tags="{{.Params.Tags}}" {{ if gt $number .Site.Params.indexarticles }}class="older-article"{{ end }}><a href="{{.Permalink}}">{{.Title}}</a></li>
{{ end -}}
</ul>