template: Add temporary hack to handle breadcrumbs edge case.

Eventually the build system should handle the creation of breadcrumb navigation.
This commit is contained in:
Bradley Sepos 2016-11-19 14:45:55 -05:00
parent a0b229843d
commit cf5356491f
2 changed files with 6 additions and 1 deletions

View File

@ -156,5 +156,10 @@ $(document).ready(function(){
}
}
// temporary hack until build system creates breadcrumbs instead of template
if (docs.hasClass('landing') && docs.children('h1').first().text() == 'Versions'){
$('article.docs nav .breadcrumbs .language-separator').add('article.docs nav .breadcrumbs .language').css('display', 'inline');
}
docs.find('figure > a:has(img)').featherlight({type: 'image', openSpeed: 150, closeSpeed: 150});
});

View File

@ -33,5 +33,5 @@ Template:
- assets/js/vendor/jquery/jquery-2.2.3.min.js
- assets/js/vendor/js-cookie/js-cookie-2.1.1.min.js
- assets/js/vendor/featherlight/featherlight-1.4.0.min.js
- assets/js/scripts.js?2016090705
- assets/js/scripts.js?2016111901
...