Added static "blog" pages

Fixed some minor bugs
Added cors
This commit is contained in:
Caleb Gardner
2024-08-06 22:10:25 -05:00
parent 65a1834e9d
commit bb44e26dd4
3 changed files with 10 additions and 3 deletions
+3
View File
@@ -61,6 +61,9 @@ func blogHandle(w http.ResponseWriter, r *http.Request, blog string) {
}
func blogElement(b *blog.Blog) (out string) {
if b.StaticPage {
return b.Blog
}
out = fmt.Sprintf(blogTitle, b.ID, b.ID, b.Title)
auth, err := blogApp.GetAuthor(b)
if err == nil {