Skip to content
Snippets Groups Projects
Verified Commit a74b8dfe authored by Ed Summers's avatar Ed Summers
Browse files

Title of home page is Welcome

@ntnsndr in Matrix suggested that Welcome would be more friendly than
Home: https://matrix.to/#/!UqqWnMulCJMGobLvod:matrix.org/$ttyQ0fW66jgsgbxVvtKYMXwKTNe6PXafmo7_JV8ud5M?via=matrix.org&via=beeper.com

Since the page titles are currently derived from the Wiki file name, the
function has a special case for `home.md`.
parent 0f915a22
Branches
No related tags found
No related merge requests found
......@@ -48,6 +48,10 @@ function pathToTitle(path, truncate = true) {
var path = path.split('/')
if (truncate && path.length)
path = path.splice(path.length-1);
// special case the home page to be a bit more friendly :)
if (path[0] == 'home.md') return 'WELCOME'
return path.map(
c =>
c.replace(/[.](md|html)$/, '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment