diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-20 14:06:38 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-04-21 12:24:41 +0200 |
| commit | d29af7ee395555e628ee0f3def31c748394cc93b (patch) | |
| tree | 001c5420dfcc1262d2a5be3980d12e9eb9994933 /layouts/til | |
| parent | 061585b540bae3c29a6c5b96c4616401cc7d5ed9 (diff) | |
| download | www.ericmarin.dev-d29af7ee395555e628ee0f3def31c748394cc93b.tar.gz www.ericmarin.dev-d29af7ee395555e628ee0f3def31c748394cc93b.zip | |
hugo!
Diffstat (limited to 'layouts/til')
| -rw-r--r-- | layouts/til/page.html | 9 | ||||
| -rw-r--r-- | layouts/til/section.html | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/layouts/til/page.html b/layouts/til/page.html new file mode 100644 index 0000000..baf1fbd --- /dev/null +++ b/layouts/til/page.html @@ -0,0 +1,9 @@ +{{ define "main" }} + <article> + <h1>{{ .Title }}</h1> + <aside>Published on: {{ .Date.Format "02 Jan 2006" }}</aside> + <section> + {{ .Content }} + </section> + </article> +{{ end }} diff --git a/layouts/til/section.html b/layouts/til/section.html new file mode 100644 index 0000000..bd8c690 --- /dev/null +++ b/layouts/til/section.html @@ -0,0 +1,13 @@ +{{ define "main" }} + <section> + <h1>{{ .Title }}</h1> + {{ .Content }} + <ul> + {{ range .Pages }} + <li> + <span>{{ .Date.Format "2006-01-02" }}</span> - <a href="{{ .Permalink }}">{{ .Title }}</a> + </li> + {{ end }} + </ul> + </section> +{{ end }} |
