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:
parent
3e4e07c8ef
commit
bb9d4be884
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
{{else}}Next{{end}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<span id="boardmenu-bottom">
|
||||
[<a href="{{$.webroot}}">home</a>]
|
||||
[{{range $i, $boardlink := $.boards}}{{if gt $i 0}}/{{end}} <a href="{{$boardlink.WebPath `` `boardPage`}}/">{{$boardlink.Dir}}</a> {{end}}]
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue