From 6a402ee64f13ec2b83d9a85487920b8673dd02ae Mon Sep 17 00:00:00 2001 From: Domeniko Gentner Date: Fri, 4 Dec 2020 11:12:52 +0100 Subject: [PATCH] Corrected mistake in go block for replies --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 50ef115..2ddfd29 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,12 @@ Within that template the following structure is needed: {{ if (fileExists $location ) }} {{ $dataJ := getJSON $location }} {{ range $dataJ.comments }} - {# HTML and template codes here #} - {{ end }} - {# This is to display replies to this comment, you can use them same variables #} - {{ range where $dataJ.replies "replied_to" .comment_id }} + {# HTML and template codes here #} + {# This is to display replies to this comment, you can use them same variables #} + {{ range where $dataJ.replies "replied_to" .comment_id }} {# HTML and template codes here for replies #} - {{end}} + {{end}} + {{ end }} {{ end }} ```