From d935ce72f60d7ac85e17bfab5755cb73252674e1 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Mon, 20 Feb 2023 13:49:54 -0500 Subject: [PATCH] fix: pass domain to question template --- src/routes/question.go | 1 + templates/question.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/question.go b/src/routes/question.go index 0bfde6e..40d5b85 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -277,6 +277,7 @@ func ViewQuestion(c *gin.Context) { "theme": c.MustGet("theme").(string), "currentUrl": fmt.Sprintf("%s/questions/%s/%s", os.Getenv("APP_URL"), questionId, questionTitle), "sortValue": sortValue, + "domain": domain, }) } diff --git a/templates/question.html b/templates/question.html index 0c0120d..ee943a1 100644 --- a/templates/question.html +++ b/templates/question.html @@ -30,7 +30,7 @@

Asked {{ .question.Timestamp }} by {{ .question.AuthorName }} Answered {{ $answer.Timestamp }} by {{ $answer.AuthorName }}