From 929e72c8a788d00505a726e1c65475480ab794de Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 28 May 2016 16:03:42 +0200 Subject: [PATCH] =?UTF-8?q?Add=20new=20=E2=80=9Cinterrupts=E2=80=9D=20sect?= =?UTF-8?q?ion=20to=20index=20page=20(#165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/index.html | 7 +++++++ static/css/main.css | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index de73e7d4..516bce66 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -26,4 +26,11 @@ {{ end }} +
Interrupts
+
+ {{ range first 4 (after 8 (where .Site.Pages.ByDate "Section" "post")) }} + {{ .Render "teaser" }} + {{ end }} +
+ {{ partial "footer.html" . }} diff --git a/static/css/main.css b/static/css/main.css index 06d8681d..e4019b83 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -48,6 +48,10 @@ main img { border: 2px solid #cc0; } +.posts.interrupts { + border: 2px solid #f66; +} + .posts hr { margin: 2rem 0; } @@ -67,6 +71,10 @@ main img { color: #990; } +.post-category.interrupts { + color: #f33; +} + .PageNavigation { font-size: 0.9em; display: table;