mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
Redirect to correct landing page
This commit is contained in:
@@ -32,6 +32,16 @@
|
||||
<meta name="msapplication-config" content="https://cdn.rawgit.com/dokku/dokku/v0.4.14/docs/assets/favicons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<script>
|
||||
if ('{{DOC}}' == 'index.md') {
|
||||
var indexLink = '/{{NAME}}/';
|
||||
if ('{{REF}}' !== 'master') {
|
||||
indexLink = '/{{NAME}}~{{REF}}/';
|
||||
}
|
||||
window.location.replace(window.location.origin + indexLink);
|
||||
}
|
||||
</script>
|
||||
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.rawgit.com/dokku/dokku/v0.4.14/docs/assets/style.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
@@ -343,7 +353,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
if (currentVersion == 'master') {
|
||||
if (currentVersion === 'master') {
|
||||
document.querySelectorAll('.dev-warning')[0].style.position = 'relative';
|
||||
Array.prototype.forEach.call(document.querySelectorAll('.dev-warning'), function (el, i) {
|
||||
el.style.display = '';
|
||||
|
||||
Reference in New Issue
Block a user