templ generate, add markdown syntax highlighting, fix stuff
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
package templates
|
||||
|
||||
templ Layout(title string) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>{ title }</title>
|
||||
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
|
||||
</head>
|
||||
<body>
|
||||
{ children... }
|
||||
<script>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>{ title }</title>
|
||||
<link rel="stylesheet" href="/static/style.css"/>
|
||||
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
|
||||
</head>
|
||||
<body>
|
||||
{ children... }
|
||||
<script>
|
||||
document.body.addEventListener('htmx:beforeRequest', function(e) {
|
||||
e.detail.elt.classList.add('loading');
|
||||
});
|
||||
@@ -20,6 +21,6 @@ templ Layout(title string) {
|
||||
e.detail.elt.classList.remove('loading');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
}
|
||||
|
Reference in New Issue
Block a user