diff options
| author | Henrique Marques <[email protected]> | 2024-08-17 08:28:46 +0100 |
|---|---|---|
| committer | Henrique Marques <[email protected]> | 2024-08-17 08:28:46 +0100 |
| commit | 8113f43b368e83fe51800b8ffc78681821d011f4 (patch) | |
| tree | df3464f78e09a427952e65525bb5490aeb642cc1 /themes/lugo/layouts/_default/list.html | |
| parent | a57cff1c177f91d243ce6313015ab4867fa88027 (diff) | |
add new files
Diffstat (limited to 'themes/lugo/layouts/_default/list.html')
| -rw-r--r-- | themes/lugo/layouts/_default/list.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/lugo/layouts/_default/list.html b/themes/lugo/layouts/_default/list.html new file mode 100644 index 0000000..601fc08 --- /dev/null +++ b/themes/lugo/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ define "title" -}} +{{ .Title | title }} +{{- end }} +{{ define "main" -}} +{{ .Content }} +<ul> +{{- range.Pages }} +<li> + {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – {{ end -}} + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + {{- if .Param "authorsinlist" }} + {{ with .Params.authors }} + by + {{ delimit . ", " " and " }} + {{end}} + {{ end -}} +</li> +{{- end }} +</ul> +{{- end }} |
