1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-10-25 04:37:41 +00:00

Make a better recent changes page

This commit is contained in:
bouncepaw
2020-11-04 16:00:17 +05:00
parent 7a0e9ebcc9
commit 1fbbf81794
7 changed files with 83 additions and 71 deletions

View File

@@ -67,7 +67,7 @@ func wikilink(src string, state *GemLexerState) (href, text, class string) {
case strings.ContainsRune(href, ':'):
class = "wikilink_external"
default:
if !HyphaExists(href) {
if !HyphaExists(canonicalName(href)) {
class += " wikilink_new"
}
href = path.Join("/page", href)