program.en.html 468 B

12345678910111213141516171819
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. {{ template "head_program" . }}
  4. <body>
  5. {{ template "header" }}
  6. {{ template "nav" }}
  7. <main>
  8. <h2>{{.Name}}</h2>
  9. {{if gt (len .Versions) 1}}<ul>
  10. {{range $tag, $_ := .Versions}}<li>{{if $tag}}<a href="/p/{{$.Name}}/{{$tag}}">{{$tag}}</a>{{else}}<a href="/p/{{$.Name}}">v1</a>{{end}}</li>{{end}}
  11. </ul>{{end}}
  12. <code>{{.Source}}</code>
  13. <div>{{.Content}}</div>
  14. </main>
  15. {{ template "aside" . }}
  16. </body>
  17. </html>