summaryrefslogtreecommitdiffstats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorRess2020-04-17 23:48:34 +0900
committerRess2020-04-17 23:48:34 +0900
commit71e742bbc5ccd3ffb455d514ab788718005d7a6b (patch)
tree0de9b28bbdaedadd38dfb60ef64da391762680b8 /layouts/_default/list.html
parent3834f74b43554cd10de93a15d84953e17b9c995e (diff)
downloadhugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.tar.gz
hugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.tar.bz2
hugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.zip
Put same code in "baseof.html".
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html60
1 files changed, 22 insertions, 38 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ef083bc..e459763 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,41 +1,25 @@
{{ define "main" }}
-<main>
- <div class="container-lg clearfix">
- <!-- list -->
- <div class="col-md-9 col-12 float-left" id="content">
- <!-- homepage range in posts -->
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
- {{ 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 class="markdown-body" id="post-summary">
- {{ .Summary }}
- </div>
- <div id="post-exlink">
- <a href="{{ .Permalink }}#">&gt; 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 id="container-progress">
- <a href="javascript:void(0)">
- <div id="progress"></div>
- </a>
- </div>
+<!-- homepage range in posts -->
+{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+{{ 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>
-</main>
+ <div class="markdown-body" id="post-summary">
+ {{ .Summary }}
+ </div>
+ <div id="post-exlink">
+ <a href="{{ .Permalink }}#">&gt; READ MORE ...</a>
+ </div>
+</div>
+{{ end }}
+{{ if gt $paginator.TotalPages 1 }}
+<div id="pagination">
+ {{ template "_internal/pagination.html" . }}
+</div>
+{{ end }}
{{ end }} \ No newline at end of file