michal-sapka-me

Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit f3ebd2fd48c0b670586c26489df59d67304e09aa
parent aac08c843b1f7f7b5e3039640d84f55339c7ce48
Author: MichaƂ M. Sapka <michal@sapka.me>
Date:   Tue, 31 Jan 2023 23:57:58 +0100

chore: use abstract for description

Diffstat:
Mconfig.toml | 3++-
Mlayouts/_default/baseof.html | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.toml b/config.toml @@ -2,5 +2,6 @@ baseURL = 'https://michal.sapka.me' languageCode = 'en-us' title = "Michal's website" tagline = "a" - +[params] + defaultDescription = "Welcome to my blog!" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html @@ -13,7 +13,7 @@ <link rel="icon" type="image/png" sizes="32x32" href="{{ $image.Permalink }}"> {{- $image := resources.Get "/icons/favicon-16x16.png" }} <link rel="icon" type="image/png" sizes="16x16" href="{{ $image.Permalink }}"> - <meta name="description" content="{{ .Page.Summary }}"/> + <meta name="description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}"/> <meta property="og:title" content="{{ .Page.Title }}" /> <meta property="og:type" content="website" />