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

github.com/AlexFinn/simple-a.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/indexes.html')
-rw-r--r--layouts/_default/indexes.html22
1 files changed, 14 insertions, 8 deletions
diff --git a/layouts/_default/indexes.html b/layouts/_default/indexes.html
index de38d4d..c760b84 100644
--- a/layouts/_default/indexes.html
+++ b/layouts/_default/indexes.html
@@ -1,8 +1,14 @@
-<section id="main">
- <div>
- <h1 id="title">{{ .Title }}</h1>
- <ul>
-
- </ul>
- </div>
-</section> \ No newline at end of file
+{{ $baseurl := .Site.BaseURL }}
+{{ template "partials/header.html" . }}
+
+ <section id="main">
+ <div>
+ <h1 id="title">{{ .Title }}</h1>
+ <ul>
+ {{ $data := .Data }}
+ {{ range $key,$value := .Data.Index.ByCount }}
+ <li><a href="{{ $baseurl }}/tags/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} </li>
+ {{ end }}
+ </ul>
+ </div>
+ </section>