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

github.com/thomasheller/crab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..a9d34c9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,22 @@
+{{ partial "header.html" . }}
+
+{{ if hasPrefix .URL "/blog/" }}
+
+ {{ range sort .Paginator.Pages }}
+ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <p class="timestamp">{{ .Date.Format "January 2, 2006" }}</p>
+ <div class="content">
+ {{ .Summary | plainify | safeHTML }}
+ {{ if .Truncated }}
+ ... <a href="{{ .Permalink }}">Read more &hellip;</a>
+ {{ end }}
+ </div>
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+
+{{ end }}
+
+{{ partial "footer.html" . }}