Added a footer, added the main title to the home page, minor improvements

This commit is contained in:
ChaoticByte 2024-08-29 13:10:23 +02:00
parent 1aa58ac243
commit b86b1688ea
No known key found for this signature in database
6 changed files with 40 additions and 4 deletions

View file

@ -1,10 +1,19 @@
package main
import "golang.org/x/text/language"
import (
"html/template"
"golang.org/x/text/language"
)
const ServerListen = ":7000"
const EntriesDirectory = "./entries"
const TemplateFile = "./public/index.html"
const StaticDirectory = "./public/static"
const MainTitle = "Encyclopedia"
var ContentLanguage = language.English
const MainTitle = "Encyclopedia"
var FooterContent = []template.HTML{
template.HTML("powered by <a href='https://github.com/ChaoticByte/plaintext-encyclopedia' target='_blank' rel='noopener noreferrer'>plaintext-encyclopedia</a>"),
}