Switch to Bulma.
This commit is contained in:
parent
3c2c698269
commit
869fa82f14
6 changed files with 41 additions and 39 deletions
|
|
@ -50,7 +50,7 @@ func File(filepath string) string {
|
|||
|
||||
func Link(url, text, currentPath string, classes ...string) template.HTML {
|
||||
if currentPath == url {
|
||||
classes = append(classes, "active")
|
||||
classes = append(classes, "is-active")
|
||||
}
|
||||
|
||||
html := fmt.Sprintf(`<a class="%s" href="%s">%s</a>`, strings.Join(classes, " "), url, text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue