template.tmpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html lang="en">
  3. <head>{{/* depth stored for access inside navigation loop */}}{{$depth := .Depth}}
  4. <meta charset="utf-8">
  5. <title>{{if .Name}}{{.Name}} | {{end}}Casey DeLorme's Portfolio / caseydelorme.com</title>
  6. <link rel="icon" type="image/x-icon" href="https://d2xxklvztqk0jd.cloudfront.net/favicon.ico" />
  7. <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
  8. </head>
  9. <body>
  10. <header class="group">
  11. <a href='/'><h1>Casey DeLorme</h1></a>
  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 group">
  23. {{.Content}}
  24. </div>
  25. <footer class="group">
  26. <a href='https://www.facebook.com/CaseyRDeLorme' class='link facebook'></a>
  27. <a href='https://www.linkedin.com/in/cdelorme' class='link linkedin'></a>
  28. <a href='https://www.youtube.com/user/LordOfElm' class='link youtube'></a>
  29. <a href='https://github.com/cdelorme' class='link github'></a>
  30. <a href='skype:casey.delorme?chat' class='link skype'></a>
  31. <div class="scripts">
  32. <script type="text/javascript" src="{{$depth}}/js/main.js#{{.Version}}" async></script>
  33. </div>
  34. </footer>
  35. </body>
  36. </html>