1
0
mirror of https://github.com/avinal/box-box.git synced 2026-01-09 21:18:32 +05:30

fix: date format getting too long

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2025-01-01 23:26:48 +05:30
parent a7443aa0c8
commit 3f17790897
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -27,7 +27,7 @@
<!-- <hr class="border-t-1 border-black" /> -->
</div>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
{{ $dateHuman := .Date | time.Format ":date_medium" }}
<time
datetime="{{ $dateMachine }}"
class="border border-black py-1 px-2 group-hover:bg-cyan-400 font-sm dark:border-white dark:group-hover:text-black dark:group-hover:border-black"
@@ -88,7 +88,7 @@
/>
</div>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
{{ $dateHuman := .Date | time.Format ":date_medium" }}
<time
datetime="{{ $dateMachine }}"
class="border border-black py-1 px-2 group-hover:bg-cyan-400 font-sm dark:border-white dark:group-hover:text-black dark:group-hover:border-black"