From 144c5069f6f2b424598457f38c68fb88af849b68 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 11 Mar 2023 23:06:05 +0100 Subject: [PATCH] Rename page and optimize template generation --- content/contents.lr | 2 ++ models/{page.ini => frontpage.ini} | 4 +++- packages/render-template | 2 +- templates/{page.html => frontpage.html} | 6 +++--- 4 files changed, 9 insertions(+), 5 deletions(-) rename models/{page.ini => frontpage.ini} (86%) rename templates/{page.html => frontpage.html} (79%) diff --git a/content/contents.lr b/content/contents.lr index 1297eb4..35905fa 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -1,3 +1,5 @@ +_model: frontpage +--- title: Awesome Ansible Roles --- body: diff --git a/models/page.ini b/models/frontpage.ini similarity index 86% rename from models/page.ini rename to models/frontpage.ini index 42a5016..5c3c5fe 100644 --- a/models/page.ini +++ b/models/frontpage.ini @@ -1,6 +1,8 @@ [model] -name = Page +name = Frontpage label = {{ this.title }} +protected = true +hidden = true [fields.title] label = Page Title diff --git a/packages/render-template b/packages/render-template index e9e82b6..1fd71ef 160000 --- a/packages/render-template +++ b/packages/render-template @@ -1 +1 @@ -Subproject commit e9e82b651263bd3501af75ac4638a5ae36761173 +Subproject commit 1fd71eff13c3a01dccc5dc49c26857e84686a14c diff --git a/templates/page.html b/templates/frontpage.html similarity index 79% rename from templates/page.html rename to templates/frontpage.html index 4c9e406..32730ac 100644 --- a/templates/page.html +++ b/templates/frontpage.html @@ -19,13 +19,13 @@ {{ blk.name }} - + - + - + {% endfor %}