|
7 | 7 |
|
8 | 8 | <head> |
9 | 9 |
|
| 10 | +<title>ChaiScript - Examples.</title> |
10 | 11 | {% include common.html %} |
11 | 12 |
|
12 | 13 | </head> |
|
16 | 17 |
|
17 | 18 | {% include header.html %} |
18 | 19 |
|
| 20 | +<div class="well well-sm"> |
| 21 | + <h3>Easy to follow complete examples.</h3> |
| 22 | + |
| 23 | + For more examples, look at the unittests folder in <a href="https://github.com/ChaiScript/ChaiScript/tree/master/unittests">source control</a>. The unittests cover every feature of ChaiScript. |
| 24 | +</div> |
| 25 | + |
19 | 26 | {% assign posts = site.tags.example | sort: 'id' %} |
20 | 27 |
|
21 | | -<div class="panel panel-info"> |
22 | | - <div class="panel-heading"> |
23 | | - <h3 class="panel-title">Examples</h3> |
24 | | - </div> |
25 | | - <div class="panel-body"> |
26 | | - <ul> |
27 | | - {% for post in posts %} |
28 | | - <li> |
29 | | - <a href="#{{ post.title | replace: ' ', '_' }}" onclick="$('#{{ post.title | replace: ' ', '_' }}').collapse('show'); window.location.hash = '#{{ post.title | replace: ' ', '_' }}';">{{ post.title }}</a> |
30 | | - </li> |
31 | | - {{ post.excerpt }} |
32 | | - {% endfor %} |
33 | | - </ul> |
| 28 | +<div class="body-with-margin"> |
| 29 | + <div class="panel panel-default"> |
| 30 | + <div class="panel-body"> |
| 31 | + <ul> |
| 32 | + {% for post in posts %} |
| 33 | + <li> |
| 34 | + <a href="#{{ post.title | replace: ' ', '_' }}">{{ post.title }}</a> |
| 35 | + </li> |
| 36 | + {{ post.excerpt }} |
| 37 | + {% endfor %} |
| 38 | + </ul> |
| 39 | + </div> |
34 | 40 | </div> |
35 | | -</div> |
36 | 41 |
|
37 | 42 |
|
38 | | -<div class="panel-group" id="accordion"> |
39 | 43 | {% for post in posts %} |
40 | | - <div class="panel panel-default"> |
41 | | - <div class="panel-heading"> |
42 | | - <h4 class="panel-title"> |
43 | | - <a data-toggle="collapse" data-parent="#accordion" href="#{{ post.title | replace: ' ', '_' }}"> |
44 | | - {{ post.title }} |
45 | | - </a> |
46 | | - </h4> |
47 | | - </div> |
48 | | - <div id="{{ post.title | replace: ' ', '_' }}" class="panel-collapse collapse in"> |
49 | | - <div class="panel-body"> |
50 | | - {{ post.content}} |
51 | | - </div> |
52 | | - </div> |
| 44 | + <div class="panel panel-default"> |
| 45 | + <div class="panel-body"> |
| 46 | + <h2 id="{{ post.title | replace: ' ', '_' }}"> {{ post.title }} </h2> |
| 47 | + {{ post.content}} |
53 | 48 | </div> |
| 49 | + </div> |
54 | 50 | {% endfor %} |
55 | | -</div> |
56 | 51 |
|
| 52 | +</div> |
57 | 53 |
|
58 | 54 | </body> |
0 commit comments