Skip to content

Commit

Permalink
refactor: Grouped post listing options for improved clarity and under…
Browse files Browse the repository at this point in the history
…standing
  • Loading branch information
bobmitro committed Mar 30, 2023
1 parent 053b395 commit 72afdf6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 51 deletions.
83 changes: 34 additions & 49 deletions app/default-files/default-themes/simple/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Simple",
"version": "2.6.0.0",
"version": "2.6.1.0",
"author": "TidyCustoms <https://tidycustoms.net/>",
"menus": {
"mainMenu": {
Expand Down Expand Up @@ -141,107 +141,92 @@
"name": "separator",
"type": "separator",
"label": "",
"group": "Layout",
"size": "small",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"group": "Post list",
"note": "The Post list section offers a range of options for managing the post list displayed on the front page, tag and author pages. In this area, you can easily enable or disable elements such as avatars, dates, or other elements.",
"size": ""
},

{
"name": "separator",
"type": "separator",
"label": "Front page",
"group": "Post list",
"size": "small"
},
{
"name": "frontFeaturedImage",
"group": "Layout",
"group": "Post list",
"label": "Featured image",
"value": false,
"type": "checkbox",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"type": "checkbox"
},
{
"name": "frontAuthor",
"group": "Layout",
"group": "Post list",
"label": "Author name",
"value": true,
"type": "checkbox",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"type": "checkbox"
},
{
"name": "frontAvatar",
"group": "Layout",
"group": "Post list",
"label": "Author avatar",
"value": true,
"type": "checkbox",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"type": "checkbox"
},
{
"name": "frontDate",
"group": "Layout",
"group": "Post list",
"label": "Date",
"value": true,
"type": "checkbox",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"type": "checkbox"
},
{
"name": "frontReadMore",
"group": "Layout",
"group": "Post list",
"label": "Read more button",
"value": true,
"type": "checkbox",
"dependencies": [{
"field": "frontSource",
"value": "default"
}]
"type": "checkbox"
},

{
"name": "separator",
"type": "separator",
"label": "Tag Page",
"group": "Layout",
"group": "Post list",
"size": "big"
},
{
"name": "tagFeaturedImage",
"group": "Layout",
"group": "Post list",
"label": "Featured image",
"value": false,
"type": "checkbox"
},
{
"name": "tagAuthor",
"group": "Layout",
"group": "Post list",
"label": "Author name",
"value": true,
"type": "checkbox"
},
{
"name": "tagAvatar",
"group": "Layout",
"group": "Post list",
"label": "Author avatar",
"value": true,
"type": "checkbox"
},
{
"name": "tagDate",
"group": "Layout",
"group": "Post list",
"label": "Date",
"value": true,
"type": "checkbox"
},
{
"name": "tagReadMore",
"group": "Layout",
"group": "Post list",
"label": "Read more button",
"value": true,
"type": "checkbox"
Expand Down Expand Up @@ -271,40 +256,40 @@
"name": "separator",
"type": "separator",
"label": "Author page",
"group": "Layout",
"group": "Post list",
"size": "big"
},
{
"name": "authorFeaturedImage",
"group": "Layout",
"group": "Post list",
"label": "Featured image",
"value": false,
"type": "checkbox"
},
{
"name": "authorAuthor",
"group": "Layout",
"group": "Post list",
"label": "Author name",
"value": false,
"type": "checkbox"
},
{
"name": "authorAvatar",
"group": "Layout",
"group": "Post list",
"label": "Author avatar",
"value": false,
"type": "checkbox"
},
{
"name": "authorDate",
"group": "Layout",
"group": "Post list",
"label": "Date",
"value": true,
"type": "checkbox"
},
{
"name": "authorReadMore",
"group": "Layout",
"group": "Post list",
"label": "Read more button",
"value": true,
"type": "checkbox"
Expand Down
2 changes: 1 addition & 1 deletion app/default-files/default-themes/simple/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<a href="{{url}}" rel="author">{{name}}</a>
</h3>
{{#if description}}
<div class="bio__desc">
<div class="bio__desc">
{{{description}}}
</div>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion app/default-files/default-themes/simple/tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<img
src="{{url}}"
{{#if @config.site.responsiveImages}}
{{responsiveImageAttributes 'tagImage' srcset sizes}}
{{responsiveImageAttributes 'tagImage' srcset sizes}}
{{/if}}
{{ lazyload "eager" }}
height="{{height}}"
Expand Down

0 comments on commit 72afdf6

Please sign in to comment.