From cd8746883e558e8527355e1c2342e8053848e91c Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Tue, 12 Aug 2025 13:55:17 +0700 Subject: fix: published time sort format: have a map more square on mobile --- main.go | 8 ++++---- static/input.css | 8 ++++++++ views/pages/blog-page.html | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index c85a304..d6b63d5 100644 --- a/main.go +++ b/main.go @@ -287,12 +287,12 @@ func main() { case "actionDateDesc": return strings.Compare(b["ActionDate"], a["ActionDate"]) case "publicationDateAsc": - publishedTimeA, _ := time.Parse(time.RFC3339, a["PublishedTime"]) - publishedTimeB, _ := time.Parse(time.RFC3339, b["PublishedTime"]) + publishedTimeA, _ := time.Parse("2006-01-02 15:04:05 -0700", a["PublishedTime"]) + publishedTimeB, _ := time.Parse("2006-01-02 15:04:05 -0700", b["PublishedTime"]) return publishedTimeA.Compare(publishedTimeB) case "publicationDateDesc": - publishedTimeA, _ := time.Parse(time.RFC3339, a["PublishedTime"]) - publishedTimeB, _ := time.Parse(time.RFC3339, b["PublishedTime"]) + publishedTimeA, _ := time.Parse("2006-01-02 15:04:05 -0700", a["PublishedTime"]) + publishedTimeB, _ := time.Parse("2006-01-02 15:04:05 -0700", b["PublishedTime"]) return publishedTimeB.Compare(publishedTimeA) } return 0 diff --git a/static/input.css b/static/input.css index 8776b25..69cfa91 100644 --- a/static/input.css +++ b/static/input.css @@ -416,6 +416,10 @@ body:has(.lg-container:not([class~="lg-inline"])) .mobile-topbar-custom { height: 10vh; } + .ar-lt-0\.8\:h-\[30vh\] { + height: 30vh; + } + .ar-lt-0\.8\:h-\[90vh\] { height: 90vh; } @@ -424,6 +428,10 @@ body:has(.lg-container:not([class~="lg-inline"])) .mobile-topbar-custom { width: 8vh; } + .ar-lt-0\.8\:w-\[80\%\] { + width: 80%; + } + .ar-lt-0\.8\:w-\[90vw\] { width: 90vw; } diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index 5f001d6..5f52c2f 100644 --- a/views/pages/blog-page.html +++ b/views/pages/blog-page.html @@ -19,7 +19,7 @@ {{ .ParsedMarkdown }} {{- if .MapLocationX }}
-
+

{{- end }} -- cgit v1.3.1+13