mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Post date at top
This commit is contained in:
parent
f41928be84
commit
f186161c8c
6 changed files with 30 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 'QED: The Strange Theory of Light and Matter'
|
||||
subtitle: A book by Richard P. Feynman
|
||||
summary: My review of the book ''QED: The Strange Theory of Light and Matter'' by Richard P. Feynman
|
||||
summary: "My review of the book \"QED: The Strange Theory of Light and Matter\" by Richard P. Feynman"
|
||||
type: review
|
||||
date: "2011-10-15T00:00:00Z"
|
||||
emoji: "\U0001F4D6"
|
||||
|
|
|
@ -9,7 +9,13 @@
|
|||
{{ else if hasPrefix . "https://www.goodreads.com/" }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "goodreads" "link" .) }}
|
||||
{{ else if hasPrefix . "https://trakt.tv/" }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "trakt" "link" .) }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "trakt" "link" .) }}
|
||||
{{ else if hasPrefix . "https://medium.com/" }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "medium" "link" .) }}
|
||||
{{ else if hasPrefix . "https://soundcloud.com/" }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "soundcloud" "link" .) }}
|
||||
{{ else if hasPrefix . "https://deliveroo.engineering/" }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "deliveroo" "link" .) }}
|
||||
{{ else }}
|
||||
{{ partial "syndication-ref.html" (dict "type" "" "link" .) }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<time timestamp="{{ . }}" title="{{ time . | dateFormat "2006-01-02 03:04 MST" }}">{{ time . | dateFormat "January 2" }}{{ if ne (time . | dateFormat "2006") (now | dateFormat "2006") }} {{ now | dateFormat "2006" }}{{ end }}</time>
|
||||
<time timestamp="{{ . }}" title="{{ time . | dateFormat "2006-01-02 03:04 MST" }}">{{ time . | dateFormat "January 2" }}{{ if ne (time . | dateFormat "2006") (now | dateFormat "2006") }}, {{ time . | dateFormat "2006" }}{{ end }}</time>
|
|
@ -730,7 +730,7 @@ select:focus + .focus {
|
|||
display:inline-block;
|
||||
}
|
||||
|
||||
time:hover, abbr:hover {
|
||||
abbr:hover {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
<main class="post h-entry">
|
||||
|
||||
<div class="post-info">
|
||||
<p class="reading-time">
|
||||
<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-clock">
|
||||
<circle cx="12" cy="12" r="10"></circle>
|
||||
<polyline points="12 6 12 12 16 14"></polyline>
|
||||
</svg>
|
||||
{{ i18n "readingTime" .Page.ReadingTime }}
|
||||
</p>
|
||||
{{ if eq .Type "timeless" }}
|
||||
{{ $dateType := "published" }}
|
||||
{{ $date := .Date}}
|
||||
{{ if not .Date }}
|
||||
{{ $date = .Lastmod }}
|
||||
{{ $dateType := "updated" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Lastmod }}
|
||||
<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>
|
||||
|
@ -17,9 +17,18 @@
|
|||
<line x1="8" y1="2" x2="8" y2="6"></line>
|
||||
<line x1="3" y1="10" x2="21" y2="10"></line>
|
||||
</svg>
|
||||
Last updated {{ partial "year-relative-date.html" .Lastmod }}
|
||||
{{ if eq $dateType "updated" }}Last updated {{ end }}
|
||||
{{ if eq $dateType "published" }}Published on {{ end }}
|
||||
{{ partial "year-relative-date.html" $date }}
|
||||
</p>
|
||||
{{ end }}
|
||||
<p class="reading-time">
|
||||
<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-clock">
|
||||
<circle cx="12" cy="12" r="10"></circle>
|
||||
<polyline points="12 6 12 12 16 14"></polyline>
|
||||
</svg>
|
||||
{{ i18n "readingTime" .Page.ReadingTime }}
|
||||
</p>
|
||||
<p class="author h-card" aria-hidden="true">
|
||||
<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-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
|
||||
<a href="{{ .Site.BaseURL | absURL }}" rel="author" class="p-author u-url">{{ .Site.Author.name }}</a>
|
||||
|
@ -104,12 +113,6 @@
|
|||
{{ end }}
|
||||
|
||||
{{ if .Lastmod }}
|
||||
{{ $dateType := "published" }}
|
||||
{{ $date := .Date}}
|
||||
{{ if not .Date }}
|
||||
{{ $date = .Lastmod }}
|
||||
{{ $dateType := "updated" }}
|
||||
{{ 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>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue