@shift72/core-template 1.9.32 → 1.9.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.32...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.33...HEAD)
4
+
5
+ ## [1.9.33](https://github.com/shift72/core-template/compare/1.9.32...1.9.33)
6
+
7
+ ### Changed
8
+
9
+ - Update font.jet to use cdn.shift72.com for fonts. Preload poppins faces to prevent unwanted pop-ins.
10
+ - Blog post styling tweaks
4
11
 
5
12
  ## [1.9.32](https://github.com/shift72/core-template/compare/1.9.31...1.9.32)
6
13
 
package/kibble.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-template",
3
- "version": "1.9.32",
3
+ "version": "1.9.33",
4
4
  "siteUrl": "https://tvoddemo.shift72.com",
5
5
  "builderVersion": "0.17.10",
6
6
  "defaultLanguage": "en",
@@ -216,5 +216,5 @@
216
216
  "pageSize": 0
217
217
  }
218
218
  ],
219
- "coreTemplateVersion": "1.9.32"
219
+ "coreTemplateVersion": "1.9.33"
220
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.9.32",
3
+ "version": "1.9.33",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -88,10 +88,24 @@
88
88
  }
89
89
  }
90
90
 
91
+ .post-page .post,
92
+ .posts-feed-page .post-preview {
93
+ background-color: var(--post-background-color);
94
+ padding: 20px 25px;
95
+ border-radius: 8px;
96
+ }
97
+
91
98
  .post-page {
99
+ .page-bg {
100
+ filter: blur(8px);
101
+ -webkit-filter: blur(8px);
102
+ }
103
+ .post {
104
+ margin: 1rem 0;
105
+ }
92
106
  comment-section {
93
107
  padding: 0;
94
- margin-top: 3rem;
108
+ margin-top: 2rem;
95
109
  }
96
110
  }
97
111
 
@@ -102,6 +116,7 @@
102
116
 
103
117
  .post-preview-show-more {
104
118
  text-align: center;
119
+ text-decoration: underline;
105
120
  opacity: 0.8;
106
121
  }
107
122
 
@@ -110,6 +125,7 @@
110
125
  overflow: hidden;
111
126
 
112
127
  .post-body {
128
+ margin-bottom: 40px;
113
129
  max-height: var(--post-preview-height);
114
130
  }
115
131
 
@@ -132,8 +148,6 @@
132
148
  display: flex;
133
149
  justify-content: space-between;
134
150
  margin-top: 4rem;
135
- padding-top: 2rem;
136
- border-top: 1px solid #fff5;
137
151
 
138
152
  .posts-pagination-next {
139
153
  margin-left: auto;
@@ -142,8 +142,9 @@
142
142
 
143
143
  --page-reading-column-width: 69ch;
144
144
 
145
- --posts-feed-spacing: 6rem;
146
- --post-preview-height: 300px;
145
+ --posts-feed-spacing: 3rem;
146
+ --post-preview-height: 250px;
147
+ --post-background-color: #030303a0;
147
148
 
148
149
  --post-body-font-weight: 400;
149
150
  --post-body-line-height: 1.55;
@@ -1,4 +1,6 @@
1
1
  {{block font()}}
2
- <link rel="preconnect" href="https://fonts.gstatic.com">
3
- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet">
4
- {{end}}
2
+ <link rel="stylesheet" href="https://cdn.shift72.com/fonts/poppins/index.css">
3
+ <link rel="preload" href="https://cdn.shift72.com/fonts/poppins/files/poppins-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
4
+ <link rel="preload" href="https://cdn.shift72.com/fonts/poppins/files/poppins-latin-300-normal.woff2" as="font" type="font/woff2" crossorigin>
5
+ <link rel="preload" href="https://cdn.shift72.com/fonts/poppins/files/poppins-latin-500-normal.woff2" as="font" type="font/woff2" crossorigin>
6
+ {{end}}
@@ -8,13 +8,15 @@
8
8
  {{range page := pages}}
9
9
  {{yield postPreview(post=page)}}
10
10
  {{end}}
11
-
12
- <div class="posts-pagination">
13
- {{ if len(pagination.PreviousURL) > 0 }}
14
- <a class="posts-pagination-prev" href="{{pagination.PreviousURL}}">{{i18n("posts_pagination_prev")}}</a>
15
- {{end}}
16
- {{ if len(pagination.NextURL) > 0 }}
17
- <a class="posts-pagination-next" href="{{pagination.NextURL}}">{{i18n("posts_pagination_next")}}</a>
11
+ {{ if len(pagination.PreviousURL) > 0 || len(pagination.NextURL) > 0 }}
12
+ <div class="posts-pagination">
13
+ {{ if len(pagination.PreviousURL) > 0 }}
14
+ <a class="posts-pagination-prev" href="{{pagination.PreviousURL}}">{{i18n("posts_pagination_prev")}}</a>
15
+ {{end}}
16
+ {{ if len(pagination.NextURL) > 0 }}
17
+ <a class="posts-pagination-next" href="{{pagination.NextURL}}">{{i18n("posts_pagination_next")}}</a>
18
+ {{end}}
19
+ </div>
18
20
  {{end}}
19
21
  </main>
20
22
 
@@ -32,3 +32,9 @@
32
32
  {{text | raw}}
33
33
  </div>
34
34
  {{end}}
35
+
36
+ {{block postBacktoPostsLink()}}
37
+ <div class="post-back-to-posts">
38
+ <a href="{{routeToPath("/posts/")}}">{{i18n("post_back_to_posts")}}</a>
39
+ </div>
40
+ {{end}}
@@ -10,8 +10,8 @@
10
10
  {{block body()}}
11
11
  <main id="main" class="page post-page">
12
12
  {{yield backgroundImage(containerClass="page-bg", gradientClass="right-gradient", imageClass="page-bg-img", imageSrc=page.Images.Background)}}
13
-
14
- <div class="post">
13
+ {{yield postBacktoPostsLink()}}
14
+ <div class="post">
15
15
  {{yield postTitle(post=page)}}
16
16
  {{yield postMeta(post=page)}}
17
17
  {{yield postHeaderImage(post=page)}}
@@ -21,9 +21,6 @@
21
21
  {{if isEnabled("commenting")}}
22
22
  <comment-section slug="{{page.Slug}}"></comment-section>
23
23
  {{end}}
24
+ {{yield postBacktoPostsLink()}}
24
25
  </main>
25
26
  {{end}}
26
-
27
-
28
-
29
- {{block appBadges()}}{{end}}