mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Timestamps & post info
This commit is contained in:
parent
2f0dbc2230
commit
fd8ba0bdd2
5 changed files with 52 additions and 49 deletions
|
@ -11,7 +11,7 @@ canonifyURLs = true
|
|||
relativeURLs = true
|
||||
|
||||
enableRobotsTXT = true
|
||||
enableGitInfo = false
|
||||
enableGitInfo = true
|
||||
enableEmoji = true
|
||||
disableRSS = false
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
---
|
||||
title: Oops!
|
||||
emoji: 😰
|
||||
type: site-infra
|
||||
_build:
|
||||
list: never
|
||||
---
|
||||
|
||||
Something went wrong while trying to register your donation. If you weren't using the form on the [thanks page](../thanks/) then please try there, otherwise please [reach out to me by email](../standing-invitation/).
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
---
|
||||
title: Thank you!
|
||||
emoji: 🙇♂️
|
||||
type: site-infra
|
||||
_build:
|
||||
list: never
|
||||
---
|
||||
|
||||
Thank you so much! It makes me _enormously_ happy that you're appreciating my work, and doubly so that you're willing to share what you have with others on my behalf.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Friends online"
|
||||
emoji: 🫶
|
||||
date: 2023-03-01T09:12:37-03:00
|
||||
draft: false
|
||||
type: timeless
|
||||
---
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
|
||||
<hr />
|
||||
|
||||
{{ if ne .Type "site-infra" }}
|
||||
<div class="post-info">
|
||||
{{ partial "tags.html" .Params.tags }}
|
||||
{{ partial "series-tags.html" . }}
|
||||
|
@ -85,6 +86,11 @@
|
|||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Lastmod }}
|
||||
{{ $date := .Date}}
|
||||
{{ if not .Date }}
|
||||
{{ $date = .Lastmod }}
|
||||
{{ end }}
|
||||
<p>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar">
|
||||
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
|
||||
|
@ -92,24 +98,15 @@
|
|||
<line x1="8" y1="2" x2="8" y2="6"></line>
|
||||
<line x1="3" y1="10" x2="21" y2="10"></line>
|
||||
</svg>
|
||||
<date datetime="{{ dateFormat "2006-01-02T15:04:05-0700" .Date }}" class="dt-published">
|
||||
<date datetime="{{ dateFormat "2006-01-02T15:04:05-0700" $date }}" class="dt-published">
|
||||
{{ if .Site.Params.dateformNumTime }}
|
||||
{{ dateFormat .Site.Params.dateformNumTime .Date }}
|
||||
{{ dateFormat .Site.Params.dateformNumTime $date }}
|
||||
{{ else }}
|
||||
{{ dateFormat "2006-01-02 15:04" .Date }}
|
||||
{{ dateFormat "2006-01-02 15:04" $date }}
|
||||
{{ end }}
|
||||
</date>
|
||||
|
||||
{{ if .Lastmod }}
|
||||
{{ if not (eq .Lastmod .Date )}}
|
||||
{{ if .Site.Params.dateformNumTime }}
|
||||
({{ i18n "lastModified" }}: {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local }})
|
||||
{{ else }}
|
||||
({{ i18n "lastModified" }}: {{ dateFormat "2006-01-02 15:04" .Lastmod.Local }})
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
@ -118,6 +115,7 @@
|
|||
</div>
|
||||
|
||||
{{ partial "pagination-single.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
<script src="/js/mermaid.js"></script>
|
||||
|
|
Loading…
Reference in a new issue