template.tmpl 954 B

12345678910111213141516171819202122232425262728293031323334
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. {{$depth := .Depth}}
  5. <meta charset="utf-8">
  6. <title>{{if .Name}}{{.Name}} | {{end}}sitename </title>
  7. <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
  8. </head>
  9. <body>
  10. <header>
  11. <h2>Site Title or Logo</h2>
  12. {{if .Nav}}
  13. <nav>
  14. <ul>
  15. {{range .Nav}}
  16. <li><a href='{{$depth}}{{.Link}}'>{{.Name}}</a></li>
  17. {{end}}
  18. </ul>
  19. </nav>
  20. {{end}}
  21. </header>
  22. <div class="content">{{.Content}}</div>
  23. <div class="footer">
  24. <p>Worthless copyrights, or maybe useful contact information.</p>
  25. <div class="scripts">
  26. <script type="text/javascript" src="{{$depth}}/js/main.js#{{.Version}}"></script>
  27. </div>
  28. </div>
  29. </body>
  30. </html>