diff --git a/layouts/calendar/single.html b/layouts/calendar/single.html index 47d4983b..a624fbd0 100644 --- a/layouts/calendar/single.html +++ b/layouts/calendar/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{ $timing := index .Params.timings 0 -}} {{ range .Params.timings -}} {{ if (time.AsTime .starts).Before time.Now -}} @@ -11,7 +11,7 @@

{{ with .Params.emoji }}{{end}} - {{ .Title | markdownify }} + {{ .Title | markdownify }}

@@ -29,7 +29,7 @@ {{ end }} -
+
{{ .Content }}
@@ -39,6 +39,14 @@
diff --git a/layouts/partials/geolink.html b/layouts/partials/geolink.html new file mode 100644 index 00000000..f71dd333 --- /dev/null +++ b/layouts/partials/geolink.html @@ -0,0 +1 @@ +http://www.openstreetmap.org/?mlat={{.latitude}}&mlon={{.longitude}}&zoom=18&layers=M \ No newline at end of file diff --git a/layouts/partials/year-relative-date.html b/layouts/partials/year-relative-date.html index 6970c9f5..a6e7f105 100644 --- a/layouts/partials/year-relative-date.html +++ b/layouts/partials/year-relative-date.html @@ -1 +1,4 @@ - \ No newline at end of file +{{- $date := . -}} +{{- $extraClass := slice -}} +{{ if reflect.IsSlice . -}}{{ $date = index . 0 }}{{ $extraClass = index . 1 }}{{ end -}} + \ No newline at end of file diff --git a/todo.md b/todo.md index 274c865e..77551658 100644 --- a/todo.md +++ b/todo.md @@ -1,4 +1,7 @@ Add single.html for Calendar {cm:2023-12-24} Support repeating calendar events Handle long lines {cm:2023-12-24} -Ensure ICS files have CRLF endings {cm:2023-12-22} \ No newline at end of file +Ensure ICS files have CRLF endings {cm:2023-12-22} +Add microformats {cm:2023-12-24} +Add lat & long to h-event p-location +Debug why h-event doesn't seem to be showing \ No newline at end of file