Fixed post list author and cta visbility issues

This commit is contained in:
Sodbileg Gansukh 2023-09-12 22:03:52 +08:00
parent 80c374d832
commit a9ef180756
4 changed files with 13 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1412,9 +1412,14 @@ Search LOGO Login Subscribe
/* ---------------------------------------------------------- */ /* ---------------------------------------------------------- */
.gh-cta { .gh-cta {
display: none;
margin-top: max(4vw, 40px); margin-top: max(4vw, 40px);
} }
.gh-header + .gh-cta {
display: block;
}
.gh-cta-inner { .gh-cta-inner {
position: relative; position: relative;
overflow: hidden; overflow: hidden;

View File

@ -22,20 +22,20 @@
{{#match @custom.header_style "Highlight"}} {{#match @custom.header_style "Highlight"}}
{{#match posts.length ">=" 10}} {{#match posts.length ">=" 10}}
{{#if @custom.highlight_featured_posts}} {{#if @custom.highlight_featured_posts}}
{{#get "posts" limit="16"}} {{#get "posts" include="authors" limit="16"}}
{{#foreach posts from="5" limit="12"}} {{#foreach posts from="5" limit="12"}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}
{{/get}} {{/get}}
{{else}} {{else}}
{{#get "posts" limit="22"}} {{#get "posts" include="authors" limit="22"}}
{{#foreach posts from="11" limit="12"}} {{#foreach posts from="11" limit="12"}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}
{{/get}} {{/get}}
{{/if}} {{/if}}
{{else}} {{else}}
{{#get "posts" limit="12"}} {{#get "posts" include="authors" limit="12"}}
{{#foreach posts}} {{#foreach posts}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}
@ -43,20 +43,20 @@
{{/match}} {{/match}}
{{else match @custom.header_style "Magazine"}} {{else match @custom.header_style "Magazine"}}
{{#match posts.length ">=" 7}} {{#match posts.length ">=" 7}}
{{#get "posts" limit="19"}} {{#get "posts" include="authors" limit="19"}}
{{#foreach posts from="8" limit="12"}} {{#foreach posts from="8" limit="12"}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}
{{/get}} {{/get}}
{{else}} {{else}}
{{#get "posts" limit="12"}} {{#get "posts" include="authors" limit="12"}}
{{#foreach posts}} {{#foreach posts}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}
{{/get}} {{/get}}
{{/match}} {{/match}}
{{else}} {{else}}
{{#get "posts" limit="12"}} {{#get "posts" include="authors" limit="12"}}
{{#foreach posts}} {{#foreach posts}}
{{> "post-card"}} {{> "post-card"}}
{{/foreach}} {{/foreach}}