From 380c90937b1b0350bcbb2dca5d713c38f4e5f04a Mon Sep 17 00:00:00 2001 From: Bruno Massa Date: Thu, 6 Jul 2023 09:56:21 -0300 Subject: [PATCH] fix: user created index page with proper kind --- source/Models/Site.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Models/Site.cs b/source/Models/Site.cs index da1b576..81e9c24 100644 --- a/source/Models/Site.cs +++ b/source/Models/Site.cs @@ -251,6 +251,7 @@ public class Site : IParams { Home = frontmatter; frontmatter!.Permalink = "/"; + frontmatter.Kind = Kind.index; PagesDict.Remove(frontmatter.Permalink); PagesDict.Add(frontmatter.Permalink, frontmatter); } @@ -261,6 +262,7 @@ public class Site : IParams } else if (level == 0) { + // TODO: unify the with section creation process Home = CreateIndexPage(string.Empty); } else if (level == 1) -- GitLab