Layout settings cleanup

This commit is contained in:
Sodbileg Gansukh
2022-05-20 21:49:12 +08:00
parent 6439992db2
commit 5fc101fb2c
6 changed files with 15 additions and 32 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -657,7 +657,7 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
font-family: var(--font-sans);
}
.post-card:not(.post-card-large):not(.post-card-full):not(.dynamic) .post-card-excerpt {
.post-card:not(.post-card-large):not(.post-card-full):not(.dynamic):not(.no-image) .post-card-excerpt {
display: none;
}
+7 -9
View File
@@ -25,15 +25,13 @@
<nav class="gh-head-inner inner">
<div class="gh-head-brand">
{{#if @custom.site_logo_in_main_navigation}}
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}" />
{{else}}
{{@site.title}}
{{/if}}
</a>
{{/if}}
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}" />
{{else}}
{{@site.title}}
{{/if}}
</a>
<a class="gh-burger" role="button">
<div class="gh-burger-box">
<div class="gh-burger-inner"></div>
+3 -18
View File
@@ -125,29 +125,14 @@
"default": false,
"group": "homepage"
},
"first_post_layout": {
"type": "select",
"options": [
"Large card",
"Full-width card",
"None"
],
"default": "Large card",
"group": "homepage"
},
"feed_layout": {
"type": "select",
"options": [
"Dynamic grid",
"Simple grid",
"Classic",
"Grid",
"List"
],
"default": "Dynamic grid",
"group": "homepage"
},
"keep_card_thumbnail_ratio": {
"type": "boolean",
"default": false,
"default": "Classic",
"group": "homepage"
},
"color_scheme": {
+2 -2
View File
@@ -1,7 +1,7 @@
{{!-- This is a partial file used to generate a post "card"
which templates loop over to generate a list of posts. --}}
<article class="post-card {{post_class}}{{#match @custom.feed_layout "!=" "List"}}{{#is "home"}}{{^is "paged"}}{{#has index="0"}}{{#match @custom.first_post_layout "Large card"}} post-card-large{{/match}}{{#match @custom.first_post_layout "Full-width card"}} post-card-full{{/match}}{{/has}}{{#match @custom.feed_layout "Dynamic grid"}}{{#match @custom.first_post_layout "None"}}{{#has index="0,1"}} dynamic{{/has}}{{else}}{{#has index="1,2"}} dynamic{{/has}}{{/match}}{{/match}}{{/is}}{{/is}}{{else}}{{#is "home"}} post-card-large{{/is}}{{/match}}{{#if @custom.keep_card_thumbnail_ratio}} keep-ratio{{/if}}">
<article class="post-card {{post_class}}{{#match @custom.feed_layout "Classic"}}{{#is "home"}}{{#has index="0"}} post-card-large{{/has}}{{#has index="1,2"}} dynamic{{/has}}{{/is}}{{/match}}{{#match @custom.feed_layout "Grid"}} keep-ratio{{/match}}{{#match @custom.feed_layout "List"}}{{#is "home"}} post-card-large{{/is}}{{/match}}">
{{#if feature_image}}
<a class="post-card-image-link" href="{{url}}">
@@ -42,6 +42,6 @@ which templates loop over to generate a list of posts. --}}
{{/if}}
</footer>
</div>{{!--/.post-card-content--}}
</div>
</article>