From afd8d589f59dfc90312286124e00f917c097f986 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Sat, 6 Apr 2024 20:38:40 +0100 Subject: [PATCH] Fix interactions datestamps; clap --- layouts/partials/interactions.html | 6 +++--- layouts/partials/rel-date.html | 2 +- layouts/partials/svg.html | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/partials/interactions.html b/layouts/partials/interactions.html index 67ae55ce..83894cec 100644 --- a/layouts/partials/interactions.html +++ b/layouts/partials/interactions.html @@ -2,7 +2,7 @@ {{- if eq .emoji "♥️" }}{{ end -}} {{- if eq .emoji "⭐️" }}{{ end -}} {{- if eq .emoji "👍" }}{{ end -}} -{{- if eq .emoji "👏" }}{{ end -}} +{{- if eq .emoji "👏" }}{{ end -}} {{- if eq .emoji "🔁" }}{{ end -}} {{- if eq .emoji "💬" }}{{ end -}} @@ -54,7 +54,7 @@ {{ end }}
  • {{ .author.name }}: {{ .comment }} - ({{- partial "rel-date.html" (dict "time" .timestamp "rel" $.Page.Date) -}}) + ({{ partial "rel-date.html" (dict "time" .timestamp "rel" $.Page.PublishDate) }})
  • {{ end }} @@ -78,6 +78,6 @@

    - No comments or reactions + No comments or reactions across the web

    {{ end }} \ No newline at end of file diff --git a/layouts/partials/rel-date.html b/layouts/partials/rel-date.html index 2e5fbfdc..2d7f2b63 100644 --- a/layouts/partials/rel-date.html +++ b/layouts/partials/rel-date.html @@ -11,4 +11,4 @@ {{- else -}} {{- $desc = printf "%.0fs" (div $diff.Seconds 1) -}} {{- end -}} - \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index b7faea54..721a3583 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -24,6 +24,8 @@ {{- else if (eq .name "chess") -}} +{{- else if (eq .name "clap") -}} + {{- else if (eq .name "codeberg") -}} {{- else if (eq .name "codesandbox") -}} @@ -86,6 +88,8 @@ {{- else if (eq .name "hackthebox") -}} +{{- else if (eq .name "heart") -}} + {{- else if (eq .name "instagram") -}} {{- else if (eq .name "itchio") -}} @@ -168,6 +172,8 @@ {{- else if (eq .name "stackoverflow") -}} +{{- else if (eq .name "star") -}} + {{- else if (eq .name "steam") -}} {{- else if (eq .name "strava") -}}