Update templates to reflect new structs
This commit is contained in:
parent
451160492a
commit
bbab9ca968
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
<div class="example" id="{{.Id}}">
|
<div class="example" id="{{.ID}}">
|
||||||
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
|
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
|
||||||
{{range .Segs}}
|
{{range .Segs}}
|
||||||
<table>
|
<table>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
{{.DocsRendered}}
|
{{.DocsRendered}}
|
||||||
</td>
|
</td>
|
||||||
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
|
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
|
||||||
{{if .CodeRun}}<a href="http://play.golang.org/p/{{$.UrlHash}}"><img title="Run code" src="play.png" class="run" /></a>{{end}}
|
{{if .CodeRun}}<a href="http://play.golang.org/p/{{$.URLHash}}"><img title="Run code" src="play.png" class="run" /></a>{{end}}
|
||||||
{{.CodeRendered}}
|
{{.CodeRendered}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -37,11 +37,11 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{if .NextExample}}
|
{{if .NextExample}}
|
||||||
<p class="next">
|
<p class="next">
|
||||||
Next example: <a href="{{.NextExample.Id}}">{{.NextExample.Name}}</a>.
|
Next example: <a href="{{.NextExample.ID}}">{{.NextExample.Name}}</a>.
|
||||||
</p>
|
</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
by <a href="https://twitter.com/mmcgrana">@mmcgrana</a> | <a href="mailto:mmcgrana@gmail.com">feedback</a> | <a href="https://github.com/mmcgrana/gobyexample/blob/master/examples/{{.Id}}">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
|
by <a href="https://twitter.com/mmcgrana">@mmcgrana</a> | <a href="mailto:mmcgrana@gmail.com">feedback</a> | <a href="https://github.com/mmcgrana/gobyexample/blob/master/examples/{{.ID}}">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<li><a href="{{.Id}}">{{.Name}}</a></li>
|
<li><a href="{{.ID}}">{{.Name}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user