From 6bc8c8092c97d49ebc20c19fdc40648873f6b236 Mon Sep 17 00:00:00 2001 From: m_assaleh Date: Sun, 22 Jan 2023 02:24:02 +0100 Subject: [PATCH 1/2] =?UTF-8?q?New=20update:=201.0.1=20*=20Updated=20the?= =?UTF-8?q?=20theme=E2=80=99s=20description=20*=20Added=20more=20custom=20?= =?UTF-8?q?settings=201)=20text=5Fcolor:=20Option=20to=20choose=20the=20we?= =?UTF-8?q?bsite=E2=80=99s=20font=20color=202)=20link=5Fof=5Flottie=5Fjson?= =?UTF-8?q?=5Ffile:=20Option=20to=20upload=20a=20Lottie=20file=20as=20an?= =?UTF-8?q?=20animated=20logo=203)=20show=5Fsite=5Ftitle:=20Option=20to=20?= =?UTF-8?q?show=20the=20website=E2=80=99s=20title=20beside=20the=20logo=20?= =?UTF-8?q?4)=20show=5Fdescription:=20Option=20to=20show=20the=20website?= =?UTF-8?q?=E2=80=99s=20description=20beside=20the=20logo=205)=20show=5Fse?= =?UTF-8?q?arch=5Ficon:=20Option=20to=20hide=20the=20search=20icon=206)=20?= =?UTF-8?q?flip=5Fcolumns:=20Option=20to=20flip=20the=20main=20columns=20i?= =?UTF-8?q?n=20the=20side-by-side=20layout=20*=20Added=20the=20meta=20tag?= =?UTF-8?q?=20theme-color=20and=20set=20its=20value=20to=20match=20the=20a?= =?UTF-8?q?ccent=20color=20*=20General=20improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default.hbs | 102 +++++++++++++++++++--- index.hbs | 237 +++++++++++++++++++++++++++++++++++++++++---------- package.json | 31 ++++++- 3 files changed, 310 insertions(+), 60 deletions(-) diff --git a/default.hbs b/default.hbs index 10842bb..3211e35 100644 --- a/default.hbs +++ b/default.hbs @@ -17,6 +17,34 @@ :root { --background-color: {{@custom.background_color}} } + + *, html, :root, body, h1, h2, h3, h4, h5, h6, p, a, div, .gh-foot a:hover { + color: {{@custom.text_color}}; + } + + {{#if @custom.flip_columns}} + .showOnMedia { + font-size: 0; + visibility: hidden; + } + + @media only screen and (max-width: 840px) { + .HideOnMedia { + font-size: 0; + visibility: hidden; + } + + .showOnMedia { + font-size: clamp(3.2rem, 2.4452rem + 2.0968vw, 5.8rem); + visibility: visible; + margin-bottom: 50px; + } + } + {{/if}} + + .gh-about-inner.gh-inner { + gap: 50px; + } + + {{ghost_head}} + + + + + @@ -43,15 +78,41 @@
- + {{#if @custom.show_site_title}} + {{else}} - {{@site.title}} + + {{#if @custom.show_site_title}} + {{/if}} - + {{else}} + + {{/if}}
- + {{#if @custom.show_search_icon}} + + {{/if}}
@@ -59,7 +120,9 @@ {{navigation}} {{#unless @site.members_enabled}} {{#match @custom.navigation_layout "Stacked"}} - + {{#if @custom.show_search_icon}} + + {{/if}} {{/match}} {{/unless}} @@ -67,10 +130,14 @@
{{#unless @site.members_enabled}} {{^match @custom.navigation_layout "Stacked"}} - + {{#if @custom.show_search_icon}} + + {{/if}} {{/match}} {{else}} - + {{#if @custom.show_search_icon}} + + {{/if}}
{{#unless @member}} {{#unless @site.members_invite_only}} @@ -98,7 +165,7 @@ + +{{#is "post, page"}} + {{> "pswp"}} +{{/is}} + + + + + +{{ghost_foot}} + + + + \ No newline at end of file diff --git a/package.json b/package.json index bcacb70..22ce84d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "solo", - "description": "A Ghost theme", - "version": "1.0.0", + "description": "A clean, minimal personal Theme for the Ghost publishing platform", + "version": "1.0.1", "private": true, "engines": { "ghost": ">=5.0.0" @@ -46,6 +46,22 @@ "type": "color", "default": "#ffffff" }, + "text_color": { + "type": "color", + "default": "#000000" + }, + "link_of_lottie_json_file": { + "type": "text", + "default": "" + }, + "show_site_title": { + "type": "boolean", + "default": false + }, + "show_site_description": { + "type": "boolean", + "default": false + }, "navigation_layout": { "type": "select", "options": ["Logo on the left", "Logo in the middle", "Stacked"], @@ -80,6 +96,15 @@ "options": ["Classic", "Typographic", "Parallax"], "default": "Classic", "group": "homepage" + }, + "show_search_icon": { + "type": "boolean", + "default": true + }, + "flip_columns": { + "type": "boolean", + "default": false, + "group": "homepage" } } }, @@ -104,4 +129,4 @@ "postcss-easy-import": "4.0.0", "pump": "3.0.0" } -} +} \ No newline at end of file From bc24660642ffd7129c1e040a0d56cea76294775d Mon Sep 17 00:00:00 2001 From: Mohamed Assaleh Date: Sun, 22 Jan 2023 06:21:14 +0100 Subject: [PATCH 2/2] Update index.hbs --- index.hbs | 257 ++++++++++++++---------------------------------------- 1 file changed, 65 insertions(+), 192 deletions(-) diff --git a/index.hbs b/index.hbs index 3211e35..ca34824 100644 --- a/index.hbs +++ b/index.hbs @@ -1,201 +1,74 @@ - - +{{!< default}} - - - - {{meta_title}} - - - {{#is "home"}} - {{#if @site.cover_image}} - +
+ {{#if @custom.flip_columns}} + {{#if @custom.primary_header}} +

{{{@custom.primary_header}}}

{{/if}} - {{/is}} - - - - - - - - {{ghost_head}} - - - - - - - - -
- -
-
-
-
- {{#if @site.logo}} - {{#if @custom.link_of_lottie_json_file}} - - {{#if @custom.show_site_title}} - - {{else}} - - {{#if @custom.show_site_title}} - - {{/if}} - {{else}} - - {{/if}} -
- {{#if @custom.show_search_icon}} - + {{/if}} +
+ {{^if @custom.flip_columns}} + {{#match @custom.header_section_layout "!=" "Typographic profile"}} + {{#if @site.cover_image}} + {{@site.title}} {{/if}} - -
+ {{else}} + {{#if @site.icon}} + {{@site.title}} + {{/if}} + {{/match}} + {{/if}} + +
+
+ {{#if @custom.primary_header}} +

{{{@custom.primary_header}}}

+ {{/if}} + {{#if @custom.secondary_header}} +

{{{@custom.secondary_header}}}

+ {{/if}} + {{#if @site.members_enabled}} + {{#unless @member}} +
+ jamie@example.com + Subscribe +
+ {{/unless}} + {{/if}}
-
+ {{#if @custom.flip_columns}} + {{#match @custom.header_section_layout "!=" "Typographic profile"}} + {{#if @site.cover_image}} + {{@site.title}} + {{/if}} + {{else}} + {{#if @site.icon}} + {{@site.title}} + {{/if}} + {{/match}} + {{/if}} +
+
- {{{body}}} +
+
+ {{#foreach posts}} + {{> "loop"}} + {{/foreach}} +
+
-
-
- - - -
-
- -
- -{{#is "post, page"}} - {{> "pswp"}} -{{/is}} - - - - - -{{ghost_foot}} - - - - \ No newline at end of file +{{#contentFor "body_class"}}{{#match @custom.header_section_layout "Side by side"}} has-side-about{{/match}}{{#match @custom.header_section_layout "Large background"}}{{#if @site.cover_image}} is-head-transparent has-background-about{{else}} has-side-about{{/if}}{{/match}}{{#match @custom.header_section_layout "Typographic profile"}}{{#if @site.icon}} has-typographic-about{{else}} has-side-about{{/if}}{{/match}}{{/contentFor}}