From e268954517ed7130f8945ca565927b8b96f42ed2 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 6 Apr 2023 07:54:18 +0300 Subject: [PATCH] add more meta descriptions --- templaters/simple/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templaters/simple/default.nix b/templaters/simple/default.nix index a763a57..1b2dad3 100644 --- a/templaters/simple/default.nix +++ b/templaters/simple/default.nix @@ -140,6 +140,7 @@ indexPage = mkPage { content = ctx.indexContent or postsSectionContent; + description = ctx.config.descriptionsById."index" or null; }; in { inherit ctx stylesheets mkPage stylesheet postsSectionContent; @@ -151,10 +152,12 @@ "posts"."index.html" = mkPage { content = postsSectionContent; titleStr = "posts - ${ctx.config.title}"; + description = ctx.config.descriptionsById."posts" or null; }; "404.html" = mkPage { content = html.h1 {class = "nohashtag";} "404 - page not found"; titleStr = "page not found - ${ctx.config.title}"; + description = ctx.config.descriptionsById."404" or null; }; "site.css" = stylesheet; }