This repository has been archived by the owner on May 10, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make tag pages easier to use * change title * better bottom of the page * no lower-case title
- Loading branch information
Showing
1 changed file
with
10 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,20 @@ | ||
{{ define "main" }} | ||
|
||
{{ $paginator := .Paginator }} | ||
|
||
<article> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-8 col-offset-2 top-10 bottom-10 maintext"> | ||
|
||
<div class="row"> | ||
<div class="col-offset-2 col-8 top-0 bottom-10"> | ||
<h2 style="text-align: center;">Posts with the "{{lower .Title }}" tag</h2> | ||
</div> | ||
</div> | ||
|
||
{{ range $paginator.Pages }} | ||
<div class="excerpt" > | ||
<a href="{{ .URL | relURL }}"><center><small><h2>{{ .Title }}</h2></small></center></a> | ||
|
||
<div align="right"><small class="lighter">{{ .Date.Format "January 2, 2006" }}</small></div> | ||
|
||
<p class="lighter authors">By: | ||
{{$authors := .Params.authors}} | ||
{{ partial "authors.html" (dict "authors" $authors "Site" $.Site) }} | ||
|
||
</p> | ||
<div style="font-style: italic; text-align: justify;"> | ||
<p>{{ .Summary }}</p> | ||
</div> | ||
<div class="labels"> | ||
{{ range .Params.tags }} | ||
{{ $targetUrl := (print ("/tags/" | relLangURL) (. | urlize) "/") }} | ||
{{ if eq $.Page.URL $targetUrl }} | ||
<a href="{{ $targetUrl }}"><span class="label active">{{ . }}</span></a> | ||
{{ else }} | ||
<a href="{{ $targetUrl }}"><span class="label">{{ . }}</span></a> | ||
{{ end }} | ||
{{ end }} | ||
</div><!-- /labels --> | ||
|
||
|
||
</div><!-- /excerpt --> | ||
|
||
{{ end }} | ||
</div><!-- /maintext --> | ||
|
||
|
||
|
||
<div class="col-offset-2 col-8 top-0 bottom-0"> | ||
<h2 style="text-align: center;">Content with the "{{ .Title }}" tag</h2> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col"> | ||
{{ if $paginator.HasPrev }} | ||
<span class="label pull-left"><a href="{{ $paginator.Prev.URL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</a></span> | ||
{{ end }} | ||
</div> | ||
<div class="col"> | ||
<center><p>Page {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</p></center> | ||
</div> | ||
|
||
<div class="col"> | ||
{{ if $paginator.HasNext }} | ||
<span class="label pull-right"><a href="{{ $paginator.Next.URL }}">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></a></span> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
<br><br> | ||
|
||
{{ end }} | ||
{{ partial "archive.html" (dict "pages" .Pages ) }} | ||
|
||
<div class="row center top-3 bottom-3"> | ||
<p> Find all blog posts, tech notes and community calls <a href="/tags/" target="_blank">by tag</a>, <a href="/archive/" target="_blank">by date</a> and <a href="/authors/" target="_blank">by author</a>. </p> | ||
</div> | ||
|
||
{{ end }} |