about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-01-21 11:13:56 -0800
committerFranck Cuny <franck@fcuny.net>2022-01-21 11:13:56 -0800
commit8d089c7d6d798410bfb50f5d2d30106974a984cf (patch)
treed15f8cca7d42ef1afd6961dbc385e2bece799971 /users/fcuny/notes/layouts
parentnav: drop one item from the menu (diff)
downloadworld-8d089c7d6d798410bfb50f5d2d30106974a984cf.tar.gz
post: change formatting for the date
Diffstat (limited to 'users/fcuny/notes/layouts')
-rw-r--r--users/fcuny/notes/layouts/_default/single.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/fcuny/notes/layouts/_default/single.html b/users/fcuny/notes/layouts/_default/single.html
index 165c568..4f21ded 100644
--- a/users/fcuny/notes/layouts/_default/single.html
+++ b/users/fcuny/notes/layouts/_default/single.html
@@ -5,17 +5,17 @@
 <h1>{{ .Title }}</h1>
 
 <div class="meta">
-  {{- $pub := .Date.Format "2006-01-02" -}}
+  {{- $pub := .Date.Format "Jan 2, 2006" -}}
   {{- $mod := "" -}}
   {{- if (not .GitInfo) }}
-  {{- $mod = .Lastmod.Format "2006-01-02" -}}
+  {{- $mod = .Lastmod.Format "Jan 2, 2006" -}}
   {{ else }}
-  {{- $mod = .Page.GitInfo.CommitDate.Format "2006-01-02" -}}
+  {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}}
   {{ end -}}
   {{ if eq $pub $mod }}
   <div class="meta_date">published {{ $pub }}</div>
   {{ else }}
-  <div class="meta_date">published {{ $pub }}, last modified {{ $mod }}</div>
+  <div class="meta_date">published {{ $pub }} - last modified {{ $mod }}</div>
   {{ end }}
   {{ if .Params.tags }}
   <div>