layout.gohtml 1.1 KB

123456789101112131415161718192021222324252627282930
  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/rsjs-menu.js" type="module"></script>
  12. <!-- script defer src="https://unpkg.com/alpinejs@3/dist/cdn.min.js"></script -->
  13. <script defer src="https://unpkg.com/alpinejs@3.13.10/dist/cdn.min.js"></script>
  14. </head>
  15. <body hx-boost="true">
  16. <main>
  17. <header>
  18. <h1>
  19. <all-caps>contacts.app</all-caps>
  20. <sub-title>A Demo Contacts Application</sub-title>
  21. </h1>
  22. </header>
  23. {{ range $message := get_flashed_messages }}
  24. <div class="flash">{{ $message }}</div>
  25. {{ end }}
  26. {{block "content" . }}Default content{{ end }}
  27. </main>
  28. </body>
  29. </html>
  30. {{ end }}