1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-24 08:46:24 -07:00

Add home link to top and bottom board lists

This commit is contained in:
Eggbertx 2021-09-01 12:46:26 -07:00
parent 3e4e07c8ef
commit bb9d4be884
3 changed files with 9 additions and 2 deletions

View file

@ -71,6 +71,7 @@ type GochanConfig struct {
SystemCriticalConfig
SiteConfig
BoardConfig
BoardListConfig
jsonLocation string `json:"-"`
}
@ -327,6 +328,11 @@ type BoardConfig struct {
EnableGeoIP bool
}
type BoardListConfig struct {
CustomLinks map[string]string // <a href="value">index</a> - can be internal or external
HideBoards []string // test,boardtohide,modboard,etc
}
// Style represents a theme (Pipes, Dark, etc)
type Style struct {
Name string

View file

@ -78,8 +78,8 @@
{{else}}Next{{end}}</td>
</tr>
</table>
<span id="boardmenu-bottom">
[<a href="{{$.webroot}}">home</a>]&nbsp;
[{{range $i, $boardlink := $.boards}}{{if gt $i 0}}/{{end}} <a href="{{$boardlink.WebPath `` `boardPage`}}/">{{$boardlink.Dir}}</a> {{end}}]
</span>
</div>

View file

@ -18,5 +18,6 @@
</head>
<body>
<div id="topbar">
{{range $i, $board := .boards}}<a href="{{$.webroot}}{{$board.Dir}}/" class="topbar-item">/{{$board.Dir}}/</a>{{end}}
<a href="{{$.webroot}}">home</a>
{{range $i, $board := .boards}}<a href="{{$.webroot}}{{$board.Dir}}/" class="topbar-item" title="{{$board.Title}}">/{{$board.Dir}}/</a>{{end}}
</div>