From 3b5b934a6c5e9b4876597bead7e9b0ce28528aa0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= <marek@necada.org>
Date: Wed, 6 Apr 2022 14:31:04 +0300
Subject: [PATCH] Fork, CE-style dates

---
 go.mod                         | 2 +-
 layouts/_default/category.html | 2 +-
 layouts/_default/list.html     | 2 +-
 layouts/_default/single.html   | 2 +-
 layouts/_default/taxonomy.html | 2 +-
 layouts/index.html             | 5 ++---
 6 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/go.mod b/go.mod
index 15c54ce..2b89e4e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module github.com/alexandrevicenzi/soho
+module github.com/texnokrates/soho
 
 go 1.12
diff --git a/layouts/_default/category.html b/layouts/_default/category.html
index d885ed1..74f46b0 100644
--- a/layouts/_default/category.html
+++ b/layouts/_default/category.html
@@ -5,7 +5,7 @@
   <li>
     <div class="flex">
       <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
-      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
+      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
     </div>
   </li>
   {{- end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 917ca38..2623ca0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,7 +6,7 @@
     <div class="flex">
       <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
       {{ if eq .Kind "page" }}
-      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
+      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
       {{ end }}
     </div>
   </li>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3d46668..e9cea46 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,7 +5,7 @@
 
   {{ if ne .Type "page" -}}
   <div class="post-date">
-    <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">&middot; {{ .ReadingTime }} min read</span>
+    <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
   </div>
   {{- end }}
 
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 8e4521f..a9847f2 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -5,7 +5,7 @@
   <li>
     <div class="flex">
       <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
-      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
+      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1., 2006" }}</time>
     </div>
   </li>
   {{- end }}
diff --git a/layouts/index.html b/layouts/index.html
index f66109b..9b89434 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -10,15 +10,14 @@
         </h1>
 
         <div class="post-date">
-          <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> &middot; {{ .ReadingTime }} min read
-        </div>
+          <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>        </div>
 
         <div>
           {{ .Summary }}
         </div>
 
         <div class="read-more-link">
-          <a href="{{ .Permalink }}">Read More</a>
+          <a href="{{ .Permalink }}">...</a>
         </div>
       </article>
     {{- end }}
-- 
GitLab