fixed: localization

This commit is contained in:
Niklas 2024-10-21 23:02:34 +02:00
parent 08108a4a7a
commit ebe4fbf5fb

View File

@ -4,7 +4,7 @@
<div class="flex flex-col gap-y-1 md:flex-row md:gap-y-0 md:gap-x-4 text-slate-500 dark:text-slate-300"> <div class="flex flex-col gap-y-1 md:flex-row md:gap-y-0 md:gap-x-4 text-slate-500 dark:text-slate-300">
{{- if .Date }} {{- if .Date }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }} {{ $dateHuman := .Date | time.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
<div class="flex flex-row text-base gap-x-1"> <div class="flex flex-row text-base gap-x-1">
<i class="h-6 w-6 flex-none"> <i class="h-6 w-6 flex-none">
{{ partial "icon.html" "calendar" }} {{ partial "icon.html" "calendar" }}