Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-03-25 12:18:28 +0300
committerDerek Severin <severinderek@gmail.com>2019-03-25 12:18:28 +0300
commit3037362c744f783bdb6af645d0e5155e49c7399a (patch)
tree351f0dd73f4a5805af245350f18fe92ad39c4dbb
parent41c4ce6549b2fc7ffac9efb6f0c2ba40f890bdbc (diff)
Dates not in italic and title-block added in CSS
-rw-r--r--layouts/partials/pages/title.html8
-rw-r--r--static/css/theme.css4
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 @@
-<hgroup>
+<hgroup class="title-block">
{{/* Title */}}
<h1>{{ .Title }}</h1>
@@ -10,7 +10,7 @@
{{/* Period */}}
{{ if .Params.startDate }}
<h3>
- From <i>{{ dateFormat .Site.Params.projects.date_format .Params.startDate }}</i>
+ 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 <i>{{ dateFormat .Site.Params.projects.date_format .Params.endDate }}</i>
- ({{ 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 }}
</h3>
{{ 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%;