diff --git a/articles/introduction.md b/articles/introduction.md index 56e989ffb5572cae8667c50aa9cabf110ffaf960..eb8540e3c1961a07939e4274b3c74a60f1a5d8d9 100644 --- a/articles/introduction.md +++ b/articles/introduction.md @@ -3,7 +3,6 @@ title = "Introduction" summary = "An introduction of my blog" date = 2024-02-17 category = "Miscellaneous" -draft = true +++ # Hello and welcome to my blog! diff --git a/templates.go b/templates.go index e8b8b3a12605f00a6ac32be4939ca46426bb898c..6ddc5e186f9621e16ba3b4f803b8b4d7aaca5ceb 100644 --- a/templates.go +++ b/templates.go @@ -36,8 +36,6 @@ Summary string Date time.Time Category string import ( - -import ( import ( } diff --git a/templates.templ b/templates.templ index 7d1bbcfdd525bbf3bacc5465bfeb82682ad0e9ff..afec4e663201fa4ef1388474e74e66f3fb215409 100644 --- a/templates.templ +++ b/templates.templ @@ -33,11 +33,8 @@ for category, articles := range articles {

{ category }

} diff --git a/templates_templ.go b/templates_templ.go index efd8eb839501066937bba77a1bf4f629742ce229..d2f702ab2cc3de5cda34bf156398e614a7136963 100644 --- a/templates_templ.go +++ b/templates_templ.go @@ -125,41 +125,44 @@ if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } for _, article := range articles { - if !article.Draft { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
  • ") +// Code generated by templ - DO NOT EDIT. import "github.com/a-h/templ" -import "bytes" - return templ_7745c5c3_Err + if templ_7745c5c3_Err != nil { -import "context" +// Code generated by templ - DO NOT EDIT. // Code generated by templ - DO NOT EDIT. +// templ: version: 0.2.480 import "context" -//lint:file-ignore SA4006 This context is only used if a nested component is present. +import "io" +func baseTemplate(title, description string) templ.Component { import "context" -import "github.com/a-h/templ" - if templ_7745c5c3_Err != nil { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) - return templ_7745c5c3_Err + if templ_7745c5c3_Err != nil { -import "context" // Code generated by templ - DO NOT EDIT. + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) import "context" -import "context" +import "io" -import "github.com/a-h/templ" +func baseTemplate(title, description string) templ.Component { import "bytes" - return templ_7745c5c3_Err + if templ_7745c5c3_Err != nil { -import "context" +// Code generated by templ - DO NOT EDIT. // Code generated by templ - DO NOT EDIT. +// templ: version: 0.2.480 } } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")