From 87901c737c23a5aec12407db343b53398401c645 Mon Sep 17 00:00:00 2001 From: Justin Berthault Date: Tue, 12 Dec 2017 11:32:35 +0100 Subject: Update comments layout to add anchors - Each comment has an #id --- layouts/partials/comments.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index abd639b..af9436c 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -3,17 +3,17 @@
{{ range .comments }} {{ if .id }} -
- {{ .id }}
-
{{ .name }}{{if .website}} - {{ .website }}{{ end }}
-
{{ .date }}
+
+ #{{ .id }}
+
{{ if .name }}{{ .name }}{{else}}Commentaire Anonymus{{ end }}{{if .website}} - {{ .website }}{{ end }}
+
{{ .body | markdownify }}
{{if .reply}} {{range .reply}} -
- {{ .replyid }}
+
+ #{{ .replyid }}
{{ .replyname }}{{if .replywebsite}} - {{ .replywebsite }}{{ end }}
-
{{ .replydate }}
+
{{ .replybody | markdownify }}
{{ end }} -- cgit v1.2.3