From 3bc1080f9dad8d291abb4bb1285bfdc918d4829e Mon Sep 17 00:00:00 2001 From: Leonardo Faria Date: Mon, 2 Nov 2020 19:49:27 -0800 Subject: Refactor typography; add Inter everywhere --- assets/css/site.css | 16 +++++++++------- layouts/_default/archives.html | 14 ++++++++------ layouts/_default/list.html | 2 +- layouts/_default/single.html | 4 ++-- layouts/partials/post-summary.html | 2 +- layouts/taxonomy/category.html | 2 +- layouts/taxonomy/tag.html | 2 +- 7 files changed, 23 insertions(+), 19 deletions(-) diff --git a/assets/css/site.css b/assets/css/site.css index afc011f..33c0683 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -66,6 +66,7 @@ html { } .article__content > p:first-of-type { + @apply tracking-tight; @apply text-2xl; } @@ -81,22 +82,21 @@ html { } .article a { - @apply underline; @apply text-gray-700; @apply transition; @apply duration-300; @apply ease-in-out; } +.article a:not(.no-underline) { + @apply underline; +} + .article a:hover, .article a:focus { @apply text-blue-600; } -.artitle__title a { - @apply no-underline; -} - .article h1 { @apply text-5xl; @apply font-semibold; @@ -153,6 +153,7 @@ html { .article h4, .article h5, .article h6 { + @apply tracking-tighter; scroll-margin-top: 8rem; } @@ -161,7 +162,6 @@ html { .article ol, .article dl, .article td { - @apply font-serif; @apply text-xl; } @@ -312,7 +312,9 @@ html { @apply my-6; } -.intro p { +.intro p, +.article__content > p:first-of-type { + @apply tracking-tight; @apply text-2xl; } diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 2d7ea84..9b8182d 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -6,14 +6,16 @@
-

{{ .Title }}

+

{{ .Title }}

- I like to talk about: - {{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} - {{ with $.Site.GetPage (printf "/tags/%s" $name) }} - {{$name}}  +

+ I like to talk about: + {{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} + {{ with $.Site.GetPage (printf "/tags/%s" $name) }} + {{$name}}  + {{end}} {{end}} - {{end}} +

{{ range site.RegularPages.GroupByDate "2006" -}} {{ partial "post-summary.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f60df17..54dc4a1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,7 +4,7 @@ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} {{ range $paginator.Pages }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0409b26..4248f25 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@
-

{{ .Title }}

+

{{ .Title }}

{{if not .Params.hideMetadata }}
@@ -10,7 +10,7 @@ Read in {{ .ReadingTime }} {{ $readTime }} ·
diff --git a/layouts/partials/post-summary.html b/layouts/partials/post-summary.html index 6d58a6c..8fe9d04 100644 --- a/layouts/partials/post-summary.html +++ b/layouts/partials/post-summary.html @@ -4,7 +4,7 @@
    {{ range where .Pages "Type" "ne" "page" -}}
  1. - {{ .Title }} + {{ .Title }}
  2. {{- end }}
diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html index 63642cd..ddcef29 100644 --- a/layouts/taxonomy/category.html +++ b/layouts/taxonomy/category.html @@ -2,7 +2,7 @@