From 8e92cec40f4ef6dece53ae601ae33f2918d3c948 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Mon, 13 May 2024 15:42:42 +0500 Subject: [PATCH] create custom page template --- parts/page.html => templates/page-brochure.html | 3 +-- theme.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) rename parts/page.html => templates/page-brochure.html (79%) diff --git a/parts/page.html b/templates/page-brochure.html similarity index 79% rename from parts/page.html rename to templates/page-brochure.html index a200a60..be1acc7 100644 --- a/parts/page.html +++ b/templates/page-brochure.html @@ -1,6 +1,5 @@ -
- +
diff --git a/theme.json b/theme.json index f32fb48..4d77722 100644 --- a/theme.json +++ b/theme.json @@ -376,5 +376,14 @@ } } } - } + }, + "customTemplates": [ + { + "name": "page-brochure", + "postTypes": [ + "page" + ], + "title": "Brochure" + } + ] }