From 52dd381304bf920eeced8985e8ab1d4cb1bc40a4 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 25 Oct 2019 01:49:59 +0200 Subject: Added simple commenting system with Firebase Database integration --- site.tmpl | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'site.tmpl') diff --git a/site.tmpl b/site.tmpl index 243fc59..39e8c6c 100644 --- a/site.tmpl +++ b/site.tmpl @@ -72,15 +72,22 @@

{{ .Title }}

+ {{ if eq .Other.Type "post" }}
- {{ template "date" .Date }} - {{ template "author" . }} -
+ {{ template "date" .Date }} + {{ template "author" . }} + + {{ end }}
{{ .Content }}
+ + {{ if eq .Other.Type "post" }} + {{ template "comments" . }} + {{ end }} + {{ template "modified" . }} {{ end }} @@ -113,3 +120,19 @@ {{ end }} + +{{ define "comments" }} +
+

Comments

+
+
+
+
+
+ +
+ + + + +{{ end }} -- cgit v1.2.3