creates article list partial
This commit is contained in:
16
layouts/partials/article-list.html
Normal file
16
layouts/partials/article-list.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ $pages := .Pages }}
|
||||
{{ range $pages }}
|
||||
<li class="flex gap-4 items-center">
|
||||
<a class="flex-grow" href="{{ .RelPermalink }}">{{ partial "article-wompum.html" . }}</a>
|
||||
<time class="text-gray-800 font-iosevka" datetime="{{ .Date.Format "2006-01-02" }}">
|
||||
<p>{{ .Date.Format "Jan" }}</p>
|
||||
<p>{{ .Date.Format "02" }}</p>
|
||||
<p>{{ .Date.Format "2006" }}</p>
|
||||
</time>
|
||||
<div class="flex-shrink-0 max-w-max">
|
||||
<a class="text-2xl font-bold hover:text-green-900 underline" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<p class="max-w-prose">{{ .Params.summary }}</p>
|
||||
{{ partial "tags.html" .}}
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
@ -2,7 +2,7 @@
|
||||
<div class="flex flex-wrap gap-2 my-2 text-xs">
|
||||
{{- range .Params.tags }}
|
||||
<a href="{{ "tags/" | relURL }}{{ . | urlize }}"
|
||||
class="px-3 py-1 bg-green-100 hover:bg-green-300 rounded no-underline">
|
||||
class="px-3 py-1 border border-green-100 hover:bg-green-300 text-green-900 rounded no-underline">
|
||||
{{ . }}
|
||||
</a>
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user