template.tmpl 1017 B

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