diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-01-31 23:57:58 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-01-31 23:57:58 +0100 |
commit | f3ebd2fd48c0b670586c26489df59d67304e09aa (patch) | |
tree | 2f7fddff24aef35969e7559514802136373b7a56 | |
parent | aac08c843b1f7f7b5e3039640d84f55339c7ce48 (diff) |
chore: use abstract for description
-rw-r--r-- | config.toml | 3 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config.toml b/config.toml index 8f9a509..ec8ae8e 100644 --- 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 index dcdf2ae..2f6c1ab 100644 --- 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" /> |