Skip to content

Commit df23dce

Browse files
committed
Merge branch 'v.0.46.5' of github.com:getPublii/Publii into v.0.46.5
2 parents d130073 + 8ff0825 commit df23dce

File tree

3 files changed

+120
-2
lines changed

3 files changed

+120
-2
lines changed

app/default-files/default-themes/simple/config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Simple",
3-
"version": "3.1.2.0",
3+
"version": "3.1.3.0",
44
"author": "TidyCustoms <https://tidycustoms.net/>",
55
"menus": {
66
"mainMenu": {
@@ -43,7 +43,8 @@
4343
"customSearch": true,
4444
"customComments": true,
4545
"embedConsents": true,
46-
"pages": true
46+
"pages": true,
47+
"postsPage": true
4748
},
4849
"pageTemplates": {
4950
"empty": "Empty container"
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{{> head}}
2+
{{> navbar}}
3+
<main class="posts">
4+
<div class="hero hero--noimage">
5+
<header class="hero__content {{#checkIf @config.custom.alignHero '==' "center" }}hero__content--centered{{/checkIf}}">
6+
<div class="wrapper">
7+
<h1>
8+
{{ translate 'postPrefix.title' }}
9+
</h1>
10+
<p class="page__desc">
11+
{{ translate "postPrefix.description" }}
12+
</p>
13+
</div>
14+
</header>
15+
</div>
16+
<div class="wrapper feed">
17+
{{#each posts}}
18+
<article class="feed__item {{#checkIf @config.custom.alignFeed '==' "center" }}feed__item--centered{{/checkIf}}">
19+
{{#if @config.custom.feedFeaturedImage}}
20+
{{#featuredImage}}
21+
{{#if url}}
22+
<figure class="feed__image">
23+
<img
24+
src="{{url}}"
25+
{{#if @config.site.responsiveImages}}
26+
{{responsiveImageAttributes 'featuredImage' srcset.feed sizes.feed}}
27+
{{/if}}
28+
{{ lazyload "lazy" }}
29+
height="{{height}}"
30+
width="{{width}}"
31+
alt="{{alt}}">
32+
</figure>
33+
{{/if}}
34+
{{/featuredImage}}
35+
{{/if}}
36+
<div class="feed__content">
37+
<header>
38+
{{#checkIfAny @config.custom.feedAvatar @config.custom.feedAuthor @config.custom.feedDate}}
39+
<div class="feed__meta">
40+
{{#author}}
41+
{{#if @config.custom.feedAvatar}}
42+
{{#if avatar}}
43+
{{#if @config.custom.feedAuthor}}
44+
<img
45+
src="{{avatarImage.url}}"
46+
{{ lazyload "lazy" }}
47+
height="{{avatarImage.height}}"
48+
width="{{avatarImage.width}}"
49+
class="feed__author-thumb"
50+
alt="">
51+
{{else}}
52+
<a href="{{url}}" class="feed__author-link">
53+
<img
54+
src="{{avatarImage.url}}"
55+
{{ lazyload "lazy" }}
56+
height="{{avatarImage.height}}"
57+
width="{{avatarImage.width}}"
58+
class="feed__author-thumb"
59+
alt="{{avatarImage.alt}}">
60+
</a>
61+
{{/if}}
62+
{{/if}}
63+
{{/if}}
64+
{{#if @config.custom.feedAuthor}}
65+
<a href="{{url}}" class="feed__author">{{name}}</a>
66+
{{/if}}
67+
{{/author}}
68+
69+
{{#if @config.custom.feedDate}}
70+
{{#checkIf @config.custom.feedDateType '==' "published" }}
71+
<time datetime="{{date createdAt 'YYYY-MM-DDTHH:mm'}}" class="feed__date">
72+
{{#checkIf @config.custom.formatDate '!=' 'custom'}}
73+
{{date createdAt @config.custom.formatDate}}
74+
{{else}}
75+
{{date createdAt @config.custom.formatDateCustom}}
76+
{{/checkIf}}
77+
</time>
78+
{{/checkIf}}
79+
{{#checkIf @config.custom.feedDateType '==' "modified" }}
80+
<time datetime="{{date modifiedAt 'YYYY-MM-DDTHH:mm'}}" class="feed__date">
81+
{{#checkIf @config.custom.formatDate '!=' 'custom'}}
82+
{{date modifiedAt @config.custom.formatDate}}
83+
{{else}}
84+
{{date modifiedAt @config.custom.formatDateCustom}}
85+
{{/checkIf}}
86+
</time>
87+
{{/checkIf}}
88+
{{/if}}
89+
</div>
90+
{{/checkIfAny}}
91+
<h2 class="feed__title">
92+
<a href="{{url}}">
93+
{{title}}
94+
</a>
95+
</h2>
96+
</header>
97+
{{#if hasCustomExcerpt}}
98+
{{{ excerpt }}}
99+
{{else}}
100+
<p>{{{ excerpt }}}</p>
101+
{{/if}}
102+
{{#if @config.custom.feedtReadMore}}
103+
<a href="{{url}}" class="readmore feed__readmore">
104+
{{ translate 'post.readMore' }}</a>
105+
{{/if}}
106+
</div>
107+
</article>
108+
{{/each}}
109+
{{> pagination}}
110+
</div>
111+
</main>
112+
{{> footer}}

app/default-files/default-themes/simple/simple.lang.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"shareIt": "Share It"
4444
},
4545

46+
"postPrefix": {
47+
"title": "Insights and Updates",
48+
"description": "Discover our latest posts, insights, and updates on what we do and what we care about."
49+
},
50+
4651
"page": {
4752
"childPages": "Child pages"
4853
},

0 commit comments

Comments
 (0)