remove test partial
This commit is contained in:
parent
5f2922e51c
commit
59900b59ea
3 changed files with 0 additions and 15 deletions
|
|
@ -4,10 +4,8 @@ import (
|
|||
"embed"
|
||||
"github.com/maddalax/htmgo/framework/h"
|
||||
"github.com/maddalax/htmgo/framework/htmgo/service"
|
||||
"github.com/maddalax/htmgo/framework/hx"
|
||||
"htmgo-site/internal/markdown"
|
||||
"htmgo-site/pages/base"
|
||||
"htmgo-site/partials"
|
||||
)
|
||||
|
||||
func MarkdownHandler(ctx *h.RequestContext, path string) error {
|
||||
|
|
@ -17,9 +15,6 @@ func MarkdownHandler(ctx *h.RequestContext, path string) error {
|
|||
func MarkdownPage(ctx *h.RequestContext, path string) *h.Element {
|
||||
return base.RootPage(
|
||||
h.Div(
|
||||
h.Div(
|
||||
h.GetPartial(partials.TestPartial, hx.LoadEvent),
|
||||
),
|
||||
h.Class("w-full p-4 flex flex-col justify-center items-center"),
|
||||
MarkdownContent(ctx, path),
|
||||
h.Div(
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ func GetPartialFromContext(ctx echo.Context) *h.Partial {
|
|||
cc := ctx.(*h.RequestContext)
|
||||
return partials.ToggleNavbar(cc)
|
||||
}
|
||||
if path == "TestPartial" || path == "/htmgo-site/partials.TestPartial" {
|
||||
cc := ctx.(*h.RequestContext)
|
||||
return partials.TestPartial(cc)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,12 +16,6 @@ func ToggleNavbar(ctx *h.RequestContext) *h.Partial {
|
|||
)
|
||||
}
|
||||
|
||||
func TestPartial(ctx *h.RequestContext) *h.Partial {
|
||||
return h.NewPartial(
|
||||
h.Div(h.Text("This is a test")),
|
||||
)
|
||||
}
|
||||
|
||||
var navItems = []NavItem{
|
||||
{Name: "Docs", Url: "/docs"},
|
||||
{Name: "Examples", Url: "/examples"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue