Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f13c95d

Browse files
authoredNov 21, 2016
Merge pull request #5 from biojava/wiki-no-s
Move /wikis to /wiki
2 parents 0c13769 + ce29ac4 commit f13c95d

File tree

596 files changed

+1495
-1496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

596 files changed

+1495
-1496
lines changed
 

‎404.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@
33
title: 404 Page Not Found
44
---
55
<script>
6-
var allposts = [];
6+
var allposts = [];
77
function redirectToCorrectPage() {
8-
{% for post in site.pages %}
9-
allposts.push("{{ post.url }}");
10-
{% endfor %}
11-
{% for post in site.wikis %}
12-
allposts.push("{{ post.url }}");
13-
{% endfor %}
8+
{% for post in site.pages %}
9+
allposts.push("{{ post.url }}");
10+
{% endfor %}
11+
{% for post in site.wiki %}
12+
allposts.push("{{ post.url }}");
13+
{% endfor %}
1414
var url = window.location.pathname;
1515
// strip trailing /
16-
if (url.slice(-1) === "/") {
17-
url = url.slice(0, -1);
16+
if (url.slice(-1) === "/") {
17+
url = url.slice(0, -1);
1818
}
19-
var allpostsUpperCase = allposts.map(function(value) {
19+
var allpostsUpperCase = allposts.map(function(value) {
2020
// strip trailing /
21-
if (value.slice(-1) === "/") {
22-
value = value.slice(0, -1);
21+
if (value.slice(-1) === "/") {
22+
value = value.slice(0, -1);
2323
}
24-
return value.toUpperCase();
25-
});
26-
var i = allpostsUpperCase.indexOf(url.toUpperCase());
27-
if (i != -1) {
28-
console.log(allposts[i]);
29-
window.location = allposts[i];
30-
}
31-
}
24+
return value.toUpperCase();
25+
});
26+
var i = allpostsUpperCase.indexOf(url.toUpperCase());
27+
if (i != -1) {
28+
console.log(allposts[i]);
29+
window.location = allposts[i];
30+
}
31+
}
3232
window.onload = redirectToCorrectPage;
3333
</script>
34-
<p>Sorry this page does not exist =(</p>
34+
<p>Sorry this page does not exist =(</p>

‎_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ release:
7575
legacy: 1.9.1
7676

7777
collections:
78-
wikis :
78+
wiki:
7979
output: true
80-
permalink: /wikis/:path/
80+
permalink: /wiki/:path/
8181
post_dirs: false
8282
layout: page
8383

0 commit comments

Comments
 (0)