feature: added separate list and terms templates, for posts under the taxonomy and different taxonomy terms respectively
This commit is contained in:
28
themes/sukaato/layouts/tags/list.html
Normal file
28
themes/sukaato/layouts/tags/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
<div id="{{ lower .Title }}" class="page tag">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Summary }}
|
||||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with .Params.image }}
|
||||
{{ $path := print ".." .Params.image }}
|
||||
<img src="{{ $path }}" alt="{{ lower .Title }}_image">
|
||||
{{ end }}
|
||||
<!-- <img src="images/{{ lower .LinkTitle }}" alt=""> -->
|
||||
</div>
|
||||
{{ with .Content }}
|
||||
<div id="content" class="page">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div id="posts" class="directory">
|
||||
{{ range .Paginator.Pages }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<article class="post">
|
||||
<h2>{{ .LinkTitle }}</h2>
|
||||
<p>{{ .Summary }}</p>
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
18
themes/sukaato/layouts/tags/terms.html
Normal file
18
themes/sukaato/layouts/tags/terms.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ define "expo" }}
|
||||
<div id="{{ lower .Title }}" class="expo site">
|
||||
<h1 id="title" class="site {{ lower .Title }}">{{ .Title }}</h1>
|
||||
<p id="summary" class="site {{ lower .Title }}">{{ .Content }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div id="{{ lower .Title }}" class="directory">
|
||||
<dl>
|
||||
{{ range .Data.Pages }}
|
||||
<dt class="tag title"><a href="{{ .Permalink }}">{{ .Title }}</a></dt>
|
||||
{{ with .Summary }}
|
||||
<dd class="tag content">{{ . }}</dd>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</dl>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user