diff options
| author | Samuel Johnson <[email protected]> | 2025-11-24 00:38:12 -0500 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2025-11-24 00:38:12 -0500 |
| commit | 177663c73f3d708120b975a74eebd0951177a53b (patch) | |
| tree | 9629bfced318c645496a31cc7844c7840605113c /internal | |
| parent | 1692aea0951f1d46af01211bd3e32920c443505f (diff) | |
Add blog posts to front page
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/context/environment.go | 2 | ||||
| -rw-r--r-- | internal/models/post.go | 10 |
2 files changed, 12 insertions, 0 deletions
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 +} |
