diff options
Diffstat (limited to 'layouts/archives')
| -rw-r--r-- | layouts/archives/single.html | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 83436ac..e7fc884 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -1,44 +1,40 @@ {{ define "main" }} <header> - <a href={{ "" | relURL }} class=title><p class=site-title>{{ .Site.Title }}</p></a> - <nav>{{ partial "nav.html" . }}</nav> + <a href= /><code>cd ~</code></a> </header> +<hr> <main> - {{ if .Data.Singular }} - <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3> - <small><a href={{ "blog" | relURL }}>Remove filter</a></small> - {{ end }} + {{ if .Data.Singular }} + <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3> + <small><a href={{ "blog" | relURL }}>Remove filter</a></small> + {{ end }} - {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} - {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} - {{ $postPages := ($allPosts | complement $excludePosts) }} + {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} + {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} + {{ $postPages := ($allPosts | complement $excludePosts) }} - <ul class=blog-posts> - {{ $currentYear := 0 }} - {{ range $postPages }} - {{ $year := .Date.Year }} - {{ if ne $year $currentYear }} - <h3>{{ $year }}</h3> - {{ $currentYear = $year }} - {{ end }} - <li> - <time datetime={{ .Date.Format "2006-01-02" }} pubdate>{{ .Date.Format "2006-01-02" }}</time> - <a href={{ .Permalink }}>{{ .Title }}</a> - </li> - {{ else }} - <li>No posts yet</li> - {{ end }} - </ul> + <ul class=blog-posts> + {{ $currentYear := 0 }} + {{ range $postPages }} + {{ $year := .Date.Year }} + <li> + <span class="post-link-wrapper"> + <a href="{{ .RelPermalink }}" class="post-title">{{ .Title }}</a> + </span> - {{ if not .Data.Singular }} - <footer> - <nav class=tags> - {{ range .Site.Taxonomies.tags }} - <a href={{ .Page.Permalink }}>#{{ .Page.Title }}</a> - {{ end }} - </nav> - </footer> - {{ end }} + <time datetime="{{ .Date.Format " 2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time> + </li> + {{ end }} + </ul> + {{ if not .Data.Singular }} + <footer> + <nav class=tags> + {{ range .Site.Taxonomies.tags }} + <a href={{ .Page.Permalink }}>#{{ .Page.Title }}</a> + {{ end }} + </nav> + </footer> + {{ end }} </main> {{ end }} |
