Fixed formatting and added description

This commit is contained in:
2025-01-11 23:08:39 -06:00
parent 6e51164403
commit 862ff8e546
15 changed files with 73 additions and 31 deletions

View File

@ -16,10 +16,11 @@ import (
)
type PostProps struct {
Content template.HTML
Name string
Date string
Tags []string
Content template.HTML
Name string
Description string
Date string
Tags []string
}
func Post(c echo.Context) error {
@ -64,10 +65,11 @@ func Post(c echo.Context) error {
}
props := PostProps{
Content: template.HTML(buf.String()),
Name: frontmatter.Name,
Date: frontmatter.Date,
Tags: frontmatter.Tags,
Content: template.HTML(buf.String()),
Name: frontmatter.Name,
Description: frontmatter.Description,
Date: frontmatter.Date,
Tags: frontmatter.Tags,
}
// Specify the partials used by this page