From 3037362c744f783bdb6af645d0e5155e49c7399a Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Mon, 25 Mar 2019 16:18:28 +0700 Subject: Dates not in italic and title-block added in CSS --- layouts/partials/pages/title.html | 8 ++++---- static/css/theme.css | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/partials/pages/title.html b/layouts/partials/pages/title.html index 699bb86..1e65a63 100644 --- a/layouts/partials/pages/title.html +++ b/layouts/partials/pages/title.html @@ -1,4 +1,4 @@ -
+
{{/* Title */}}

{{ .Title }}

@@ -10,7 +10,7 @@ {{/* Period */}} {{ if .Params.startDate }}

- From {{ dateFormat .Site.Params.projects.date_format .Params.startDate }} + From {{ dateFormat .Site.Params.projects.date_format .Params.startDate }} {{ if .Params.endDate }} {{ $end := (time .Params.endDate) }} {{ $duration := $end.Sub (time .Params.startDate) }} @@ -18,8 +18,8 @@ {{ $years := int (div $months 12) }} {{ $months := int (sub $months (mul $years 12)) }} - to {{ dateFormat .Site.Params.projects.date_format .Params.endDate }} - ({{ if gt $years 0 }}{{ $years }} year{{ if gt $years 1 }}s{{ end }}{{ end }}{{ if and (gt $years 0) (gt $months 0) }}, {{ end }}{{ if gt $months 0 }}{{ $months }} month{{ if gt $months 1 }}s{{ end }}{{ end }}) + to {{ dateFormat .Site.Params.projects.date_format .Params.endDate }} + | {{ if gt $years 0 }}{{ $years }} year{{ if gt $years 1 }}s{{ end }}{{ end }}{{ if and (gt $years 0) (gt $months 0) }}, {{ end }}{{ if gt $months 0 }}{{ $months }} month{{ if gt $months 1 }}s{{ end }}{{ end }} {{ end }}

{{ end }} diff --git a/static/css/theme.css b/static/css/theme.css index 6298768..5c4fef4 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1074,6 +1074,10 @@ min-height: 300px; /* LISTS & POSTS */ +.title-block { + padding-bottom: 1em; +} + #list-content { clear: both; max-width: 100%; -- cgit v1.2.3