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

github.com/athul/archie.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAthul Cyriac Ajay <athul8720@gmail.com>2020-07-22 12:59:03 +0300
committerGitHub <noreply@github.com>2020-07-22 12:59:03 +0300
commit117d3373f55e99b31a4a2f35b1cf951928e0bfad (patch)
treedca99c7cf452559bfe52cd325b0200e520a71bcd
parent4d4a11ed15fb863b81e6f1345d1eea24414c6f23 (diff)
parent2c28ffc741da78cd4b4f2136ae33b4f3502e078e (diff)
Merge pull request #11 from samhattangady/master
Fix tags issue. Use the list.html code for term.html template
-rw-r--r--layouts/_default/term.html30
1 files changed, 16 insertions, 14 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index 9648bf3..41a4c6f 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,15 +1,17 @@
-<!DOCTYPE html>
-<html>
-{{ partial "header.html" . }}
+{{ define "main" }}
+{{ if isset .Data "Term" }}
+<h1>Entries tagged - "{{ .Data.Term }}"</h1>
+{{ else }}
+<h1 class="page-title">All articles</h1>
+{{ end }}
-<body>
- <div class="container wrapper tags">
- {{ partial "head.html" . }}
-
- <h1 class="page-title">All tags</h1>
- </div>
-
- {{ partial "footer.html" . }}
-</body>
-
-</html> \ No newline at end of file
+<ul class="posts">
+ {{- range .Data.Pages -}}
+ {{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
+ <li class="post">
+ <a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
+ </li>
+ {{- end -}}
+ {{- end -}}
+</ul>
+{{ end }}