HTMX + Deps Update

This commit is contained in:
2025-01-12 14:51:43 -06:00
parent 38dc30fb0f
commit 44c84ced2e
17 changed files with 470 additions and 193 deletions

View File

@ -6,20 +6,21 @@ import (
"io/fs"
"net/http"
contentfs "goth.stack/content"
"goth.stack/lib"
chromahtml "github.com/alecthomas/chroma/v2/formatters/html"
"github.com/labstack/echo/v4"
"github.com/yuin/goldmark"
highlighting "github.com/yuin/goldmark-highlighting/v2"
"gopkg.in/yaml.v2"
contentfs "goth.stack/content"
"goth.stack/lib"
)
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