+ {{ $padding := $t1.Weekday | int }}
+ {{ if gt $padding 0 }}
+ {{ range seq 1 $padding }}
+
{{ $startDate := time.AsTime ( printf "%4d-%02d-%02dT00:00:00" $year $month . ) }}
{{ $endDate := time.AsTime ( printf "%4d-%02d-%02dT23:59:59" $year $month . ) }}
{{ . }}
diff --git a/layouts/shortcodes/calendar.html b/layouts/shortcodes/calendar.html
index d344496..c139b05 100644
--- a/layouts/shortcodes/calendar.html
+++ b/layouts/shortcodes/calendar.html
@@ -1,3 +1,12 @@
+
+
{{ $date:= .Get "date" }}
{{ if not $date }}
{{ errorf "Error: 'date' is a required parameter." }}
@@ -39,7 +48,7 @@
{{ end }}
{{ range seq 1 $daysInMonth }}
-
+
{{ $startDate := time.AsTime ( printf "%4d-%02d-%02dT00:00:00" $year $month . ) }}
{{ $endDate := time.AsTime ( printf "%4d-%02d-%02dT23:59:59" $year $month . ) }}
{{ . }}
diff --git a/static/css/style.css b/static/css/style.css
index 7c1ce1b..34b31b8 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -521,6 +521,7 @@ blockquote.location p { padding: inherit; }
transition: 400ms;
display: flex;
+ flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
@@ -528,7 +529,7 @@ blockquote.location p { padding: inherit; }
.day:has(>.event) {
- display: block;
+ /* display: block; */
color: var(--cal-day-busy-fg);
background-color: var(--cal-day-busy-bg);
}
@@ -537,21 +538,25 @@ blockquote.location p { padding: inherit; }
transform: scale(1.2);
background-color: var(--cal-day-hover-bg);
color: var(--cal-day-hover-fg);
+ cursor: pointer;
}
.day-num {
- font-size: 8vh;
+ font-size: 6.5vh;
+ line-height: 1;
pointer-events: none;
+ margin: 0;
}
.day:has(>.event) .day-num {
- font-size: 4vh;
+ font-size: 3vh;
+ margin-bottom: 1vh;
}
.event, .event a {
font-size: 1.5vh;
color: var(--cal-event-fg);
- background-color: var(--cal-event-bg);
+ /* background-color: var(--cal-event-bg); */
}
.mobile-date { display: none;}