35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
package components
|
|
|
|
import "github.com/tigorlazuardi/redmage/views"
|
|
|
|
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>
|
|
<script src="/public/dayjs-1.11.10.min.js"></script>
|
|
<script src="/public/dayjs-relativeTime-1.11.10.min.js"></script>
|
|
<script src="/public/dayjs-utc-1.11.10.min.js"></script>
|
|
<script src="/public/dayjs-timezone-1.11.10.min.js"></script>
|
|
<script>
|
|
dayjs.extend(window.dayjs_plugin_relativeTime)
|
|
dayjs.extend(window.dayjs_plugin_utc)
|
|
dayjs.extend(window.dayjs_plugin_timezone)
|
|
</script>
|
|
<script src="/public/theme-change-2.0.2.min.js"></script>
|
|
if vc.Config.Bool("http.hotreload") {
|
|
<script src="/public/hot_reload.js"></script>
|
|
}
|
|
for _, extra := range extras {
|
|
@extra
|
|
}
|
|
</head>
|
|
}
|
|
|
|
templ HeadTitle(name string) {
|
|
<title>{ name }</title>
|
|
}
|