mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-03 05:11:55 +08:00
only add trailing slash on plugin pages
fixes that the trailing slash would have been added to the root and browser-usage.html as well
This commit is contained in:
parent
0cecf4e43f
commit
4e0673c8e9
@ -22,7 +22,10 @@ module.exports = function jekyll(renderDocsProcessor) {
|
||||
doc.URL = doc.outputPath.replace('docs//', 'docs/')
|
||||
.replace('/index.md', '')
|
||||
.replace('content/', '');
|
||||
doc.URL = doc.URL+'/'; // add trailing slash
|
||||
// add trailing slash to plugin pages
|
||||
if(!doc.URL.endsWith("/") && !doc.URL.endsWith(".html")) {
|
||||
doc.URL = doc.URL+'/';
|
||||
}
|
||||
});
|
||||
|
||||
const betaDocs = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user