Skip to content

Commit 91a2ec8

Browse files
authored
Merge pull request #599 from shift72/blog-post-feature
Add blog posts feature
2 parents af352ab + 2f43bb7 commit 91a2ec8

16 files changed

Lines changed: 331 additions & 17 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.31...HEAD)
44

5+
### Added
6+
7+
Blog posts and feed. A /posts/ route has been added to kibble.json for the feed,
8+
but it shouldn't affect sites that don't actively use the posts feature and link
9+
to it from the nav.
10+
511
## [1.9.31](https://github.com/shift72/core-template/compare/1.9.29...1.9.31)
612

713
### Added

kibble.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.9.31",
44
"siteUrl": "https://tvoddemo.shift72.com",
55
"builderVersion": "0.17.8",
6+
"builderVersion": "0.17.9",
67
"defaultLanguage": "en",
78
"languages": {
89
"ar": {
@@ -173,6 +174,23 @@
173174
"datasource": "PageIndex",
174175
"pageSize": 0
175176
},
177+
{
178+
"name": "postIndex",
179+
"firstPageUrlPath": "/posts/",
180+
"urlPath": "/posts/:index/",
181+
"templatePath": "templates/page/posts-feed.jet",
182+
"datasource": "PageIndex",
183+
"options": {
184+
"pageTypes": [
185+
"post"
186+
],
187+
"sortBy": [
188+
"published_date:desc",
189+
"title:asc"
190+
]
191+
},
192+
"pageSize": 5
193+
},
176194
{
177195
"name": "bundleItem",
178196
"urlPath": "/bundle/:slug/",

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"postcss-cli": "^11.0.1",
5454
"rollup": "^2.23.0",
5555
"rollup-plugin-terser": "^6.1.0",
56-
"s72-kibble": "^0.17.8",
56+
"s72-kibble": "^0.17.9",
5757
"sass": "^1.36.0"
5858
},
5959
"devDependencies": {

site/en_AU.all.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,5 +1745,14 @@
17451745
},
17461746
"wcag_aria_label_social_bluesky": {
17471747
"other": "Visit us on Bluesky"
1748+
},
1749+
"posts_pagination_next": {
1750+
"other": "Older posts"
1751+
},
1752+
"posts_pagination_prev": {
1753+
"other": "Newer posts"
1754+
},
1755+
"post_preview_show_more": {
1756+
"other": "Read more"
17481757
}
1749-
}
1758+
}

site/styles/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "sass:math";
1+
@use 'sass:math';
22

33
label {
44
@include subtitle-1-style;

site/styles/_legacy.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "sass:math";
1+
@use 'sass:math';
22

33
html {
44
height: 100%;

site/styles/_meta-detail.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@
169169
margin-right: 20px;
170170
width: 110px;
171171

172-
&.poster-image {
173-
margin-bottom: 0px;
174-
}
175-
176172
@include media-breakpoint-up(xs) {
177173
width: 155px;
178174
}
@@ -181,6 +177,10 @@
181177
width: 208px;
182178
}
183179

180+
&.poster-image {
181+
margin-bottom: 0;
182+
}
183+
184184
.live {
185185
display: none;
186186
}

site/styles/_meta-sub-item.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
}
111111
}
112112

113-
114113
s72-show-hide-switcher {
115114
display: block;
116115
margin-bottom: 15px;

site/styles/_pages.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
.curated-page,
3939
.library-page,
4040
.content-page,
41+
.post-page,
42+
.posts-feed-page,
4143
.form-page,
4244
.wishlist-page,
4345
.search-page,

0 commit comments

Comments
 (0)