File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -34,4 +34,8 @@ def kata_description
34
34
def using_scrivito?
35
35
!@obj . nil?
36
36
end
37
+
38
+ def is_kata?
39
+ request . path . starts_with? "/kata"
40
+ end
37
41
end
Original file line number Diff line number Diff line change 56
56
<script src=" https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" ></script>
57
57
58
58
/ at the end of the HEAD
59
- %link{:href => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" , :rel => " stylesheet" }/
59
+ - if is_kata?
60
+ %link{:href => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" , :rel => " stylesheet" } if is_kata?
60
61
61
62
%body
62
63
- flash.each do |message_type, message|
65
66
= scrivito_body_tags if using_scrivito?
66
67
= render 'shared/footer'
67
68
/ at the end of the BODY
68
- %script{:src => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" ,
69
- :type => " text/javascript" }
70
- :javascript
71
- docsearch({
72
- apiKey: '315da3c406c3fa374a0696590f4821a3',
73
- indexName: 'coderdojo',
74
- inputSelector: '#searchbox',
75
- debug: false // Set debug to true if you want to inspect the dropdown
76
- });
69
+ - if is_kata?
70
+ %script{:src => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" ,
71
+ :type => " text/javascript" }
72
+ :javascript
73
+ docsearch({
74
+ apiKey: '315da3c406c3fa374a0696590f4821a3',
75
+ indexName: 'coderdojo',
76
+ inputSelector: '#searchbox',
77
+ debug: false // Set debug to true if you want to inspect the dropdown
78
+ });
77
79
78
80
#fb-root
79
81
:javascript
You can’t perform that action at this time.
0 commit comments