Compare commits
No commits in common. "965d2c87f5e365a0cf0bef8947dc252b86239bc4" and "a8fb7f62ad3436df891cf2fe8848cdcc33191633" have entirely different histories.
965d2c87f5
...
a8fb7f62ad
|
|
@ -664,10 +664,3 @@ input.input-line, input.input-line:active {
|
||||||
.search.input.is-error {
|
.search.input.is-error {
|
||||||
outline: red solid 4px;
|
outline: red solid 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
|
||||||
background: #deeeee;
|
|
||||||
color: #444;
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 2px 4px;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
8
main.go
8
main.go
|
|
@ -937,16 +937,8 @@ func renderLinks(pageText string, edit bool) string {
|
||||||
s = strings.TrimSuffix(s, "]]")
|
s = strings.TrimSuffix(s, "]]")
|
||||||
s = strings.TrimSpace(s)
|
s = strings.TrimSpace(s)
|
||||||
if tag {
|
if tag {
|
||||||
switch s {
|
|
||||||
case "TODO":
|
|
||||||
return fmt.Sprint(`[ ] `)
|
|
||||||
case "DONE":
|
|
||||||
return fmt.Sprint(`[X] `)
|
|
||||||
default:
|
|
||||||
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
|
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
editPart := ""
|
editPart := ""
|
||||||
if edit {
|
if edit {
|
||||||
editPart = "edit/"
|
editPart = "edit/"
|
||||||
|
|
|
||||||
|
|
@ -44,5 +44,9 @@
|
||||||
.edit {
|
.edit {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user