From 031623d279f3cfe0a804c4dab5266e819e15f246 Mon Sep 17 00:00:00 2001 From: Leonardo Faria Date: Wed, 4 Nov 2020 20:54:46 -0800 Subject: Add dots effects; improve single post page --- assets/css/site.css | 13 +++++++++++++ layouts/_default/archives.html | 4 +++- layouts/_default/single.html | 32 ++++++++++++++++++++++---------- layouts/partials/intro.html | 5 ++++- layouts/partials/post-summary.html | 8 ++++---- 5 files changed, 46 insertions(+), 16 deletions(-) diff --git a/assets/css/site.css b/assets/css/site.css index 5f8fdcb..c5772e8 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -312,10 +312,23 @@ html { @apply my-6; } +.dots { + background-color: transparent; + background-image: radial-gradient(#2C5282 1px, transparent 1px); + background-size: 20px 20px; + width: 140px; + height: 80px; + z-index: -1; + transform: translate(-70px, -50%); + position: absolute; + opacity: 0.3; +} + .intro p, .article__content > p:first-of-type { @apply tracking-tight; @apply text-xl; + @apply text-gray-800; } /* .pagination is created by Hugo */ diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 9b8182d..a2fb85e 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -6,7 +6,9 @@
-

{{ .Title }}

+

+ {{ .Title }} +

I like to talk about: diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 20e0de5..b68facf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,20 +2,32 @@

-

- {{ .Title }} -

- {{if not .Params.hideMetadata }} -
- {{ $readTime := cond (gt .ReadingTime 1) "minutes" "minute" }} - - Read in {{ .ReadingTime }} {{ $readTime }} · -