From 0339ee8135cb25f5a60f134646c8531fa5a32501 Mon Sep 17 00:00:00 2001 From: Tom Vines Date: Sun, 3 Aug 2025 21:46:54 +1000 Subject: [PATCH] chore: slim excess page templates --- custom-account.hbs | 140 ----------------------------- custom-authors.hbs | 43 --------- custom-contact.hbs | 25 ------ custom-membership.hbs | 21 ----- custom-post-center.hbs | 4 - custom-post-classic.hbs | 4 - custom-sign-in.hbs | 32 ------- custom-sign-up.hbs | 35 -------- custom-subscribe.hbs | 34 ------- custom-tags.hbs | 43 --------- default-custom.hbs | 18 ---- default.hbs | 2 +- partials/services/google_fonts.hbs | 47 ---------- 13 files changed, 1 insertion(+), 447 deletions(-) delete mode 100644 custom-account.hbs delete mode 100644 custom-authors.hbs delete mode 100644 custom-contact.hbs delete mode 100644 custom-membership.hbs delete mode 100644 custom-post-center.hbs delete mode 100644 custom-post-classic.hbs delete mode 100644 custom-sign-in.hbs delete mode 100644 custom-sign-up.hbs delete mode 100644 custom-subscribe.hbs delete mode 100644 custom-tags.hbs delete mode 100644 default-custom.hbs diff --git a/custom-account.hbs b/custom-account.hbs deleted file mode 100644 index 9b9fa73..0000000 --- a/custom-account.hbs +++ /dev/null @@ -1,140 +0,0 @@ -{{!< default}} -{{#post}} -{{#if @member.paid}} -
- -
-{{#get "posts" limit="6" filter="visibility:[members,paid,tiers]+feature_image:-null" include="authors" as |special_posts|}} -{{#if special_posts}} -{{>related label=(t "The latest posts {start-bold}only for subscribers{end-bold}" start-bold="" end-bold="")}} -{{/if}} -{{/get}} -{{else if @member}} -
- -
-{{#if @site.paid_members_enabled}} - {{>members/tiers}} -{{/if}} -{{#get "posts" limit="6" filter="visibility:[members,paid,tiers]+feature_image:-null" include="authors" as |special_posts|}} - {{#if special_posts}} - {{>related label=(t "The latest posts {start-bold}only for subscribers{end-bold}" start-bold="" end-bold="")}} - {{/if}} -{{/get}} -{{else}} -{{#contentFor "script_js"}} - -{{/contentFor}} -{{/if}} -{{/post}} \ No newline at end of file diff --git a/custom-authors.hbs b/custom-authors.hbs deleted file mode 100644 index 81e7d5e..0000000 --- a/custom-authors.hbs +++ /dev/null @@ -1,43 +0,0 @@ -{{!< default}} -{{#post}} -
-

{{title}}

- {{#if custom_excerpt}} -

{{custom_excerpt}}

- {{/if}} -
-
-
- - {{{t "Meet our {start-bold}authors{end-bold}" start-bold="" end-bold=""}}} - -
- {{#get "authors" limit="all" include="count.posts" order="count.posts desc" as |authors|}} - {{#if authors}} -
- {{#foreach authors}} - {{#if count.posts}} -
- {{#if profile_image}} -
- - {{>images/archive_image archive_image=profile_image}} -
- {{/if}} -
-

{{name}}

- {{#if location}}{{t "from"}} {{location}} ∙ {{/if}}{{plural count.posts empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} - {{#if bio}} -

- {{bio}} -

- {{/if}} -
-
- {{/if}} - {{/foreach}} -
- {{/if}} - {{/get}} -
-{{/post}} \ No newline at end of file diff --git a/custom-contact.hbs b/custom-contact.hbs deleted file mode 100644 index dd9be42..0000000 --- a/custom-contact.hbs +++ /dev/null @@ -1,25 +0,0 @@ -{{!< default-custom}} -{{#post}} -
- {{#if feature_image}} -
- {{/if}} -
-
- -
-
-
-

{{title}}

- - - - - -
-
-
-
-{{/post}} \ No newline at end of file diff --git a/custom-membership.hbs b/custom-membership.hbs deleted file mode 100644 index 8e1b731..0000000 --- a/custom-membership.hbs +++ /dev/null @@ -1,21 +0,0 @@ -{{!< default}} -{{#post}} -
- {{>post_header membership_page=true}} -
-{{#if html}} -
-
-

{{t "FAQs"}}

-
- {{content}} -
-
-
-{{/if}} -{{#get "posts" limit="6" filter="visibility:[members,paid,tiers]+feature_image:-null" include="authors" as |special_posts|}} - {{#if special_posts}} - {{>related label=(t "The latest posts {start-bold}only for subscribers{end-bold}" start-bold="" end-bold="")}} - {{/if}} -{{/get}} -{{/post}} \ No newline at end of file diff --git a/custom-post-center.hbs b/custom-post-center.hbs deleted file mode 100644 index cbbf49c..0000000 --- a/custom-post-center.hbs +++ /dev/null @@ -1,4 +0,0 @@ -{{!< default}} -{{#post}} -{{>post_content post_center=true}} -{{/post}} \ No newline at end of file diff --git a/custom-post-classic.hbs b/custom-post-classic.hbs deleted file mode 100644 index 582ae34..0000000 --- a/custom-post-classic.hbs +++ /dev/null @@ -1,4 +0,0 @@ -{{!< default}} -{{#post}} -{{>post_content post_classic=true}} -{{/post}} \ No newline at end of file diff --git a/custom-sign-in.hbs b/custom-sign-in.hbs deleted file mode 100644 index 953aa27..0000000 --- a/custom-sign-in.hbs +++ /dev/null @@ -1,32 +0,0 @@ -{{!< default-custom}} -{{#post}} -
- {{#if feature_image}} -
- {{/if}} -
-
- -
-
-
-

{{title}}

- - -
- {{t "Processing your application"}} - {{t "There was an error sending the email"}} -
- {{t "Don’t have an account yet?"}} {{t "Sign up"}} -
-
-

{{t "Great!"}}

-

{{t "Please check your inbox and click the link to complete signin."}}

- {{t "Back to homepage"}} -
-
-
-
-{{/post}} \ No newline at end of file diff --git a/custom-sign-up.hbs b/custom-sign-up.hbs deleted file mode 100644 index 73c50e9..0000000 --- a/custom-sign-up.hbs +++ /dev/null @@ -1,35 +0,0 @@ -{{!< default-custom}} -{{#post}} -
- {{#if feature_image}} -
- {{/if}} -
-
- -
-
-
-

{{title}}

- {{#if @site.portal_name}} - - {{/if}} - - -
- {{t "Processing your application"}} - {{t "There was an error sending the email"}} -
- {{t "Already have an account?"}} {{t "Sign in"}} -
-
-

{{t "Great!"}}

-

{{t "Please check your inbox and click the link to confirm your signup."}}

- {{t "Back to homepage"}} -
-
-
-
-{{/post}} \ No newline at end of file diff --git a/custom-subscribe.hbs b/custom-subscribe.hbs deleted file mode 100644 index 8b281b8..0000000 --- a/custom-subscribe.hbs +++ /dev/null @@ -1,34 +0,0 @@ -{{!< default-custom}} -{{#post}} -
- {{#if feature_image}} -
- {{/if}} -
-
- -
-
-
-

{{title}}

- {{#if @site.portal_name}} - - {{/if}} - - -
- {{t "Processing your application"}} - {{t "There was an error sending the email"}} -
-
-
-

{{t "Great!"}}

-

{{t "Please check your inbox and click the link to confirm your subscription."}}

- {{t "Back to homepage"}} -
-
-
-
-{{/post}} \ No newline at end of file diff --git a/custom-tags.hbs b/custom-tags.hbs deleted file mode 100644 index be19328..0000000 --- a/custom-tags.hbs +++ /dev/null @@ -1,43 +0,0 @@ -{{!< default}} -{{#post}} -
-

{{title}}

- {{#if custom_excerpt}} -

{{custom_excerpt}}

- {{/if}} -
-
-
- - {{{t "Explore our {start-bold}tags{end-bold}" start-bold="" end-bold=""}}} - -
- {{#get "tags" limit="all" filter="visibility:public" include="count.posts" order="count.posts desc" as |tags|}} - {{#if tags}} -
- {{#foreach tags}} - {{#if count.posts}} -
- {{#if feature_image}} -
- - {{>images/archive_image archive_image=feature_image}} -
- {{/if}} -
-

{{name}}

- {{plural count.posts empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} - {{#if description}} -

- {{description}} -

- {{/if}} -
-
- {{/if}} - {{/foreach}} -
- {{/if}} - {{/get}} -
-{{/post}} \ No newline at end of file diff --git a/default-custom.hbs b/default-custom.hbs deleted file mode 100644 index e84e0c2..0000000 --- a/default-custom.hbs +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - {{@site.title}} — {{meta_title}} - - - {{>services/google_fonts}} - - {{{block "fonts_css"}}} - {{ghost_head}} - - - {{{body}}} - {{ghost_foot}} - - \ No newline at end of file diff --git a/default.hbs b/default.hbs index 7cd63a7..69358e3 100644 --- a/default.hbs +++ b/default.hbs @@ -3,7 +3,7 @@ - {{meta_title page=(t "meta-page")}} + {{#is "home"}}{{else}}{{meta_title page=(t "meta-page")}} - {{/is}}{{@site.title}} {{>services/google_fonts}} diff --git a/partials/services/google_fonts.hbs b/partials/services/google_fonts.hbs index 08623dd..dc38fac 100644 --- a/partials/services/google_fonts.hbs +++ b/partials/services/google_fonts.hbs @@ -9,14 +9,12 @@ --font-family-one: var(--gh-font-heading, 'Archivo', sans-serif); --font-weight-one-light: 300; --font-weight-one-bold: 800; - --font-family-two: var(--gh-font-heading, 'Archivo', sans-serif); --font-weight-two-bold: 800; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Bona Nova + Inter"}} @@ -28,21 +26,17 @@ --font-family-one: var(--gh-font-heading, 'Bona Nova', serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Inter', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 700; - --letter-spacing: -.01em; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Inter"}} @@ -54,21 +48,17 @@ --font-family-one: var(--gh-font-heading, 'Inter', sans-serif); --font-weight-one-light: 300; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Inter', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 700; - --letter-spacing: -.01em; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Lato"}} @@ -81,10 +71,8 @@ --font-weight-one-light: 400; --font-weight-one-regular: 400; --font-weight-one-bold: 900; - --font-family-two: var(--gh-font-heading, 'Lato', sans-serif); --font-weight-two-bold: 900; - --font-family-three: var(--gh-font-body, 'Lato', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 400; @@ -93,7 +81,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "EB Garamond + Inter"}} @@ -105,7 +92,6 @@ --font-family-one: var(--gh-font-heading, 'EB Garamond', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; @@ -114,7 +100,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Lora + System fonts"}} @@ -126,14 +111,12 @@ --font-family-one: var(--gh-font-heading, 'Lora', serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Lora', serif); --font-weight-two-bold: 700; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Nunito"}} @@ -145,10 +128,8 @@ --font-family-one: var(--gh-font-heading, 'Nunito', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 900; - --font-family-two: var(--gh-font-heading, 'Nunito', sans-serif); --font-weight-two-bold: 900; - --font-family-three: var(--gh-font-body, 'Nunito', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 600; @@ -158,7 +139,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Oswald + Roboto"}} @@ -170,10 +150,8 @@ --font-family-one: var(--gh-font-heading, 'Oswald', sans-serif); --font-weight-one-light: 300; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Oswald', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Roboto', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; @@ -182,7 +160,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Playfair + System fonts"}} @@ -198,7 +175,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Poppins + Inter"}} @@ -210,21 +186,17 @@ --font-family-one: var(--gh-font-heading, 'Poppins', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 600; - --font-family-two: var(--gh-font-heading, 'Poppins', sans-serif); --font-weight-two-bold: 600; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 600; - --letter-spacing: -.01em; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Raleway + System fonts"}} @@ -236,14 +208,12 @@ --font-family-one: var(--gh-font-heading, 'Raleway', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 800; - --font-family-two: var(--gh-font-heading, 'Raleway', sans-serif); --font-weight-two-bold: 800; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Roboto"}} @@ -255,10 +225,8 @@ --font-family-one: var(--gh-font-heading, 'Roboto', sans-serif); --font-weight-one-light: 300; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Roboto', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Roboto', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; @@ -267,7 +235,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Space Grotesk + Inter"}} @@ -279,21 +246,17 @@ --font-family-one: var(--gh-font-heading, 'Space Grotesk', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Space Grotesk', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 700; - --letter-spacing: -.01em; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Sora + Inter"}} @@ -305,10 +268,8 @@ --font-family-one: var(--gh-font-heading, 'Sora', sans-serif); --font-weight-one-light: 300; --font-weight-one-bold: 600; - --font-family-two: var(--gh-font-heading, 'Sora', sans-serif); --font-weight-two-bold: 600; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; @@ -317,7 +278,6 @@ {{/contentFor}} {{/match}} - {{#match @custom.fonts "Syne + Inter"}} @@ -329,21 +289,17 @@ --font-family-one: var(--gh-font-heading, 'Syne', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Syne', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 700; - --letter-spacing: -.01em; } {{/contentFor}} {{/match}} - {{#match @custom.fonts "Work Sans + Inter"}} @@ -355,15 +311,12 @@ --font-family-one: var(--gh-font-heading, 'Work Sans', sans-serif); --font-weight-one-light: 400; --font-weight-one-bold: 700; - --font-family-two: var(--gh-font-heading, 'Work Sans', sans-serif); --font-weight-two-bold: 700; - --font-family-three: var(--gh-font-body, 'Inter', sans-serif); --font-weight-three-regular: 400; --font-weight-three-medium: 500; --font-weight-three-bold: 700; - --letter-spacing: -.01em; }