Adds function to build the menu and manage relpaths
This commit is contained in:
parent
1da04d0f93
commit
5cd7dd9dbb
4 changed files with 64 additions and 58 deletions
|
@ -4,15 +4,15 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{.filename}} - {{.repoInfo.Name}} - {{.repoInfo.Description}}</title>
|
||||
<link rel="icon" type="image/png" href="../favicon.png" />
|
||||
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed" href="../atom.xml" />
|
||||
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed (tags)" href="../tags.xml" />
|
||||
<link rel="stylesheet" type="text/css" href="../style.css" />
|
||||
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
|
||||
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed" href="{{.relpath}}atom.xml" />
|
||||
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed (tags)" href="{{.relpath}}tags.xml" />
|
||||
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="../../"><img src="../logo.png" alt="" width="32" height="32" /></a></td>
|
||||
<td><a href="{{.relpath}}../"><img src="{{.relpath}}logo.png" alt="" width="32" height="32" /></a></td>
|
||||
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
|
||||
</tr>
|
||||
<tr class="url">
|
||||
|
@ -26,18 +26,8 @@
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="../log.html">Log</a>
|
||||
| <a href="../files.html">Files</a>
|
||||
| <a href="../refs.html">Refs</a>
|
||||
{{if .repoInfo.HasReadme}}
|
||||
| <a href="../file/README.html">README</a>
|
||||
{{end}}
|
||||
{{if .repoInfo.HasLicense}}
|
||||
| <a href="../file/LICENSE.html">LICENSE</a></td>
|
||||
{{end}}
|
||||
{{if .repoInfo.HasContributing}}
|
||||
| <a href="../file/CONTRIBUTING.html">CONTRIBUTING</a></td>
|
||||
{{end}}
|
||||
{{menu .repoInfo .relpath}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr/>
|
||||
|
|
|
@ -27,11 +27,7 @@
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="log.html">Log</a>
|
||||
| <a href="files.html">Files</a>
|
||||
| <a href="refs.html">Refs</a>
|
||||
| <a href="file/README.html">README</a>
|
||||
| <a href="file/LICENSE.html">LICENSE</a>
|
||||
{{menu .repoInfo .relpath}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -26,11 +26,7 @@
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="log.html">Log</a>
|
||||
| <a href="files.html">Files</a>
|
||||
| <a href="refs.html">Refs</a>
|
||||
| <a href="file/README.html">README</a>
|
||||
| <a href="file/LICENSE.html">LICENSE</a>
|
||||
{{menu .repoInfo .relpath}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue