More cleanup, add a new tag.
This commit is contained in:
18
layouts/_default/list.html
Normal file
18
layouts/_default/list.html
Normal file
@ -0,0 +1,18 @@
|
||||
{{ define "main" }}
|
||||
<main class="main list" role="main">
|
||||
{{- with .Title }}
|
||||
<header class="main__header">
|
||||
<h1 class="main__title">Tag: {{ . }}</h1>
|
||||
</header>
|
||||
{{- end }}
|
||||
{{- with .Content }}
|
||||
<div class="content main__content clearfix">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- range .Paginator.Pages }}
|
||||
{{- .Render "summary" }}
|
||||
{{- end }}
|
||||
</main>
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
16
layouts/partials/post_meta/tags.html
Normal file
16
layouts/partials/post_meta/tags.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{- $taxo := "tags" -}}
|
||||
{{- with .Param $taxo -}}
|
||||
<div class="meta__item-categories meta__item">
|
||||
tagged:
|
||||
<span class="meta__text">
|
||||
{{- range $index, $category := . }}
|
||||
{{- $url := urls.Parse ($category | urlize) -}}
|
||||
{{- $path := $url.Path -}}
|
||||
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
<a class="meta__link" href="{{ .RelPermalink }}" rel="category">{{ .Title }}</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</span>
|
||||
</div>
|
||||
{{- end }}
|
Reference in New Issue
Block a user