version.go, footer.html: display version

Closes https://gitlab.com/commento/commento/issues/122
This commit is contained in:
Adhityaa Chandrasekar
2019-04-20 20:59:30 -04:00
parent 1d1cd46c2b
commit e46f9cf9e7
4 changed files with 10 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ func fileDetemplate(f string) ([]byte, error) {
x = strings.Replace(x, "[[[.Origin]]]", os.Getenv("ORIGIN"), -1)
x = strings.Replace(x, "[[[.CdnPrefix]]]", os.Getenv("CDN_PREFIX"), -1)
x = strings.Replace(x, "[[[.Footer]]]", footer, -1)
x = strings.Replace(x, "[[[.Version]]]", version, -1)
return []byte(x), nil
}