add trailing slash to navigation items

fixes the problem that each navigation item first has to redirected to the version with trailing slash

closes https://github.com/ionic-team/ionic-site/issues/1223
This commit is contained in:
Jan Piotrowski 2017-08-05 17:27:02 +02:00 committed by GitHub
parent 9ab458bba2
commit 0cecf4e43f

View File

@ -22,6 +22,7 @@ module.exports = function jekyll(renderDocsProcessor) {
doc.URL = doc.outputPath.replace('docs//', 'docs/')
.replace('/index.md', '')
.replace('content/', '');
doc.URL = doc.URL+'/'; // add trailing slash
});
const betaDocs = [];