diff --git a/internal/theme/wp/components/widget/archive.go b/internal/theme/wp/components/widget/archive.go index 7303e43..4aa94f9 100644 --- a/internal/theme/wp/components/widget/archive.go +++ b/internal/theme/wp/components/widget/archive.go @@ -10,18 +10,19 @@ import ( "github.com/fthvgb1/wp-go/internal/pkg/models" "github.com/fthvgb1/wp-go/internal/theme/wp" "github.com/fthvgb1/wp-go/internal/wpconfig" - "github.com/fthvgb1/wp-go/safety" "strings" ) -var archivesConfig = func() safety.Var[map[any]any] { - v := safety.Var[map[any]any]{} - v.Store(map[any]any{ - "count": int64(0), - "dropdown": int64(0), - "title": "归档", - }) - archiveArgs.Store(map[string]string{ +var archiveTemplate = `{$before_widget} +{$title} +{$nav} +{$html} +{$navCloser} +{$after_widget} +` + +func archiveArgs() map[string]string { + return map[string]string{ "{$before_widget}": `", "{$before_title}": `