Redmage/views/components/head.templ

26 lines
765 B
Plaintext
Raw Normal View History

package components
import "github.com/tigorlazuardi/redmage/views"
2024-04-09 21:49:23 +07:00
templ Head(vc *views.Context, extras ...templ.Component) {
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="keywords" content="Reddit, Image, Downloader"/>
<link rel="stylesheet" href="/public/style.css"/>
<link rel="icon" href="/public/favicon.svg"/>
<script src="/public/htmx-1.9.11.min.js"></script>
<script src="/public/htmx-response-targets-1.9.11.min.js"></script>
2024-04-29 13:31:09 +07:00
<script src="/public/theme-change-2.0.2.min.js"></script>
if vc.Config.Bool("http.hotreload") {
<script src="/public/hot_reload.js"></script>
}
2024-04-09 21:49:23 +07:00
for _, extra := range extras {
@extra
}
</head>
}
2024-04-09 21:49:23 +07:00
templ HeadTitle(name string) {
<title>{ name }</title>
}