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 11source "https://rubygems.org"
22ruby RUBY_VERSION
33
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!
124gem "jekyll" , "3.3.1"
135
146# This is the default theme for new Jekyll sites. You may change this to anything you like.
157gem "minima" , "~> 2.0"
168
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-
219# If you have any plugins, put them here!
2210group :jekyll_plugins do
2311 gem "jekyll-feed" , "~> 0.6"
Original file line number Diff line number Diff line change @@ -49,5 +49,8 @@ DEPENDENCIES
4949 jekyll-feed (~> 0.6 )
5050 minima (~> 2.0 )
5151
52+ RUBY VERSION
53+ ruby 2.3.3p222
54+
5255BUNDLED 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
99markdown : kramdown
1010theme : minima
1111permalink : pretty
12+ highlighter : pygments
1213
1314socket_key : 9c79f14df986a1ec693c
1415gems :
@@ -18,6 +19,10 @@ exclude:
1819 - Gemfile.lock
1920include :
2021 - _redirects
22+ collections :
23+ examples :
24+ title : Examples
25+ output : true
2126footer :
2227 copyright : TutorCruncher
2328address :
@@ -30,3 +35,5 @@ social:
3035 url : http://facebook.com/tutorcruncher
3136 - title : github
3237 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>
5555 ga ( 'create' , 'UA-41117087-4' , 'auto' ) ;
5656 ga ( 'send' , 'pageview' ) ;
5757</ 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 99 < span class ="icon-bar "> </ span >
1010 < span class ="icon-bar "> </ span >
1111 </ 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 >
1313 </ div >
1414
1515 <!-- Collect the nav links, forms, and other content for toggling -->
1616 < div class ="collapse navbar-collapse " id ="bs-example-navbar-collapse-1 ">
1717 < ul class ="nav navbar-nav navbar-right ">
1818 < li class ="hidden ">
19- < a href ="#page-top "> </ a >
19+ < a href ="{% unless page.permalink == '/' %}/{% endunless %} #page-top "> </ a >
2020 </ li >
2121 < li class ="page-scroll ">
22- < a href ="#our-tutors " > Our Tutors </ a >
22+ < a href ="/examples/ " > Socket Examples </ a >
2323 </ li >
2424 < 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 >
2629 </ li >
2730 < li class ="page-scroll ">
2831 < a href ="https://secure.dinotutors.com "> Sign in</ a >
3437 </ div >
3538 </ div >
3639</ nav >
40+ < script src ="{{ site.socket_url }} "> </ script >
You can’t perform that action at this time.
0 commit comments