Skip to content

Commit

Permalink
fix(site): no prepended slash
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed May 2, 2018
1 parent 49ad211 commit cea1dc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/docs/processors/jekyll.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ module.exports = function jekyll(renderDocsProcessor) {
.replace('content/', '');
// add trailing slash to plugin pages
if(!doc.URL.endsWith("/") && !doc.URL.endsWith(".html")) {
doc.URL = doc.URL+'/';
doc.URL = doc.URL + '/';
}

doc.URL = '/' + doc.URL;
});

const betaDocs = [];
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/templates/native_menu.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
</li>
<@- for doc in docs @><@ if doc.URL and doc.private != true @>
<li class="capitalize {% if page.id == '<$ doc.name|lower|dashify $>' %}active{% endif %}">
<a href="/<$ doc.URL $>"><$ doc.name $><@ if doc.paid == true @> <span class="paid">Paid</span><@ endif @><@ if doc.beta == true @> <span class="beta">&beta;</span><@ endif @></a>
<a href="<$ doc.URL $>"><$ doc.name $><@ if doc.paid == true @> <span class="paid">Paid</span><@ endif @><@ if doc.beta == true @> <span class="beta">&beta;</span><@ endif @></a>
</li><@ endif @><@ endfor @>

0 comments on commit cea1dc1

Please sign in to comment.