layout.gohtml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {{ define "layout.html" }}
  2. <!DOCTYPE html>
  3. <html lang="">
  4. <head>
  5. <title>Contact App</title>
  6. <!-- link rel="stylesheet" href="https://the.missing.style/v0.2.0/missing.min.css" -->
  7. <link rel="stylesheet" href="https://unpkg.com/missing.css@0.2.0/missing.min.css">
  8. <link rel="stylesheet" href="/static/site.css">
  9. <script src="/static/js/htmx-1.8.0.js"></script>
  10. <script src="/static/js/_hyperscript-0.9.7.js"></script>
  11. <script src="/static/js/debug.js"></script>
  12. <script src="/static/js/rsjs-menu.js" type="module"></script>
  13. <!-- script defer src="https://unpkg.com/alpinejs@3/dist/cdn.min.js"></script -->
  14. <script defer src="https://unpkg.com/alpinejs@3.13.10/dist/cdn.min.js"></script>
  15. </head>
  16. <body hx-boost="true">
  17. <main>
  18. <header>
  19. <h1>
  20. <all-caps>contacts.app</all-caps>
  21. <sub-title>A Demo Contacts Application</sub-title>
  22. </h1>
  23. </header>
  24. {{ range $message := get_flashed_messages }}
  25. <div class="flash">{{ $message }}</div>
  26. {{ end }}
  27. {{block "content" . }}Default content{{ end }}
  28. </main>
  29. </body>
  30. </html>
  31. {{ end }}