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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/tag/tag.html')
-rw-r--r--layouts/tag/tag.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/layouts/tag/tag.html b/layouts/tag/tag.html
new file mode 100644
index 0000000..dce2ed4
--- /dev/null
+++ b/layouts/tag/tag.html
@@ -0,0 +1,54 @@
+
+<!-- tags page -->
+
+{{ partial "header.html" . }}
+
+<div id="main">
+ <div id="content">
+ <div>
+ <article role="article">
+ <header>
+ <h1 class="entry-title">
+ {{ .Data.Singular | title }}: {{ .Title }}
+ </h1>
+ </header>
+ <div id="blog-archives" class="category">
+ {{ range .Data.Pages }}
+ <h2>
+ {{ .Date | dateFormat "2006"}}
+ </h2>
+ <article>
+ <h1>
+ <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
+ </h1>
+ <time>
+ <span class="month">{{ .Date | dateFormat "Jan" }}</span>
+ <span class="day">{{ .Date | dateFormat "2" }}</span>
+ </time>
+ <footer>
+ <span class="categories"> <!-- show categories and tags -->
+ {{ $.Scratch.Set "cats" .Params.categories }}
+ {{ with .Params.categories }}
+ posted in:
+ {{ range ($.Scratch.Get "cats") }} <a class="category" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
+ </br>
+ {{ end }}
+
+ {{ $.Scratch.Set "tags" .Params.tags }}
+ {{ with .Params.tags }}
+ tags:
+ {{ range ($.Scratch.Get "tags") }} <a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
+ {{ end }}
+ </span>
+ </footer>
+ </article>
+ {{ end }}
+ </div>
+ </article>
+ </div>
+
+ {{ partial "sidebar.html" . }}
+ </div>
+</div>
+
+{{ partial "footer.html" . }}