diff options
author | Leonardo Faria <leonardofaria@users.noreply.github.com> | 2020-10-28 06:00:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 06:00:20 +0300 |
commit | eb22616295525405a521982ffa8d7cbc357353c7 (patch) | |
tree | 5759ba7596e64fa6e7f7df77211afeda76e65588 /layouts | |
parent | 320e34c27631a40bc21c70c4f160aa757ae599f1 (diff) | |
parent | 9018388827f331c13c2b1387c6bcb41c64f87182 (diff) |
Merge pull request #32 from leonardofaria/improve-fonts
Improve typography
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 60bc230..0409b26 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,7 @@ </header> {{ end }} - <div class="py-5"> + <div class="article__content py-5"> {{ .Content }} </div> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 79a4489..0eada8b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -83,6 +83,9 @@ {{ hugo.Generator }} + <link rel="dns-prefetch" href="//fonts.googleapis.com"> + <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> + <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet"> {{ if .Site.IsServer }} {{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/dev/postcss.config.js") }} <link rel="stylesheet" href="{{ $style.RelPermalink }}"> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9a913f4..472daa8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,7 +23,7 @@ <img alt="{{ .Site.Title }}" class="w-24 h-24 lg:w-32 lg:h-32 rounded-full mb-3" src="{{.Site.Params.avatar | absURL}}"> {{ end }} {{ end }} - <a href="{{ .Site.Home.Permalink }}" class="text-4xl font-normal flex flex-shrink-0 text-center text-white focus:text-gray-300 opacity-75 hover:opacity-100 transition duration-300 ease-in-out"> + <a href="{{ .Site.Home.Permalink }}" class="tracking-tighter text-4xl font-semibold flex flex-shrink-0 text-center text-white focus:text-gray-300 opacity-75 hover:opacity-100 transition duration-300 ease-in-out"> {{ .Site.Title }} </a> @@ -36,7 +36,7 @@ {{else}} <header id="header" class="w-full m-0 fixed z-10 transition-all duration-300 ease-in-out border-t-4 border-gray-300 py-4 backdrop-filter-blur"> <div id="header-container" class="max-w-7xl mx-auto p-6 flex items-center flex-wrap lg:flex-no-wrap relative justify-between"> - <a href="{{ .Site.Home.Permalink }}" class="leading-10 text-3xl font-normal text-gray-600 flex flex-shrink-0"> + <a href="{{ .Site.Home.Permalink }}" class="tracking-tighter leading-10 text-3xl font-semibold text-gray-600 flex flex-shrink-0"> {{ .Site.Title }} </a> |