File tree Expand file tree Collapse file tree 16 files changed +219
-92
lines changed Expand file tree Collapse file tree 16 files changed +219
-92
lines changed Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
ruby RUBY_VERSION
3
3
4
- # Hello! This is where you manage which Jekyll version is used to run.
5
- # When you want to use a different version, change it below, save the
6
- # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
7
- #
8
- # bundle exec jekyll serve
9
- #
10
- # This will help ensure the proper Jekyll version is running.
11
- # Happy Jekylling!
12
4
gem "jekyll" , "3.3.1"
13
5
14
6
# This is the default theme for new Jekyll sites. You may change this to anything you like.
15
7
gem "minima" , "~> 2.0"
16
8
17
- # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
18
- # uncomment the line below. To upgrade, run `bundle update github-pages`.
19
- # gem "github-pages", group: :jekyll_plugins
20
-
21
9
# If you have any plugins, put them here!
22
10
group :jekyll_plugins do
23
11
gem "jekyll-feed" , "~> 0.6"
Original file line number Diff line number Diff line change @@ -49,5 +49,8 @@ DEPENDENCIES
49
49
jekyll-feed (~> 0.6 )
50
50
minima (~> 2.0 )
51
51
52
+ RUBY VERSION
53
+ ruby 2.3.3p222
54
+
52
55
BUNDLED WITH
53
- 1.11.2
56
+ 1.16.0
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ meta_author: Tom Hamilton Stubber
9
9
markdown : kramdown
10
10
theme : minima
11
11
permalink : pretty
12
+ highlighter : pygments
12
13
13
14
socket_key : 9c79f14df986a1ec693c
14
15
gems :
@@ -18,6 +19,10 @@ exclude:
18
19
- Gemfile.lock
19
20
include :
20
21
- _redirects
22
+ collections :
23
+ examples :
24
+ title : Examples
25
+ output : true
21
26
footer :
22
27
copyright : TutorCruncher
23
28
address :
@@ -30,3 +35,5 @@ social:
30
35
url : http://facebook.com/tutorcruncher
31
36
- title : github
32
37
url : http://github.com/tutorcruncher
38
+
39
+ socket_url : https://cdn.tutorcruncher.com/socket/latest/socket.js
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ title: Grid view example
4
+ permalink: /examples/grid-view/
5
+ description: An example of the tutors list in TutorCruncher socket using the Grid View.
6
+ ---
7
+ {% highlight html %}
8
+ < div id ="grid-view "> </ div >
9
+
10
+ < script >
11
+ socket ( '{{ site.socket_key }}' , {
12
+ router_mode : 'history' ,
13
+ element : '#grid-view' ,
14
+ mode : 'grid'
15
+ } ) ;
16
+ </ script >
17
+ {% endhighlight %}
18
+
19
+ < div id ="grid-view "> </ div >
20
+
21
+ < script >
22
+ socket ( '{{ site.socket_key }}' , {
23
+ router_mode : 'history' ,
24
+ element : '#grid-view' ,
25
+ mode : 'grid'
26
+ } ) ;
27
+ </ script >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ title: TutorCruncher Socket Examples
4
+ permalink: /examples/
5
+ index: True
6
+ description: Below is a list of examples of how Socket can work
7
+ ---
8
+ {% for example in site.examples %}
9
+ {% unless example.index %}
10
+ < p > < a href ="{{ example.permalink }} "> {{ example.title }}</ a > </ p >
11
+ {% endunless %}
12
+ {% endfor %}
13
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ title: Label example
4
+ permalink: /examples/labels-filter/
5
+ description: An example of the tutors list in TutorCruncher socket using the Labels filter. These tutors all have a label called London Tutors.
6
+ ---
7
+ {% highlight html %}
8
+ < div id ="label-filter "> </ div >
9
+
10
+ < script >
11
+ socket ( '{{ site.socket_key }}' , {
12
+ router_mode : 'history' ,
13
+ labels_include : [ 'london-tutors' ] ,
14
+ element : '#label-filter'
15
+ } ) ;
16
+ </ script >
17
+ {% endhighlight %}
18
+
19
+ < div id ="label-filter "> </ div >
20
+ < script >
21
+ socket ( '{{ site.socket_key }}' , {
22
+ router_mode : 'history' ,
23
+ labels_include : [ 'london-tutors' ] ,
24
+ element : '#label-filter'
25
+ } ) ;
26
+ </ script >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ title: List View Example
4
+ permalink: /examples/list-view/
5
+ description: An example of the tutors list in TutorCruncher socket using the List View
6
+ ---
7
+ {% highlight html %}
8
+ < div id ="list-view "> </ div >
9
+
10
+ < script >
11
+ socket ( '{{ site.socket_key }}' , {
12
+ router_mode : 'history' ,
13
+ element : '#list-view' ,
14
+ mode : 'list'
15
+ } ) ;
16
+ </ script >
17
+ {% endhighlight %}
18
+
19
+ < div id ="list-view "> </ div >
20
+
21
+ < script >
22
+ socket ( '{{ site.socket_key }}' , {
23
+ router_mode : 'history' ,
24
+ element : '#list-view' ,
25
+ mode : 'list'
26
+ } ) ;
27
+ </ script >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ title: Subject Filter Example
4
+ permalink: /examples/subject/29-english-language
5
+ description: An example of the tutors list in TutorCruncher socket using the Subject Filter
6
+ ---
7
+ {% highlight html %}
8
+ < div id ="subject-filter "> </ div >
9
+
10
+ < script >
11
+ socket ( '{{ site.socket_key }}' , {
12
+ router_mode : 'history' ,
13
+ element : '#subject-view' ,
14
+ mode : 'grid'
15
+ } ) ;
16
+ </ script >
17
+ {% endhighlight %}
18
+
19
+ < div id ="subject-view "> </ div >
20
+
21
+ < script >
22
+ socket ( '{{ site.socket_key }}' , {
23
+ router_mode : 'history' ,
24
+ element : '#subject-view' ,
25
+ mode : 'grid'
26
+ } ) ;
27
+ </ script >
Original file line number Diff line number Diff line change @@ -55,23 +55,10 @@ <h3>About Dino Tutors</h3>
55
55
ga ( 'create' , 'UA-41117087-4' , 'auto' ) ;
56
56
ga ( 'send' , 'pageview' ) ;
57
57
</ script >
58
- < script src ="{{ page.socket_url }} "> </ script >
59
- {% if page.socket_init_file %}
60
- < script src ="{{ page.socket_init_file }} "> </ script >
61
- {% else %}
62
- < script >
63
- socket ( '{{ site.socket_key }}' , {
64
- mode : 'enquiry' ,
65
- element : '#socket-enquiry'
66
- } ) ;
67
-
68
- socket ( '{{ site.socket_key }}' , {
69
- router_mode : 'history'
70
- } ) ;
71
- socket ( '{{ site.socket_key }}' , {
72
- mode : 'enquiry-modal' ,
73
- element : '#socket-enquiry-modal' ,
74
- router_mode : 'history'
75
- } )
76
- </ script >
77
- {% endif %}
58
+ < script >
59
+ socket ( '{{ site.socket_key }}' , {
60
+ mode : 'enquiry-modal' ,
61
+ element : '#socket-enquiry-modal' ,
62
+ router_mode : 'history'
63
+ } )
64
+ </ script >
Original file line number Diff line number Diff line change 9
9
< span class ="icon-bar "> </ span >
10
10
< span class ="icon-bar "> </ span >
11
11
</ button >
12
- < a class ="navbar-brand " href ="#page-top "> {{ site.title }}</ a >
12
+ < a class ="navbar-brand " href ="{% unless page.permalink == '/' %}/{% endunless %} #page-top "> {{ site.title }}</ a >
13
13
</ div >
14
14
15
15
<!-- Collect the nav links, forms, and other content for toggling -->
16
16
< div class ="collapse navbar-collapse " id ="bs-example-navbar-collapse-1 ">
17
17
< ul class ="nav navbar-nav navbar-right ">
18
18
< li class ="hidden ">
19
- < a href ="#page-top "> </ a >
19
+ < a href ="{% unless page.permalink == '/' %}/{% endunless %} #page-top "> </ a >
20
20
</ li >
21
21
< li class ="page-scroll ">
22
- < a href ="#our-tutors " > Our Tutors </ a >
22
+ < a href ="/examples/ " > Socket Examples </ a >
23
23
</ li >
24
24
< li class ="page-scroll ">
25
- < a href ="#about "> About</ a >
25
+ < a href ="{% unless page.permalink == '/' %}/{% endunless %}#our-tutors "> Our Tutors</ a >
26
+ </ li >
27
+ < li class ="page-scroll ">
28
+ < a href ="{% unless page.permalink == '/' %}/{% endunless %}#about "> About</ a >
26
29
</ li >
27
30
< li class ="page-scroll ">
28
31
< a href ="https://secure.dinotutors.com "> Sign in</ a >
34
37
</ div >
35
38
</ div >
36
39
</ nav >
40
+ < script src ="{{ site.socket_url }} "> </ script >
You can’t perform that action at this time.
0 commit comments