From 80c45419a252b59402359dfb08320c4208e7d2fb Mon Sep 17 00:00:00 2001 From: Bunker Date: Sun, 7 Jun 2015 09:06:44 +0200 Subject: Added taxonomy page * added a list lay-out under _default, so that taxonomy pages are shown as well * updated css code to properly showing and aligning tags: * removed absolute positioning * replaced with display: block; --- layouts/_default/list.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ static/css/slim.css | 13 ++++++++----- 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..83cd23f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,46 @@ + + + + + {{ partial "head.html" . }} + + + +
+ {{ partial "header.html" . }} +
+
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ range $paginator.Pages }} +
+

{{ .Title }}

+ + {{ if .Params.tags }} + + {{ end }} + {{ if .Site.Params.Summary }} +
+ {{ .Summary }} + +
+ {{ else if .Site.Params.Content }} +
+ {{ .Content }} +
+ {{ end }} +
+ {{ end }} +
+ {{ partial "pagination.html" . }} +
+ {{ partial "footer.html" . }} +
+ + {{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }} + + + + \ No newline at end of file diff --git a/static/css/slim.css b/static/css/slim.css index 0b0a463..df1ba66 100644 --- a/static/css/slim.css +++ b/static/css/slim.css @@ -337,8 +337,9 @@ button, .post-date { color: #ccc; font-size: 14px; - position: absolute; - top: 45px; } + margin-top: -25px; + display:block; + position: relative; } .post-content { margin: 2rem 0; } @@ -347,11 +348,13 @@ button, .post-tags { color: #ccc; + display: block; font-size: 14px; - position: absolute; - right: 25px; - top: 45px; + position: relative; + margin-top: -25px; + margin-left: 125px; text-align: right; + max-width: 525px; } .post-tags a { -- cgit v1.2.3