mirror of https://git.jolheiser.com/ugit.git
chore: update readme styles
Signed-off-by: jolheiser <john.olheiser@gmail.com>ffdhall
parent
6772b2efe4
commit
65f464aaca
|
@ -5,6 +5,8 @@ type ReadmeComponentContext struct {
|
|||
}
|
||||
|
||||
templ readmeComponent(rcc ReadmeComponentContext) {
|
||||
<div class="bg-base dark:bg-base/50 px-5 rounded markdown">@templ.Raw(rcc.Markdown)</div>
|
||||
if rcc.Markdown != "" {
|
||||
<div class="bg-base dark:bg-base/50 p-5 mt-5 rounded markdown">@templ.Raw(rcc.Markdown)</div>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@ func readmeComponent(rcc ReadmeComponentContext) templ.Component {
|
|||
templ_7745c5c3_Var1 = templ.NopComponent
|
||||
}
|
||||
ctx = templ.ClearChildren(ctx)
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"bg-base dark:bg-base/50 px-5 rounded markdown\">")
|
||||
if rcc.Markdown != "" {
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"bg-base dark:bg-base/50 p-5 mt-5 rounded markdown\">")
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
|
@ -39,6 +40,7 @@ func readmeComponent(rcc ReadmeComponentContext) templ.Component {
|
|||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
}
|
||||
if !templ_7745c5c3_IsBuffer {
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue