diff options
| author | Eltrac <hi@guhub.cn> | 2026-01-26 22:05:13 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2026-01-26 22:05:13 +0800 |
| commit | 417fe8594465ed4409762ef82806ec8a494eff00 (patch) | |
| tree | 26e767690e8b2635d8f76fe30db83e04c3c94010 /layouts | |
initial commit
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/home.html | 18 | ||||
| -rw-r--r-- | layouts/notes/list.html | 10 | ||||
| -rw-r--r-- | layouts/notes/single.html | 5 |
3 files changed, 33 insertions, 0 deletions
diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..91eb159 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,18 @@ +{{ define "main" }} + {{ .Content }} + + <h2>Notes</h2> + <section> + <h3><a href="/notes/silver-skins/">银皮(Silver Skin)</a></h3> + <p><small>2026-01-26</small></p> + <p>test</p> + </section> + + <section> + <h3><a href="/notes/test-note/">测试笔记</a></h3> + <p><small>2026-01-26</small></p> + <p>这是一个测试笔记。</p> + </section> + + <p><a href="/notes/">查看所有笔记 →</a></p> +{{ end }}
\ No newline at end of file diff --git a/layouts/notes/list.html b/layouts/notes/list.html new file mode 100644 index 0000000..584a2aa --- /dev/null +++ b/layouts/notes/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + {{ .Content }} + {{ range .Pages }} + <section> + <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> + {{ .Summary }} + </section> + {{ end }} +{{ end }}
\ No newline at end of file diff --git a/layouts/notes/single.html b/layouts/notes/single.html new file mode 100644 index 0000000..968c063 --- /dev/null +++ b/layouts/notes/single.html @@ -0,0 +1,5 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + {{ .Content }} + <p><small>{{ .Date.Format "2006-01-02" }}</small></p> +{{ end }}
\ No newline at end of file |
