template.tmpl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!doctype html>
  2. <html lang="en">
  3. <head>{{/* depth stored for access inside navigation loop */}}{{$depth := .Depth}}
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <title>{{if .Name}}{{.Name}} | {{end}}Casey DeLorme's Portfolio / caseydelorme.com</title>
  9. <link rel="icon" type="image/x-icon" href="https://d2xxklvztqk0jd.cloudfront.net/favicon.ico" />
  10. <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
  11. </head>
  12. <body>
  13. <header class="group">
  14. <h1><a href='/'>Casey DeLorme</a></h1>
  15. {{if .Nav}}
  16. <nav>
  17. <ul>
  18. {{range .Nav}}
  19. <li><a href='{{$depth}}{{.Link}}'>{{.Title}}</a></li>
  20. {{end}}
  21. </ul>
  22. </nav>
  23. {{end}}
  24. </header>
  25. <div class="content group">
  26. {{.Content}}
  27. </div>
  28. <footer class="group">
  29. <a href='https://www.facebook.com/CaseyRDeLorme' class='link facebook'></a>
  30. <a href='https://www.linkedin.com/in/cdelorme' class='link linkedin'></a>
  31. <a href='https://www.youtube.com/user/LordOfElm' class='link youtube'></a>
  32. <a href='https://github.com/cdelorme' class='link github'></a>
  33. <a href='skype:casey.delorme?chat' class='link skype'></a>
  34. <div class="scripts">
  35. <script type="text/javascript" src="{{$depth}}/js/main.js#{{.Version}}" async></script>
  36. </div>
  37. </footer>
  38. </body>
  39. </html>