ultimate-jekyll-manager 1.9.10 → 1.9.12
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/dist/assets/css/pages/admin/calendar/index.scss +7 -0
- package/dist/assets/js/pages/admin/calendar/calendar-renderer.js +23 -1
- package/dist/assets/themes/newsflash/css/components/_cards.scss +0 -5
- package/dist/defaults/dist/_layouts/themes/newsflash/frontend/pages/blog/post.html +1 -0
- package/dist/defaults/dist/_layouts/themes/newsflash/frontend/pages/index.html +2 -0
- package/package.json +1 -1
|
@@ -45,6 +45,13 @@ $campaign-push-color: #4CAF50;
|
|
|
45
45
|
min-width: 200px;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.calendar-toolbar-utc-clock {
|
|
49
|
+
display: block;
|
|
50
|
+
font-size: 0.7rem;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
color: var(--bs-secondary-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
.calendar-toolbar-views .btn {
|
|
49
56
|
padding: 0.25rem 0.75rem;
|
|
50
57
|
font-size: 0.8rem;
|
|
@@ -57,6 +57,7 @@ export default class CalendarRenderer {
|
|
|
57
57
|
</div>
|
|
58
58
|
<div class="calendar-toolbar-period">
|
|
59
59
|
${core.formatPeriodLabel()}
|
|
60
|
+
<span class="calendar-toolbar-utc-clock">${this._formatUTCClock()}</span>
|
|
60
61
|
</div>
|
|
61
62
|
<div class="calendar-toolbar-views btn-group" role="group" aria-label="Calendar view">
|
|
62
63
|
${VIEW_MODES.map((mode) => `
|
|
@@ -528,11 +529,16 @@ export default class CalendarRenderer {
|
|
|
528
529
|
// ============================================
|
|
529
530
|
_startNowLine() {
|
|
530
531
|
clearInterval(this._nowLineInterval);
|
|
532
|
+
this._updateUTCClock();
|
|
531
533
|
if (this.core.viewMode !== 'day' && this.core.viewMode !== 'week' && this.core.viewMode !== 'month') {
|
|
534
|
+
this._nowLineInterval = setInterval(() => this._updateUTCClock(), 60000);
|
|
532
535
|
return;
|
|
533
536
|
}
|
|
534
537
|
this._updateNowLine();
|
|
535
|
-
this._nowLineInterval = setInterval(() =>
|
|
538
|
+
this._nowLineInterval = setInterval(() => {
|
|
539
|
+
this._updateNowLine();
|
|
540
|
+
this._updateUTCClock();
|
|
541
|
+
}, 60000);
|
|
536
542
|
}
|
|
537
543
|
|
|
538
544
|
_updateNowLine() {
|
|
@@ -767,6 +773,22 @@ export default class CalendarRenderer {
|
|
|
767
773
|
return hours;
|
|
768
774
|
}
|
|
769
775
|
|
|
776
|
+
_formatUTCClock() {
|
|
777
|
+
const now = new Date();
|
|
778
|
+
const h = now.getUTCHours();
|
|
779
|
+
const m = now.getUTCMinutes();
|
|
780
|
+
const period = h >= 12 ? 'p' : 'a';
|
|
781
|
+
const display = h === 0 ? 12 : h > 12 ? h - 12 : h;
|
|
782
|
+
return `${display}:${String(m).padStart(2, '0')}${period} UTC`;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
_updateUTCClock() {
|
|
786
|
+
const $clock = this.$toolbar.querySelector('.calendar-toolbar-utc-clock');
|
|
787
|
+
if ($clock) {
|
|
788
|
+
$clock.textContent = this._formatUTCClock();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
770
792
|
_formatTime(timeStr) {
|
|
771
793
|
if (!timeStr) { return ''; }
|
|
772
794
|
const [h, m] = timeStr.split(':').map(Number);
|
|
@@ -24,14 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// Cards that are links (editorial story cards) lift on hover
|
|
28
27
|
a.card {
|
|
29
28
|
color: inherit;
|
|
30
29
|
text-decoration: none;
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
transform: translateY(-5px);
|
|
34
|
-
}
|
|
35
30
|
}
|
|
36
31
|
|
|
37
32
|
// Framed images inside hovered cards/links zoom slowly (cinematic pan feel)
|
|
@@ -232,6 +232,7 @@ newsletter:
|
|
|
232
232
|
<h3 class="h5 my-2">{{ post.post.title }}</h3>
|
|
233
233
|
<p class="small text-body-secondary mb-0">
|
|
234
234
|
<b class="text-body">{%- uj_member post.post.author, "name" -%}</b>
|
|
235
|
+
· {{ post.date | date: "%b %d, %Y" }}
|
|
235
236
|
· {% uj_readtime post.content %} min read
|
|
236
237
|
</p>
|
|
237
238
|
</a>
|
|
@@ -228,6 +228,7 @@ cta:
|
|
|
228
228
|
<h3 class="h5 my-2">{{ post.post.title }}</h3>
|
|
229
229
|
<p class="small text-body-secondary mb-0">
|
|
230
230
|
<b class="text-body">{%- uj_member post.post.author, "name" -%}</b>
|
|
231
|
+
· {{ post.date | date: "%b %d, %Y" }}
|
|
231
232
|
· {% uj_readtime post.content %} min read
|
|
232
233
|
</p>
|
|
233
234
|
</a>
|
|
@@ -470,6 +471,7 @@ cta:
|
|
|
470
471
|
<h3 class="h5 my-2">{{ post.post.title }}</h3>
|
|
471
472
|
<p class="small text-body-secondary mb-0">
|
|
472
473
|
<b class="text-body">{%- uj_member post.post.author, "name" -%}</b>
|
|
474
|
+
· {{ post.date | date: "%b %d, %Y" }}
|
|
473
475
|
· {% uj_readtime post.content %} min read
|
|
474
476
|
</p>
|
|
475
477
|
</a>
|