1234567891011121314151617181920212223242526272829303132333435 |
- <!doctype html>
- <html lang="en">
- <head>
- {{/* depth stored for access inside navigation loop */}}
- {{$depth := .Depth}}
- <meta charset="utf-8">
- <title>{{if .Name}}{{.Name}} | {{end}}sitename </title>
- <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
- </head>
- <body>
- <header>
- <h2>Site Title or Logo</h2>
- {{if .Nav}}
- <nav>
- <ul>
- {{range .Nav}}
- <li><a href='{{$depth}}{{.Link}}'>{{.Name}}</a></li>
- {{end}}
- </ul>
- </nav>
- {{end}}
- </header>
- <div class="content">{{.Content}}</div>
- <div class="footer">
- <p>copyrights, reference links, contact information, etc...</p>
- <div class="scripts">
- <script type="text/javascript" src="{{$depth}}/js/main.js#{{.Version}}"></script>
- </div>
- </div>
- </body>
- </html>
|