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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2018-08-24 23:05:45 +0300
committerHauke Stieler <mail@hauke-stieler.de>2018-08-24 23:05:45 +0300
commit8faee7f27d013d0d7ca03117f46cd228c6047f7f (patch)
treeabe0d3a6c3403538bb3329e5047c781ad016ce5d
parent2f31dc423bad13470d8c21571a699a659ff395a7 (diff)
Slightly different styles for list of articles
-rw-r--r--layouts/_default/li.html4
-rw-r--r--static/css/main.css12
2 files changed, 14 insertions, 2 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
index 6a26fea..3dec18f 100644
--- a/layouts/_default/li.html
+++ b/layouts/_default/li.html
@@ -1,9 +1,9 @@
<article>
<header>
- <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
+ <h1 class="li-h1"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="clearfix">
<div class="post-date pull-left">
- <span class="small">
+ <span class="li-small">
{{ i18n "postedOn" }}
{{ .Date.Format ( i18n "dateformat" ) }}
</span>
diff --git a/static/css/main.css b/static/css/main.css
index f64dea2..22faa64 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -280,6 +280,18 @@ a.btn-back {
border-color: #98a0a4;
}
+/* Article list */
+
+.li-h1 {
+ margin-bottom: 2px;
+}
+
+.li-small {
+ font-size: 70%;
+ margin-top: 3px;
+ margin-bottom: 6px;
+}
+
/* Bootstrap adjustions */
h1,