From cf5356491f56c5060c2fec05d01ce70515850683 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Sat, 19 Nov 2016 14:45:55 -0500 Subject: [PATCH] template: Add temporary hack to handle breadcrumbs edge case. Eventually the build system should handle the creation of breadcrumb navigation. --- templates/mark1/assets/js/scripts.js | 5 +++++ templates/mark1/template.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/mark1/assets/js/scripts.js b/templates/mark1/assets/js/scripts.js index 58167f90..166dbec3 100644 --- a/templates/mark1/assets/js/scripts.js +++ b/templates/mark1/assets/js/scripts.js @@ -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}); }); diff --git a/templates/mark1/template.yaml b/templates/mark1/template.yaml index 07737acf..3997593f 100644 --- a/templates/mark1/template.yaml +++ b/templates/mark1/template.yaml @@ -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 ...