diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-28 13:08:24 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-28 13:08:24 +0700 |
commit | fd7c479383add732f2e855d6eaf3712f6742cac1 (patch) | |
tree | 2f2b45a9aa53b62ad7b4c27fe8166d6f88fd570b /layouts/_default | |
parent | a35d3477f5f20efbbe1e9859bebefb32169d9021 (diff) | |
download | blog-fd7c479383add732f2e855d6eaf3712f6742cac1.tar.gz |
Edit layout for multiple sections
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c9f9806 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,18 @@ +{{ define "main" }} + <div class="index-content"> + {{ .Content }} + </div> + + <div class="articles h-feed"> + <h1 class="post-title">{{ i18n .Title }}</h1> + {{ range .Page.CurrentSection.Pages }} + <div class="post-short-list h-entry"> + <header class="post-header"> + <h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2> + </header> + {{ partial "postInfo.html" . }} + </div> + {{ end }} + </div> + +{{ end }} |