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 @@ -35,7 +35,6 @@ Title string Summary string Date time.Time Category string - Draft bool path string } diff --git a/templates.templ b/templates.templ index 7d1bbcfdd525bbf3bacc5465bfeb82682ad0e9ff..afec4e663201fa4ef1388474e74e66f3fb215409 100644 --- a/templates.templ +++ b/templates.templ @@ -33,9 +33,7 @@ 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,29 +125,27 @@ if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } for _, article := range articles { - if !article.Draft { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
  • ") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var9 string = article.Title - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
  • ") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
  • ") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var9 string = article.Title + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
  • ") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err } } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")