Merge pull request #1621 from vmware-tanzu/site/blog-post-tags
blog: clean up tags page
This commit is contained in:
commit
decd40bc26
File diff suppressed because one or more lines are too long
@ -587,3 +587,11 @@ pre code {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.terms {
|
||||
ul {
|
||||
li {
|
||||
display: block
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,20 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<div class="hero subpage">
|
||||
<div class="wrapper">
|
||||
{{ if or .Title .Content }}
|
||||
<div>
|
||||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper landing">
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<main>
|
||||
<div class="hero blog">
|
||||
<div class="wrapper">
|
||||
<h2>Pinniped Blog Posts by {{ .Title }}</h2>
|
||||
<h2>Pinniped Blog Posts For {{ .Title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper blog landing">
|
||||
|
28
site/themes/pinniped/layouts/_default/terms.html
Normal file
28
site/themes/pinniped/layouts/_default/terms.html
Normal file
@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<div class="hero subpage">
|
||||
<div class="wrapper">
|
||||
{{ if or .Title .Content }}
|
||||
<div>
|
||||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper terms">
|
||||
<p>Blog posts have been tagged with the following set of tags (including authors):</p>
|
||||
<ul>
|
||||
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
|
||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||
<li>
|
||||
<a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>">{{ .Title }}</a>
|
||||
<sup>{{$cnt}}</sup>
|
||||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user