diff --git a/data/home/content/index.md b/data/home/content/index.md new file mode 100644 index 0000000..d0fe2e7 --- /dev/null +++ b/data/home/content/index.md @@ -0,0 +1,4 @@ +--- +pageName: SPC +language: en +--- \ No newline at end of file diff --git a/src/main/kotlin/center/sciprog/spcMisc.kt b/src/main/kotlin/center/sciprog/spcMisc.kt index 4732aef..db7f2ce 100644 --- a/src/main/kotlin/center/sciprog/spcMisc.kt +++ b/src/main/kotlin/center/sciprog/spcMisc.kt @@ -169,10 +169,13 @@ internal fun wrapper(contentBody: FlowContent.() -> Unit) = postprocess { languageMap.takeIf { it.size > 1 }?.let { languageMap -> div { - languageMap.forEach { (key, meta) -> - a(classes = "button primary small") { -// val pageUrl = URLBuilder(host).appendPathSegments(meta.string ?: "#") -// href = pageUrl.buildString().removeSuffix("/") //resolveRef(meta.string ?: "#") + languageMap.entries.forEachIndexed { index, (key, meta) -> + if (index != 0) { + a { + +"/" + } + } + a { href = page.resolvePageRef(meta.string ?: "#", site.parent!!) +key }