diff options
| author | Ariel Costas <94913521+arielcostas@users.noreply.github.com> | 2023-11-25 22:44:05 +0100 |
|---|---|---|
| committer | Ariel Costas <94913521+arielcostas@users.noreply.github.com> | 2023-11-25 22:44:05 +0100 |
| commit | 8b0edfffade23dad7ead437ee5d845860cdb1ee7 (patch) | |
| tree | 0c13b75a1130ebcf3ee6440d4e679b4f4a9a7792 /layouts/home/list.html | |
| parent | a82f0919d535ba5d86abfbe653bad8ba0fdcf51f (diff) | |
Implement blog page, add a few links
Diffstat (limited to 'layouts/home/list.html')
| -rw-r--r-- | layouts/home/list.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/home/list.html b/layouts/home/list.html new file mode 100644 index 0000000..95f13a6 --- /dev/null +++ b/layouts/home/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{- .Content }} + +{{ with .Site.GetPage "section" "blog" }} +<h2 id="{{ .RelPermalink }}"> + <a class="anchor" href="{{ .RelPermalink | safeURL }}">#</a> + Ăšltimas entradas +</h2> + +<ul> + {{ range .Pages }} + + <li>{{ .PublishDate.Format "02/01" }} <a href="{{ .Permalink }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }} +{{ end}}
\ No newline at end of file |
