From 177663c73f3d708120b975a74eebd0951177a53b Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Mon, 24 Nov 2025 00:38:12 -0500 Subject: Add blog posts to front page --- internal/context/environment.go | 2 ++ internal/models/post.go | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 internal/models/post.go (limited to 'internal') diff --git a/internal/context/environment.go b/internal/context/environment.go index 7d52978..35cb9d8 100644 --- a/internal/context/environment.go +++ b/internal/context/environment.go @@ -2,6 +2,8 @@ package context type DbCredentials struct { Name string + Host string + Port uint64 Username string Password string } diff --git a/internal/models/post.go b/internal/models/post.go new file mode 100644 index 0000000..d7b006d --- /dev/null +++ b/internal/models/post.go @@ -0,0 +1,10 @@ +package models + +import "html/template" + +type Post struct { + Id int + Name string + Time string + Content template.HTML +} -- cgit v1.2.3