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/models/post.go | |
| parent | 1692aea0951f1d46af01211bd3e32920c443505f (diff) | |
Add blog posts to front page
Diffstat (limited to 'internal/models/post.go')
| -rw-r--r-- | internal/models/post.go | 10 |
1 files changed, 10 insertions, 0 deletions
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 +} |
