diff options
author | Justin Berthault <justin.berthault@zaclys.net> | 2017-12-13 10:59:15 +0300 |
---|---|---|
committer | Justin Berthault <justin.berthault@zaclys.net> | 2017-12-13 10:59:15 +0300 |
commit | 8027af5c06c363f3cf37154d8f4a199a6b944240 (patch) | |
tree | 38abef6203ba759137b7217c9976d10d281f9ec2 | |
parent | 78acac403e852c4fa1b22bfb3da41acff4d4e7c1 (diff) |
Add <if replyname>
-rw-r--r-- | layouts/partials/comments.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index af9436c..c4da586 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -12,7 +12,7 @@ {{range .reply}} <div class="reply" id="comment-{{ .replyid }}"> <span><strong>#{{ .replyid }}</strong></span></br> - <div class="reply-name">{{ .replyname }}{{if .replywebsite}} - <a href="{{ .replywebsite | safeURL }}">{{ .replywebsite }}{{ end }}</a></div> + <div class="reply-name">{{ if .replyname }}{{ .replyname }}{{else}}Commentaire Anonymus{{ end }}{{if .replywebsite}} - <a href="{{ .replywebsite | safeURL }}">{{ .replywebsite }}{{ end }}</a></div> <div class="reply-date"><a href="#comment-{{ .replyid }}">{{ .replydate }}</a></div> <div class="reply-body">{{ .replybody | markdownify }}</div> </div> |