Use isoDate fallback in recent posts widget times
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
||||||
Liked {{ _likedUrl | replace("https://", "") | truncate(40) }}
|
Liked {{ _likedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
{{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
||||||
Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }}
|
Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1">
|
||||||
Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }}
|
Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title }}
|
{{ post.data.title }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
||||||
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
||||||
Liked {{ likedUrl | replace("https://", "") | truncate(40) }}
|
Liked {{ likedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
{{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
||||||
Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }}
|
Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1">
|
||||||
Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }}
|
Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title }}
|
{{ post.data.title }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
||||||
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
||||||
Liked {{ _likedUrl | replace("https://", "") | truncate(40) }}
|
Liked {{ _likedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
{{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
||||||
Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }}
|
Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1">
|
||||||
Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }}
|
Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title }}
|
{{ post.data.title }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
||||||
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-red-600 dark:text-red-400 hover:underline break-all line-clamp-1">
|
||||||
Liked {{ likedUrl | replace("https://", "") | truncate(40) }}
|
Liked {{ likedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-amber-600 dark:text-amber-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
{{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-green-600 dark:text-green-400 hover:underline break-all line-clamp-1">
|
||||||
Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }}
|
Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1">
|
||||||
Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }}
|
Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline line-clamp-1">
|
||||||
{{ post.data.title }}
|
{{ post.data.title }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
<a href="{{ post.url }}" class="text-sm text-teal-600 dark:text-teal-400 hover:underline line-clamp-1">
|
||||||
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
{{ post.templateContent | striptags | truncate(50) or "Note" }}
|
||||||
</a>
|
</a>
|
||||||
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ post.data.published }}">
|
<time class="text-xs text-surface-600 dark:text-surface-400 block font-mono" datetime="{{ (post.data.published or post.date) | isoDate }}">
|
||||||
{{ (post.data.published or post.date) | dateDisplay }}
|
{{ (post.data.published or post.date) | dateDisplay }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user