diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-09-02 10:01:52 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-09-02 10:01:52 +0700 |
commit | 35e9f6324dba0757e7c967fab6d000e44b4d5074 (patch) | |
tree | 6750e147708092e0397ee2f581f2c9ccd1c00455 /layouts/index.old.html | |
parent | 46b1e6c785c9e15e721faa54d6e979c5c226c1a3 (diff) | |
download | blog-35e9f6324dba0757e7c967fab6d000e44b4d5074.tar.gz |
Update theme
Diffstat (limited to 'layouts/index.old.html')
-rw-r--r-- | layouts/index.old.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/index.old.html b/layouts/index.old.html new file mode 100644 index 0000000..8367de4 --- /dev/null +++ b/layouts/index.old.html @@ -0,0 +1,19 @@ +{{ define "main" }} + <div class="homepage-content"> + {{ .Content }} + <ul> + {{ range .Site.Sections }} + <li> <a href="{{ .Permalink }}">{{ i18n .Title }}</a> </li> + {{ end }} + </ul> + </div> + + <div class="articles h-feed"> + {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range (.Paginate $pages).Pages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} + </div> + +{{ end }} |