aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/JekyllFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-16 18:45:55 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-16 18:45:55 +0100
commit4591cbccbe3bd0afb9c89471c4753a7be80818d0 (patch)
tree48a72393770d090b82c57db7df69843c8e1ef6dd /src/Formats/JekyllFormatService.kt
parent4b75751845b6d63a642cac1017ada30f2549bf14 (diff)
downloaddokka-4591cbccbe3bd0afb9c89471c4753a7be80818d0.tar.gz
dokka-4591cbccbe3bd0afb9c89471c4753a7be80818d0.tar.bz2
dokka-4591cbccbe3bd0afb9c89471c4753a7be80818d0.zip
use same code for calculating page titles in HTML and Jekyll
Diffstat (limited to 'src/Formats/JekyllFormatService.kt')
-rw-r--r--src/Formats/JekyllFormatService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Formats/JekyllFormatService.kt b/src/Formats/JekyllFormatService.kt
index 93861113..93ba4704 100644
--- a/src/Formats/JekyllFormatService.kt
+++ b/src/Formats/JekyllFormatService.kt
@@ -15,6 +15,6 @@ public open class JekyllFormatService(locationService: LocationService,
}
protected open fun appendFrontMatter(nodes: Iterable<DocumentationNode>, to: StringBuilder) {
- to.appendln("title: ${nodes.first().name}")
+ to.appendln("title: ${getPageTitle(nodes)}")
}
} \ No newline at end of file