From 4bb0d941d51a04f033ccc18b347da1d804443bec Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 10 Feb 2022 09:09:09 +0000 Subject: [PATCH] Add latest post link to homepage --- layouts/index.html | 10 ++++++++++ static/src/scss/style.scss | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 93c0548..9418b64 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,6 +11,16 @@ + + {{ with index .Site.Pages.ByPublishDate.Reverse 0 }} +
+ Latest Post: + + {{ .Title }} + + +
+ {{ end }} {{ end }} diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 65e5bae..38b065a 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -113,6 +113,16 @@ table td { color: transparentize($body-color, 0.2); } } + + .latest-post { + @include border-radius($input-border-radius-sm); + + display: inline-block; + margin-top: 3rem; + background-color: transparentize($black, 0.2); + padding: ($spacer * 0.25) $spacer; + color: $body-color; + } } footer {