-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdoc_shuffle.html
164 lines (131 loc) · 6.41 KB
/
doc_shuffle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
title: Shuffle layout
tags: [special-layouts]
last_updated: August 12, 2015
keywords: shuffle, card layout, dynamic grid, doc portal, support portal
summary: "This layout shows an example of a knowledge-base style navigation system, where there is no hierarchy, just groups of pages that have certain tags."
---
{% if site.print == true %}
{{site.data.alerts.note}} The content on this page doesn't display well on PDF, but I included it anyway so you could see the problems this layout poses if you're including it in PDF. {{site.data.alerts.end}}
{% endif %}
{% unless site.print == true %}
<script src="js/jquery.shuffle.min.js"></script>
<script src="js/jquery.ba-throttle-debounce.min.js"></script>
{% endunless %}
<div class="filter-options">
<button class="btn btn-primary" data-group="all">All</button>
<button class="btn btn-primary" data-group="getting-started">Getting Started</button>
<button class="btn btn-primary" data-group="formatting">Formatting</button>
<button class="btn btn-primary" data-group="publishing">Publishing</button>
<button class="btn btn-primary" data-group="content-types">Content types</button>
<button class="btn btn-primary" data-group="single-sourcing">Single Sourcing</button>
<button class="btn btn-primary" data-group="special-layouts">Special Layouts</button>
</div>
<div id="grid" class="row">
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["getting-started"]'>
<div class="panel panel-default">
<div class="panel-heading">Getting started</div>
<div class="panel-body">
If you're getting started with Jekyll, see the links in this section. It will take you from the beginning level to comfortable.
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "getting-started" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["content-types"]'>
<div class="panel panel-default">
<div class="panel-heading">Content types</div>
<div class="panel-body">
This section lists different content types and how to work with them.
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "content-types" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["formatting"]'>
<div class="panel panel-default">
<div class="panel-heading">Formatting</div>
<div class="panel-body">
These topics get into formatting syntax, such as images and tables, that you'll use on each of your pages:
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "formatting" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["single-sourcing"]'>
<div class="panel panel-default">
<div class="panel-heading">Single Sourcing</div>
<div class="panel-body">These topics cover strategies for single-sourcing. Single sourcing refers to strategies for re-using the same source in different outputs for different audiences or purposes.
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "single-sourcing" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["publishing"]'>
<div class="panel panel-default">
<div class="panel-heading">Publishing</div>
<div class="panel-body">When you're building, publishing, and deploying your Jekyll site, you might find these topics helpful.
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "publishing" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-4" data-groups='["special-layouts"]'>
<div class="panel panel-default">
<div class="panel-heading">Special Layouts</div>
<div class="panel-body">
These pages highlight special layouts outside of the conventional page and TOC hierarchy.
<ul>
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "special-layouts" %}
<li><a href="{{page.url | replace: '/',''}}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<!-- sizer -->
<div class="col-xs-6 col-sm-4 col-md-1 shuffle_sizer"></div>
</div><!-- /#grid -->
{% unless site.print == true %}
{% include initialize_shuffle.html %}
{% endunless %}
{{site.data.alerts.note}} This was mostly an experiment to see if I could break away from the hierarchical TOC and provide a different way of arranging the content. However, this layout is somewhat problematic because it doesn't allow you to browse other navigation options on the side while viewing a topic.{{site.data.alerts.end}}