mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Fix extra hyphae appearing and wrong red link coloring
This commit is contained in:
parent
55597dddf2
commit
a1bce73751
1
hypha.go
1
hypha.go
@ -209,6 +209,7 @@ func Index(path string) {
|
|||||||
// If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an admnistrative importance!
|
// If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an admnistrative importance!
|
||||||
if node.IsDir() && isCanonicalName(node.Name()) && node.Name() != ".git" && node.Name() != "static" {
|
if node.IsDir() && isCanonicalName(node.Name()) && node.Name() != ".git" && node.Name() != "static" {
|
||||||
Index(filepath.Join(path, node.Name()))
|
Index(filepath.Join(path, node.Name()))
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -67,10 +67,10 @@ func wikilink(src string, state *GemLexerState) (href, text, class string) {
|
|||||||
case strings.ContainsRune(href, ':'):
|
case strings.ContainsRune(href, ':'):
|
||||||
class = "wikilink_external"
|
class = "wikilink_external"
|
||||||
default:
|
default:
|
||||||
href = path.Join("/page", href)
|
|
||||||
if !HyphaExists(href) {
|
if !HyphaExists(href) {
|
||||||
class += " wikilink_new"
|
class += " wikilink_new"
|
||||||
}
|
}
|
||||||
|
href = path.Join("/page", href)
|
||||||
}
|
}
|
||||||
return href, strings.TrimSpace(text), class
|
return href, strings.TrimSpace(text), class
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user