mydoc_shuffle.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ---
  2. title: Shuffle layout
  3. tags: [special_layouts]
  4. last_updated: November 30, 2015
  5. keywords: shuffle, card layout, dynamic grid, doc portal, support portal
  6. 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."
  7. permalink: mydoc_shuffle.html
  8. sidebar: mydoc_sidebar
  9. folder: mydoc
  10. ---
  11. {% if site.output == "pdf" %}
  12. {{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}}
  13. {% endif %}
  14. {% unless site.output == "pdf" %}
  15. <script src="js/jquery.shuffle.min.js"></script>
  16. <script src="js/jquery.ba-throttle-debounce.min.js"></script>
  17. {% endunless %}
  18. <div class="filter-options">
  19. <button class="btn btn-primary" data-group="all">All</button>
  20. <button class="btn btn-primary" data-group="getting_started">Getting Started</button>
  21. <button class="btn btn-primary" data-group="formatting">Formatting</button>
  22. <button class="btn btn-primary" data-group="publishing">Publishing</button>
  23. <button class="btn btn-primary" data-group="content-types">Content types</button>
  24. <button class="btn btn-primary" data-group="single_sourcing">Single Sourcing</button>
  25. <button class="btn btn-primary" data-group="special_layouts">Special Layouts</button>
  26. </div>
  27. <div id="grid" class="row">
  28. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["getting_started"]'>
  29. <div class="panel panel-default">
  30. <div class="panel-heading">Getting started</div>
  31. <div class="panel-body">
  32. If you're getting started with Jekyll, see the links in this section. It will take you from the beginning level to comfortable.
  33. <ul>
  34. {% for page in site.pages %}
  35. {% for tag in page.tags %}
  36. {% if tag == "getting_started" %}
  37. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  38. {% endif %}
  39. {% endfor %}
  40. {% endfor %}
  41. </ul>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["content-types"]'>
  46. <div class="panel panel-default">
  47. <div class="panel-heading">Content types</div>
  48. <div class="panel-body">
  49. This section lists different content types and how to work with them.
  50. <ul>
  51. {% for page in site.pages %}
  52. {% for tag in page.tags %}
  53. {% if tag == "content-types" %}
  54. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  55. {% endif %}
  56. {% endfor %}
  57. {% endfor %}
  58. </ul>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["formatting"]'>
  63. <div class="panel panel-default">
  64. <div class="panel-heading">Formatting</div>
  65. <div class="panel-body">
  66. These topics get into formatting syntax, such as images and tables, that you'll use on each of your pages:
  67. <ul>
  68. {% for page in site.pages %}
  69. {% for tag in page.tags %}
  70. {% if tag == "formatting" %}
  71. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  72. {% endif %}
  73. {% endfor %}
  74. {% endfor %}
  75. </ul>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["single_sourcing"]'>
  80. <div class="panel panel-default">
  81. <div class="panel-heading">Single Sourcing</div>
  82. <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.
  83. <ul>
  84. {% for page in site.pages %}
  85. {% for tag in page.tags %}
  86. {% if tag == "single_sourcing" %}
  87. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  88. {% endif %}
  89. {% endfor %}
  90. {% endfor %}
  91. </ul>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["publishing"]'>
  96. <div class="panel panel-default">
  97. <div class="panel-heading">Publishing</div>
  98. <div class="panel-body">When you're building, publishing, and deploying your Jekyll site, you might find these topics helpful.
  99. <ul>
  100. {% for page in site.pages %}
  101. {% for tag in page.tags %}
  102. {% if tag == "publishing" %}
  103. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  104. {% endif %}
  105. {% endfor %}
  106. {% endfor %}
  107. </ul>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="col-xs-6 col-sm-4 col-md-4" data-groups='["special_layouts"]'>
  112. <div class="panel panel-default">
  113. <div class="panel-heading">Special Layouts</div>
  114. <div class="panel-body">
  115. These pages highlight special layouts outside of the conventional page and TOC hierarchy.
  116. <ul>
  117. {% for page in site.pages %}
  118. {% for tag in page.tags %}
  119. {% if tag == "special_layouts" %}
  120. <li><a href="{{page.url | remove: '/'}}">{{page.title}}</a></li>
  121. {% endif %}
  122. {% endfor %}
  123. {% endfor %}
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- sizer -->
  129. <div class="col-xs-6 col-sm-4 col-md-1 shuffle_sizer"></div>
  130. </div><!-- /#grid -->
  131. {% unless site.output == "pdf" %}
  132. {% include initialize_shuffle.html %}
  133. {% endunless %}
  134. {{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}}