Home

ugit @06c821918c438b9bcea9ecc1ab3e1b430d791813 - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
ugit / internal / html / readme.templ
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
package html

type ReadmeComponentContext struct {
	Markdown string
}

templ readmeComponent(rcc ReadmeComponentContext) {
	if rcc.Markdown != "" {
		<div class="bg-base dark:bg-base/50 p-5 mt-5 rounded markdown">
			@templ.Raw(rcc.Markdown)
		</div>
	}
}