summaryrefslogtreecommitdiffci
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-08-12 13:55:17 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-08-12 13:55:17 +0700
commitcd8746883e558e8527355e1c2342e8053848e91c (patch)
tree3e1b246224fc4373ebd0c79d99b7a0e896cdd982
parent09cb8a09061d1a8d748ca456780a54a99e1decf3 (diff)
downloadweb-cd8746883e558e8527355e1c2342e8053848e91c.tar.gz
web-cd8746883e558e8527355e1c2342e8053848e91c.zip
fix: published time sortv0.5.4
format: have a map more square on mobile
-rw-r--r--main.go8
-rw-r--r--static/input.css8
-rw-r--r--views/pages/blog-page.html2
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 }}
<hr class="border-t-4 border-dotted border-main-dark mt-[0.8vmin] mb-[0.8vmin] w-[80%] ml-auto mr-auto">
- <div id="location-map" class="relative p-[0.8vmin] flex-none ml-auto mr-auto w-[60%] h-[40vh]"></div>
+ <div id="location-map" class="relative p-[0.8vmin] flex-none ml-auto mr-auto w-[60%] ar-lt-0.8:w-[80%] h-[40vh] ar-lt-0.8:h-[30vh]"></div>
<hr class="border-t-4 border-dotted border-main-dark mt-[0.8vmin] mb-[0.8vmin] w-[80%] ml-auto mr-auto">
{{- end }}
</div>