summaryrefslogtreecommitdiff
path: root/views/pages
diff options
from:
to:
context:
space:
mode:
authorGravatar Saya Andy <145215889+SayaAndy@users.noreply.github.com> 2026-05-04 03:01:23 +0700
committerGravatar GitHub <noreply@github.com> 2026-05-04 03:01:23 +0700
commit46a705cb869b0c5ad6177e92c2e072388096b03d (patch)
treeac3c93a77c4febc31e524e13217f639f3033d0c3 /views/pages
parent90463bdad7e1df4036c407c7055474adb1e70ba8 (diff)
parent72eb1cbd848fad5a659308d7a371795d77665632 (diff)
downloadweb-0.15.3.tar.gz
web-0.15.3.zip
v0.15.3 (#33)v0.15.3
- [fix: add like button in mobile mode](https://github.com/SayaAndy/saya-today-web/commit/72eb1cbd848fad5a659308d7a371795d77665632)
Diffstat (limited to 'views/pages')
-rw-r--r--views/pages/blog-page.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html
index 0a20b29..d8cfbff 100644
--- a/views/pages/blog-page.html
+++ b/views/pages/blog-page.html
@@ -1,7 +1,10 @@
{{ define "body" }}
<div class="absolute w-full h-full inset-0 inset-shadow-[0_0_0.4rem_black] pointer-events-none z-20"></div>
<article class="relative bg-paper bg-background-light flex flex-col px-8 py-4 overflow-y-auto">
- <h1 class="max-xs:block [@media(max-height:32rem)]:block hidden font-gentium text-2xl font-bold italic text-main-hard tracking-[.0125rem] mb-1">{{ .Title }}</h1>
+ <h1 class="max-xs:flex flex-row content-center [@media(max-height:32rem)]:block hidden font-gentium text-2xl font-bold italic text-main-hard tracking-[.0125rem] mb-1">
+ <div hx-get="/api/v1/like" hx-target="this" hx-swap="outerHTML" hx-trigger="load"></div>
+ {{ .Title }}
+ </h1>
<p class="block grow text-lg font-gentium text-secondary">
<b>{{ .L.Metadata.Published }}</b>:
<time datetime="{{ .PublishedDate }}" hx-get="/api/v1/tz" hx-vals='js:{timestamp: "{{ .PublishedDate }}", tz: clientTimeZone}' hx-target="this" hx-swap="innerHTML" hx-trigger="load">