From 006792fa65b412ca6d16892dc122eaa4e01c7253 Mon Sep 17 00:00:00 2001 From: Julien Schmidt <js@stusta.net> Date: Tue, 24 Apr 2018 18:03:22 +0200 Subject: [PATCH] right-align dates in office hours table --- layouts/shortcodes/officehours.html | 2 +- static/css/main.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/officehours.html b/layouts/shortcodes/officehours.html index 708cac8..e5674a2 100644 --- a/layouts/shortcodes/officehours.html +++ b/layouts/shortcodes/officehours.html @@ -15,7 +15,7 @@ {{ else }} {{ dateFormat "Monday" (int .start) }} {{ end }}</td> - <td>{{ if (eq $.Site.Language.Lang "de") }} + <td class="right">{{ if (eq $.Site.Language.Lang "de") }} {{ (time (int .start)).Day }}. {{ index $.Site.Data.DE.Monate (sub (time (int .start)).Month 1) }} {{ (time (int .start)).Year }} {{ else }} {{ dateFormat "January 2, 2006" (int .start) }} diff --git a/static/css/main.css b/static/css/main.css index 3845567..8457550 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -550,6 +550,10 @@ table td { border-top: 1px solid #dee2e6; } +td.right { + text-align: right; +} + code { vertical-align: bottom; } -- GitLab