File tree Expand file tree Collapse file tree 3 files changed +38
-9
lines changed Expand file tree Collapse file tree 3 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// Customized by YassLab
5
5
6
- /* 改行位置の調整*/
7
- .ignore-pc {
8
- display :none ;
9
- }
10
- .ignore-sp {
11
- display :inline ;
12
- }
6
+ /* DocSearch by Algolia */
7
+ body {
8
+ font-family : sans-serif ;
9
+ padding : 1em ;
10
+ }
11
+ .ais-SearchBox { margin : 1em 0 ; }
12
+
13
+ /* 改行位置の調整 */
14
+ .ignore-pc {
15
+ displayplay :none ;
16
+ }
17
+ .ignore-sp {
18
+ display :inline ;
19
+ }
13
20
14
21
@media screen and (max-width : 640px ) {
15
22
.ignore-pc {
16
- display :inline ;
23
+ display :inline ;
17
24
}
18
25
.ignore-sp {
19
- display :none ;
26
+ display :none ;
20
27
}
21
28
}
22
29
Original file line number Diff line number Diff line change 45
45
が制作した動画です。道場の雰囲気が伝われば幸いです ;)
46
46
= render partial: 'shared/sns'
47
47
48
+ .ais-InstantSearch
49
+ .right-panel
50
+ %input#searchbox
51
+ #hits
52
+ #pagination
53
+
54
+
48
55
/
49
56
%section#events.detail-introduction.text-center
50
57
%h2 直近のイベント
Original file line number Diff line number Diff line change 54
54
/[if lt IE 9]
55
55
<script src=" https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" ></script>
56
56
<script src=" https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" ></script>
57
+
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" }/
60
+
57
61
%body
58
62
- flash.each do |message_type, message|
59
63
%div{:class => " alert alert-#{ message_type } " }= message
60
64
= yield
61
65
= scrivito_body_tags if using_scrivito?
62
66
= render 'shared/footer'
67
+ / 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
+ });
77
+
63
78
#fb-root
64
79
:javascript
65
80
(function (d , s , id ) {
You can’t perform that action at this time.
0 commit comments