Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2019-12-06 01:59:40 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2019-12-06 01:59:40 +0300
commitc2c2cc64c8b2409cc5c2830181eed5b5f030ba01 (patch)
tree2c5eb7baf8f16dd4cc56244c452aa550974eddd9
parent457907609aa51943bb53573c6d0d7123d2cc4c69 (diff)
List by tag
-rw-r--r--layouts/_default/list.html21
-rw-r--r--layouts/index.html14
2 files changed, 14 insertions, 21 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e383366..ccd8e4f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,16 +1,11 @@
-{{ define "main" }}
-{{- with .Content }}
-<div class="content main__content clearfix">
- {{ . }}
-</div>
-{{- end }}
-{{- range .Paginator.Pages }}
- {{- .Render "summary" }}
-{{- end }}
+{{- define "main" -}}
<div class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
</div>
-<div class="post-content">
- {{ .Content }}
-</div>
-{{ end }}
+<ul>
+ {{- range .Paginator.Pages }}
+ <li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{- end }}
+</ul>
+{{ template "_internal/pagination.html" . }}
+{{- end -}}
diff --git a/layouts/index.html b/layouts/index.html
index 0470a07..36c02ab 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,8 @@
{{- define "main" -}}
-<main class="page-content">
- <ul>
- {{- range (.Paginate ( where .Site.RegularPages "Type" "==" "post" )).Pages }}
- <li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
- {{- end }}
- </ul>
- {{ template "_internal/pagination.html" . }}
-</main>
+<ul>
+ {{- range (.Paginate ( where .Site.RegularPages "Type" "==" "post" )).Pages }}
+ <li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{- end }}
+</ul>
+{{ template "_internal/pagination.html" . }}
{{- end -}}