diff options
author | amzrk2 | 2020-04-13 19:13:39 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-13 19:13:39 +0800 |
commit | 6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad (patch) | |
tree | b13e4c3a49823b602ebb918c899dd4a964c1f445 /layouts/index.html | |
download | hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.tar.gz hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.tar.bz2 hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.zip |
Initial commit
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..0373851 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,36 @@ +{{ define "main" }} +<main> + <div class="container-md clearfix"> + <!-- list --> + <div class="col-md-9 col-12 float-left" id="content"> + <!-- homepage range in posts --> + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} + {{ range $paginator.Pages }} + <div id="post"> + <h2 id="post-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h2> + <div id="post-meta"> + {{ partial "post-meta.html" . }} + </div> + <div id="post-summary"> + {{ .Summary }} + </div> + <div id="post-exlink"> + <a href="{{ .Permalink }}#">> READ MORE ...</a> + </div> + </div> + {{ end }} + {{ if gt $paginator.TotalPages 1 }} + <div id="pagination"> + {{ template "_internal/pagination.html" . }} + </div> + {{ end }} + </div> + <!-- sidebar --> + <div class="col-md-3 col-12 float-left" id="sidebar"> + {{ partial "sidebar.html" . }} + </div> + </div> +</main> +{{ end }}
\ No newline at end of file |