mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Layout settings cleanup
This commit is contained in:
parent
6439992db2
commit
5fc101fb2c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -657,7 +657,7 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
|||||||
font-family: var(--font-sans);
|
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;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
<nav class="gh-head-inner inner">
|
<nav class="gh-head-inner inner">
|
||||||
|
|
||||||
<div class="gh-head-brand">
|
<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}}">
|
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
|
||||||
{{#if @site.logo}}
|
{{#if @site.logo}}
|
||||||
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
||||||
@ -33,7 +32,6 @@
|
|||||||
{{@site.title}}
|
{{@site.title}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
|
||||||
<a class="gh-burger" role="button">
|
<a class="gh-burger" role="button">
|
||||||
<div class="gh-burger-box">
|
<div class="gh-burger-box">
|
||||||
<div class="gh-burger-inner"></div>
|
<div class="gh-burger-inner"></div>
|
||||||
|
21
package.json
21
package.json
@ -125,29 +125,14 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"first_post_layout": {
|
|
||||||
"type": "select",
|
|
||||||
"options": [
|
|
||||||
"Large card",
|
|
||||||
"Full-width card",
|
|
||||||
"None"
|
|
||||||
],
|
|
||||||
"default": "Large card",
|
|
||||||
"group": "homepage"
|
|
||||||
},
|
|
||||||
"feed_layout": {
|
"feed_layout": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Dynamic grid",
|
"Classic",
|
||||||
"Simple grid",
|
"Grid",
|
||||||
"List"
|
"List"
|
||||||
],
|
],
|
||||||
"default": "Dynamic grid",
|
"default": "Classic",
|
||||||
"group": "homepage"
|
|
||||||
},
|
|
||||||
"keep_card_thumbnail_ratio": {
|
|
||||||
"type": "boolean",
|
|
||||||
"default": false,
|
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"color_scheme": {
|
"color_scheme": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{!-- This is a partial file used to generate a post "card"
|
{{!-- This is a partial file used to generate a post "card"
|
||||||
which templates loop over to generate a list of posts. --}}
|
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}}
|
{{#if feature_image}}
|
||||||
<a class="post-card-image-link" href="{{url}}">
|
<a class="post-card-image-link" href="{{url}}">
|
||||||
@ -42,6 +42,6 @@ which templates loop over to generate a list of posts. --}}
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>{{!--/.post-card-content--}}
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
Reference in New Issue
Block a user