From 6bc8c8092c97d49ebc20c19fdc40648873f6b236 Mon Sep 17 00:00:00 2001 From: m_assaleh Date: Sun, 22 Jan 2023 02:24:02 +0100 Subject: [PATCH] =?UTF-8?q?New=20update:=201.0.1=20*=20Updated=20the=20the?= =?UTF-8?q?me=E2=80=99s=20description=20*=20Added=20more=20custom=20settin?= =?UTF-8?q?gs=201)=20text=5Fcolor:=20Option=20to=20choose=20the=20website?= =?UTF-8?q?=E2=80=99s=20font=20color=202)=20link=5Fof=5Flottie=5Fjson=5Ffi?= =?UTF-8?q?le:=20Option=20to=20upload=20a=20Lottie=20file=20as=20an=20anim?= =?UTF-8?q?ated=20logo=203)=20show=5Fsite=5Ftitle:=20Option=20to=20show=20?= =?UTF-8?q?the=20website=E2=80=99s=20title=20beside=20the=20logo=204)=20sh?= =?UTF-8?q?ow=5Fdescription:=20Option=20to=20show=20the=20website=E2=80=99?= =?UTF-8?q?s=20description=20beside=20the=20logo=205)=20show=5Fsearch=5Fic?= =?UTF-8?q?on:=20Option=20to=20hide=20the=20search=20icon=206)=20flip=5Fco?= =?UTF-8?q?lumns:=20Option=20to=20flip=20the=20main=20columns=20in=20the?= =?UTF-8?q?=20side-by-side=20layout=20*=20Added=20the=20meta=20tag=20theme?= =?UTF-8?q?-color=20and=20set=20its=20value=20to=20match=20the=20accent=20?= =?UTF-8?q?color=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