futuro 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/artwork/animal/icon.svg +10 -0
  3. data/_includes/artwork/orwell/animal/flob.scss +5 -0
  4. data/_includes/artwork/orwell/animal/waldo.scss +45 -0
  5. data/_includes/html/assign/page.liquid +85 -0
  6. data/_includes/html/assign/site.liquid +88 -0
  7. data/_includes/html/layout/loop.liquid +32 -0
  8. data/_includes/html/layout/type.liquid +16 -0
  9. data/_includes/html/overlay/about.liquid +5 -2
  10. data/_includes/html/overlay/browse/book.liquid +14 -25
  11. data/_includes/html/overlay/browse/chapter.liquid +24 -19
  12. data/_includes/html/overlay/browse/page.liquid +50 -30
  13. data/_includes/html/overlay/browse.liquid +5 -5
  14. data/_includes/html/overlay/load.liquid +29 -9
  15. data/_includes/html/overlay/search.liquid +20 -12
  16. data/_includes/html/overlay/wrap.liquid +18 -0
  17. data/_includes/html/page/clippies.liquid +22 -0
  18. data/_includes/html/page/content/chart.liquid +8 -0
  19. data/_includes/html/page/content/header.liquid +42 -0
  20. data/_includes/html/page/content/loop/artwork/image.liquid +2 -0
  21. data/_includes/html/page/content/loop/artwork/video.liquid +4 -0
  22. data/_includes/html/page/content/loop/artwork.liquid +22 -0
  23. data/_includes/html/page/content/loop/chart/assign.liquid +30 -0
  24. data/_includes/html/page/content/loop/chart.liquid +38 -0
  25. data/_includes/html/page/content/loop/form/alert.liquid +14 -0
  26. data/_includes/html/page/content/loop/form/button.liquid +26 -0
  27. data/_includes/html/page/content/loop/form/callout.liquid +6 -0
  28. data/_includes/html/page/content/loop/form/checkbox.liquid +24 -0
  29. data/_includes/html/page/content/loop/form/date.liquid +197 -0
  30. data/_includes/html/page/content/loop/form/fee.liquid +9 -0
  31. data/_includes/html/page/content/loop/form/input.liquid +7 -0
  32. data/_includes/html/page/content/loop/form/item.liquid +38 -0
  33. data/_includes/html/page/content/loop/form/label.liquid +15 -0
  34. data/_includes/html/page/content/loop/form/legend.liquid +38 -0
  35. data/_includes/html/page/content/loop/form/message.liquid +6 -0
  36. data/_includes/html/page/content/loop/form/password.liquid +11 -0
  37. data/_includes/html/page/content/loop/form/radio.liquid +39 -0
  38. data/_includes/html/page/content/loop/form/select.liquid +22 -0
  39. data/_includes/html/page/content/loop/form/text.liquid +45 -0
  40. data/_includes/html/page/content/loop/form/textarea.liquid +18 -0
  41. data/_includes/html/page/content/loop/form/yousaved.liquid +10 -0
  42. data/_includes/html/page/content/loop/form.liquid +66 -0
  43. data/_includes/html/page/content/loop/header/back.liquid +6 -0
  44. data/_includes/html/page/content/loop/header/basket.liquid +8 -0
  45. data/_includes/html/page/content/loop/header/login.liquid +28 -0
  46. data/_includes/html/page/content/loop/header/logo.liquid +32 -0
  47. data/_includes/html/page/content/loop/header/search.liquid +16 -0
  48. data/_includes/html/page/content/loop/header/subheader.liquid +8 -0
  49. data/_includes/html/page/content/loop/header.liquid +18 -0
  50. data/_includes/html/page/content/loop/number.liquid +16 -0
  51. data/_includes/html/page/content/loop/pies.liquid +42 -0
  52. data/_includes/html/page/content/loop/roller/item.liquid +47 -0
  53. data/_includes/html/page/content/loop/roller.liquid +8 -0
  54. data/_includes/html/page/content/loop/screen/row.liquid +18 -0
  55. data/_includes/html/page/content/loop/screen/small.liquid +6 -0
  56. data/_includes/html/page/content/loop/screen/title.liquid +12 -0
  57. data/_includes/html/page/content/loop/screen.liquid +38 -0
  58. data/_includes/html/page/content/loop.liquid +10 -0
  59. data/_includes/html/page/content/more.liquid +10 -0
  60. data/_includes/html/page/content/roller.liquid +76 -0
  61. data/_includes/html/page/content.liquid +135 -0
  62. data/_includes/html/page/footnote.liquid +24 -0
  63. data/_includes/html/page/header.liquid +8 -34
  64. data/_includes/html/page/info.liquid +18 -23
  65. data/_includes/html/page/layout/home.liquid +7 -0
  66. data/_includes/html/page/layout/page.liquid +15 -24
  67. data/_includes/html/page/subtitle.liquid +1 -3
  68. data/_includes/html/page/title.liquid +18 -17
  69. data/_includes/html/page/topbar.liquid +16 -8
  70. data/_includes/html/page/{utils → util}/author.liquid +1 -1
  71. data/_includes/html/page/util/share.liquid +24 -0
  72. data/_includes/html/page/{utils → util}/update.liquid +1 -1
  73. data/_includes/html/page/util.liquid +28 -12
  74. data/_includes/html/search/loop.liquid +11 -0
  75. data/_includes/html/site/footer.liquid +10 -0
  76. data/_includes/html/site/header.liquid +10 -0
  77. data/_includes/html/site/scroller.liquid +68 -0
  78. data/_includes/svg/site/icon.liquid +17 -11
  79. data/_layouts/feed.html +37 -33
  80. data/_layouts/single.html +36 -31
  81. data/_sass/_bar.scss +1 -1
  82. data/_sass/_base.scss +10 -21
  83. data/_sass/_block.scss +7 -26
  84. data/_sass/_box.scss +1 -1
  85. data/_sass/_button.scss +2 -2
  86. data/_sass/_col.scss +2 -2
  87. data/_sass/_input.scss +14 -28
  88. data/_sass/_item.scss +20 -16
  89. data/_sass/_link.scss +42 -0
  90. data/_sass/_list.scss +21 -20
  91. data/_sass/_site.scss +3 -3
  92. data/_sass/_title.scss +74 -42
  93. data/_sass/area/book.scss +18 -0
  94. data/_sass/area/chapter.scss +15 -0
  95. data/_sass/area/content.scss +9 -0
  96. data/_sass/area/overlay.scss +50 -5
  97. data/_sass/area/page.scss +59 -20
  98. data/_sass/area/topbar.scss +5 -2
  99. data/_sass/block/chart.scss +44 -0
  100. data/_sass/block/custom.scss +9 -0
  101. data/_sass/block/form/alert.scss +17 -0
  102. data/_sass/block/form/checkbox.scss +42 -0
  103. data/_sass/block/form/header.scss +78 -0
  104. data/_sass/block/form/input.scss +51 -0
  105. data/_sass/block/form/item.scss +22 -0
  106. data/_sass/block/form/label.scss +15 -0
  107. data/_sass/block/form/legend.scss +70 -0
  108. data/_sass/block/form/login.scss +70 -0
  109. data/_sass/block/form/message.scss +9 -0
  110. data/_sass/block/form/password.scss +19 -0
  111. data/_sass/block/form/radio.scss +12 -0
  112. data/_sass/block/form/screen.scss +89 -0
  113. data/_sass/block/form/scroller.scss +8 -0
  114. data/_sass/block/form/search.scss +39 -0
  115. data/_sass/block/form/select.scss +49 -0
  116. data/_sass/block/form/subheader.scss +60 -0
  117. data/_sass/block/form/text.scss +20 -0
  118. data/_sass/block/form/title.scss +12 -0
  119. data/_sass/block/form.scss +17 -0
  120. data/_sass/block/navigation.scss +3 -3
  121. data/_sass/block/number.scss +9 -0
  122. data/_sass/block/pie.scss +14 -0
  123. data/_sass/block/results.scss +9 -5
  124. data/_sass/block/scroller.scss +12 -0
  125. data/_sass/block/stop.scss +0 -1
  126. data/_sass/block/util.scss +19 -17
  127. data/_sass/futuro.core.scss +74 -27
  128. data/_sass/helpers/extends/grid.scss +24 -0
  129. data/_sass/helpers/extends/layout.scss +27 -0
  130. data/_sass/helpers/extends.scss +22 -115
  131. data/_sass/helpers/mixins/layout.scss +11 -0
  132. data/_sass/helpers/mixins/mindsets.scss +0 -6
  133. data/_sass/helpers/mixins/patterns.scss +4 -4
  134. data/_sass/helpers/mixins/theme.scss +292 -210
  135. data/_sass/helpers/mixins.scss +1 -12
  136. data/_sass/helpers/themes.scss +10 -0
  137. data/_sass/helpers/variables.scss +55 -42
  138. data/_sass/title/overlay.scss +16 -17
  139. data/_sass/wrap/book.scss +1 -1
  140. data/_sass/wrap/browse.scss +26 -0
  141. data/_sass/wrap/chapter.scss +11 -1
  142. data/_sass/wrap/overlay.scss +54 -1
  143. data/_sass/wrap/page.scss +18 -1
  144. data/_sass/wrap/scroller.scss +1 -1
  145. data/assets/js/footer/custom/ActiveBook.js +10 -12
  146. data/assets/js/footer/custom/AnimateScroller.js +11 -0
  147. data/assets/js/footer/custom/Overlays.js +21 -21
  148. data/assets/js/footer/custom/RespondBrowse.js +80 -0
  149. data/assets/js/footer/custom/Settings.js +9 -5
  150. data/assets/js/footer/custom/SetupBrowse.js +115 -0
  151. data/assets/js/footer/custom/SetupHome.js +23 -6
  152. data/assets/js/footer/custom/SiteFunc.js +17 -11
  153. data/assets/js/footer/custom/StartBrowse.js +95 -59
  154. data/assets/js/footer/custom/SwitchFocus.js +6 -6
  155. data/assets/js/footer/custom/UtilShare.js +14 -8
  156. data/assets/js/footer/vendor/gsap-scramble.js +11 -0
  157. data/assets/js/futuro.footer.custom.js +1 -1
  158. data/assets/js/futuro.footer.vendor.js +12 -0
  159. data/assets/js/futuro.header.custom.js +1 -1
  160. data/assets/js/header/custom/Color.js +39 -27
  161. data/assets/js/header/custom/Config.js +16 -0
  162. data/assets/js/header/custom/Overlay.js +21 -34
  163. data/assets/js/header/custom/Site.js +5 -0
  164. metadata +100 -38
  165. data/_includes/html/assign.liquid +0 -7
  166. data/_includes/html/filter/loop.liquid +0 -31
  167. data/_includes/html/filter/type.liquid +0 -31
  168. data/_includes/html/loop/artwork/book/number.liquid +0 -7
  169. data/_includes/html/loop/artwork/book/pies.liquid +0 -41
  170. data/_includes/html/loop/artwork/book/textbox.liquid +0 -16
  171. data/_includes/html/loop/artwork/book/video.liquid +0 -4
  172. data/_includes/html/loop/artwork/book.liquid +0 -38
  173. data/_includes/html/loop/artwork/docs.liquid +0 -31
  174. data/_includes/html/loop/search.liquid +0 -16
  175. data/_includes/html/overlay.liquid +0 -23
  176. data/_includes/html/page/artwork.liquid +0 -27
  177. data/_includes/html/page/layout/chapter.liquid +0 -32
  178. data/_includes/html/page/layout/custom.liquid +0 -79
  179. data/_includes/html/page/layout/panel.liquid +0 -15
  180. data/_includes/html/page/layout/tree.liquid +0 -15
  181. data/_includes/html/page/utils/share.liquid +0 -18
  182. data/_includes/svg/site/btn/search.svg +0 -1
  183. data/_sass/_area.scss +0 -52
  184. data/_sass/_lnk.scss +0 -32
  185. data/_sass/area/overlay/about.scss +0 -10
  186. data/_sass/area/overlay/browse.scss +0 -6
  187. data/_sass/area/overlay/load.scss +0 -10
  188. data/_sass/area/overlay/mobile.scss +0 -9
  189. data/_sass/area/overlay/search.scss +0 -6
  190. data/_sass/block/browse.scss +0 -35
  191. data/_sass/helpers/variables/patterns.scss +0 -10
  192. data/_sass/wrap/overlay/legacy.scss +0 -18
  193. data/_sass/wrap/overlay/load.scss +0 -4
  194. data/_sass/wrap/overlay/mobile.scss +0 -8
  195. data/_sass/wrap/overlay/search.scss +0 -4
  196. data/assets/js/footer/custom/ExpandBlock.js +0 -21
  197. data/assets/js/footer/custom/ScrollFunc.js +0 -41
  198. data/assets/js/footer/custom/SplitCode.js +0 -14
@@ -0,0 +1,135 @@
1
+
2
+ {% if PageIsChapter %}
3
+
4
+ <div class="area {{ PageType }} {{ PageBook | prepend : 'book-' }} {{ PageChapter | prepend : 'chapter-' }}
5
+ {% if site.setup.style %}{{ SiteStyle }}{% endif %}">
6
+
7
+ {%- unless SiteIsDoc -%}
8
+
9
+ <h2>{{ page.weight | slice: 0,3 }}</h2>
10
+
11
+ {%- endunless -%}
12
+
13
+ {% else %}
14
+
15
+ {%- include html/page/subtitle.liquid -%}
16
+
17
+ <div class="area {{ PageType }} {{ PageTitle | prepend : 'title-' }}
18
+ {% if site.setup.style %}{{ SiteStyle }}{% endif %}
19
+ {% unless NoSubtitle %}has-subtitle{% endunless %}
20
+ {% if page.row %} has-row {% endif %}
21
+ {% if page.pies %}is-pie{% endif %}">
22
+
23
+ {% endif %}
24
+
25
+ {{ page.content | markdownify }}
26
+
27
+ {%- unless PageIsChapter -%}
28
+
29
+ {%- include {{ SiteContent | append : 'more.liquid' }} -%}
30
+
31
+ {% include html/page/util.liquid %}
32
+
33
+ {%- if page.break -%}
34
+
35
+ {% for i in (1..page.break) %}<br>{% endfor %}
36
+
37
+ {%- endif -%}
38
+
39
+ {%- if page.chart -%}
40
+
41
+ {%- include {{ SiteContent | append : 'chart.liquid' }} -%}
42
+
43
+ {%- endif -%}
44
+
45
+ {%- if page.number -%}
46
+
47
+ <div class="block number-container">
48
+
49
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="number" -%}
50
+
51
+ </div>
52
+
53
+ {%- endif -%}
54
+
55
+ {%- if page.pies -%}
56
+
57
+ <ul class="list pies">
58
+
59
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="pies" -%}
60
+
61
+ </ul>
62
+
63
+ {%- endif -%}
64
+
65
+ {%- if page.roller -%}
66
+
67
+ {%- include {{ SiteContent | append : 'roller.liquid' }} -%}
68
+
69
+ {%- endif -%}
70
+
71
+ {%- if page.artwork -%}
72
+
73
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="artwork" -%}
74
+
75
+ {%- endif -%}
76
+
77
+ {%- if page.form -%}
78
+
79
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="form" -%}
80
+
81
+ {%- endif -%}
82
+
83
+ {%- if page.header -%}
84
+
85
+ {%- include {{ SiteContent | append : 'header.liquid' }} -%}
86
+
87
+ {%- endif -%}
88
+
89
+ {%- if page.screen -%}
90
+
91
+ <div class="block screen-container">
92
+
93
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="screen" -%}
94
+
95
+ </div>
96
+
97
+ {%- endif -%}
98
+
99
+ {%- if page.loader -%}
100
+
101
+ <div class="loader page-wrap">
102
+
103
+ <div class="loader page-bg">
104
+
105
+ {%- include {{ SvgIcon }} type="carrier" -%}
106
+
107
+ </div>
108
+
109
+ <div class="loader page-bg ghost">
110
+
111
+ {%- include {{ SvgIcon }} type="carrier" -%}
112
+
113
+ </div>
114
+
115
+ <div class="loader page-bg ghost">
116
+
117
+ {%- include {{ SvgIcon }} type="carrier" -%}
118
+
119
+ </div>
120
+
121
+ </div>
122
+
123
+ {%- endif -%}
124
+
125
+ {%- if page.ticker -%}
126
+
127
+ <div class="ticker onemoment">
128
+
129
+ <div class="ticker message">{{ page.ticker }}</div>
130
+
131
+ </div>
132
+
133
+ {%- endif -%}
134
+
135
+ {%- endunless -%}
@@ -0,0 +1,24 @@
1
+
2
+ {%- if page.footnote -%}
3
+
4
+ <p class="block page-footnote">
5
+
6
+ {%- for item in page.footnote -%}
7
+
8
+ {%- if item.pre -%}
9
+
10
+ <strong>{{ item.pre | append : ':' }}</strong>
11
+
12
+ {%- endif -%}
13
+
14
+ {%- if item.msg -%}
15
+
16
+ {{ item.msg | prepend : ' ' }}
17
+
18
+ {%- endif -%}
19
+
20
+ {%- endfor -%}
21
+
22
+ </p>
23
+
24
+ {%- endif -%}
@@ -1,38 +1,12 @@
1
1
 
2
- {% assign style = site.setup.style | replace: ' ','-' | prepend: ' style-' | downcase %}
3
- {% assign type = page.type | prepend: ' type-' %}
4
- {% assign book = page.collection | prepend: ' book-' %}
5
- {% assign chapter = page.chapter | replace: ' ','-' | prepend: ' chapter-' | downcase %}
6
- {% assign topic = page.topic | prepend: ' topic-' | downcase %}
7
- {% assign title = page.title | replace: ' ','-' | prepend: ' title-' | downcase %}
8
- {% assign tag = page.tag | replace: ' ',' tag-' | prepend: ' tag-' %}
9
- {% assign id1 = page.chapter | replace: ' ','-' | append: '-' %}
10
- {% assign id2 = page.title | replace: ' ','-' %}
11
- {% assign id = id1 | append: id2 | downcase %}
12
-
13
2
  <div class="wrap
14
- {{ type }}
15
- {% if site.setup.style %}{{ style }}{% endif %}
16
- {% if page.collection %}{{ book }}{% endif %}
17
- {% if page.chapter %}{{ chapter }}{% endif %}
18
- {% if page.topic %}{{ topic }}{% endif %}
19
- {{ title }}">
20
-
21
- <div class="block stop" id="{{ id }}"></div>
22
-
23
- {% if page.type == 'chapter' %}
24
-
25
- <div class="area
26
- {{ type }}
27
- {% if site.setup.style %}{{ style }}{% endif %}
28
- {{ book }}
29
- {{ chapter }}">
30
-
31
- {% else %}
3
+ {{ PageType }}
4
+ {% if site.setup.style %}{{ SiteStyle }}{% endif %}
5
+ {% if page.collection %}{{ PageBook | prepend : 'book-' }}{% endif %}
6
+ {% if page.chapter %}{{ PageChapter | prepend : 'chapter-' }}{% endif %}
7
+ {% if page.topic %}{{ PageTopic | prepend : 'topic-' }} in-topic{% endif %}
8
+ {{ PageTitle | prepend : 'title-' }}">
32
9
 
33
- <div class="area
34
- {{ type }}
35
- {% if site.setup.style %}{{ style }}{% endif %}
36
- {% if page.tag %}{{ tag }}{% endif %}">
10
+ <div class="block stop" id="{{ ScrollID }}"></div>
37
11
 
38
- {% endif %}
12
+ {% include html/page/title.liquid %}
@@ -1,35 +1,30 @@
1
1
 
2
- {% assign info = page.type | append: '-info' %}
3
- {% assign chap = page.type | append: '-chapter' %}
4
- {% assign weight = page.type | append: '-weight' %}
5
- {% assign chapter = page.chapter | replace: ' ','-' | downcase %}
6
- {% assign bPath = page.collection | prepend: '/artwork/' %}
7
- {% assign cPath = chapter | append: '/icon.svg' %}
8
- {% assign cWrap = page.chapter | prepend: '<div>' | append: '</div>' %}
9
- {% assign cDivs = cWrap | split: ' ' | join: '</div><div>' %}
10
-
11
- <div class="block {{ info }}">
12
-
13
- <h5 class="title {{ chap }} {{ chapter }}">
14
- {{ cDivs }}
2
+ <div class="block {{ PageInfo }}">
3
+
4
+ <h5 class="title {{ TypeChapter }} {{ PageChapter | prepend : 'chapter-' }}">
5
+
6
+ {{ ChapterSplit }}
7
+
15
8
  </h5>
16
9
 
17
- {%- if page.icon -%}
10
+ {%- unless SiteIsDoc -%}
11
+
12
+ {%- if page.icon -%}
18
13
 
19
- <div class="block page-icon {{ chapter }}">
14
+ <div class="block {{ TypeIcon }} {{ PageChapter | prepend : 'chapter-' }}">
20
15
 
21
- {%- if site.setup.install == 'book' -%}
22
- {% include {{ cPath | prepend: '/artwork/' }} %}
23
- {%- else -%}
24
- {% include {{ bPath }}/{{ cPath }} %}
25
- {%- endif -%}
16
+ {%- include {{ IconPath | append : 'icon.svg' }} -%}
26
17
 
27
- </div>
18
+ </div>
28
19
 
29
- {%- endif -%}
20
+ {%- endif -%}
21
+
22
+ {%- endunless -%}
23
+
24
+ <h5 class="title {{ TypeWeight }} {{ PageChapter | prepend : 'chapter-' }}">
30
25
 
31
- <h5 class="title {{ weight }} {{ chapter }}">
32
26
  {{ page.weight | slice: 0,5 }}
27
+
33
28
  </h5>
34
29
 
35
30
  </div>
@@ -2,12 +2,15 @@
2
2
  {% assign loop = site.collections | sort: 'weight' %}
3
3
 
4
4
  <div class="wrap home">
5
+
5
6
  {% for book in loop %}
7
+
6
8
  {% assign title = book.label %}
7
9
  {% assign url = title | prepend: '/' | append: '/' %}
8
10
  {% assign svg = title | prepend: '/svg/site/book/' | append: '.svg' %}
9
11
 
10
12
  {% if book.live == true %}
13
+
11
14
  <div class="area book">
12
15
  <div class="wrap book {{ title }}">
13
16
  <a class="lnk book" href="{{ url }}">
@@ -15,7 +18,9 @@
15
18
  </a>
16
19
  </div>
17
20
  </div>
21
+
18
22
  {% elsif book.live == false %}
23
+
19
24
  <div class="area book">
20
25
  <div class="wrap book draft">
21
26
  <div class="lnk book">
@@ -23,7 +28,9 @@
23
28
  </div>
24
29
  </div>
25
30
  </div>
31
+
26
32
  {% endif %}
27
33
 
28
34
  {% endfor %}
35
+
29
36
  </div>
@@ -1,41 +1,32 @@
1
1
 
2
- {% include html/page/header.liquid %}
2
+ {%- include html/page/header.liquid -%}
3
3
 
4
- {%- if site.setup.style == 'docs' -%}
4
+ {%- include html/page/content.liquid -%}
5
5
 
6
- {% include html/page/title.liquid %}
7
-
8
- {% include html/page/artwork.liquid %}
9
-
10
- {% else %}
11
-
12
- <div class="{{ split }} left {% unless page.subtitle %}no-subtitle{% endunless %}">
13
-
14
- {% include html/page/title.liquid %}
6
+ </div>
15
7
 
16
- <div class="block page-content">
8
+ {%- if page.row -%}
17
9
 
18
- {% include html/page/subtitle.liquid %}
10
+ <!-- <div class="area {{ PageType }} row-content">
11
+ include {{ ContentLoop }} type="row" -%}
12
+ </div> -->
19
13
 
20
- {{ page.content | markdownify }}
14
+ {%- endif -%}
21
15
 
22
- {%- unless page.error -%}
23
- {% include html/page/util.liquid %}
24
- {%- endunless -%}
16
+ {%- include html/page/footnote.liquid -%}
25
17
 
26
- </div>
18
+ {%- if PageIsChapter -%}
27
19
 
28
- </div>
20
+ {%- include html/page/util.liquid -%}
29
21
 
30
- <div class="{{ split }} right">
22
+ {%- else -%}
31
23
 
32
- {% include html/page/artwork.liquid %}
24
+ {%- unless SiteIsDoc -%}
33
25
 
34
- {% include html/page/info.liquid %}
26
+ {%- include html/page/info.liquid -%}
35
27
 
36
- </div>
28
+ {%- endunless -%}
37
29
 
38
30
  {%- endif -%}
39
31
 
40
- </div>
41
32
  </div>
@@ -1,8 +1,6 @@
1
1
 
2
2
  {% if page.subtitle %}
3
3
 
4
- <h1 class="page-subtitle">
5
- {{ page.subtitle }}
6
- </h1>
4
+ <h1 class="subtitle {{ PageType }}{% if page.wide %} wide{% endif %}">{{ page.subtitle }}</h1>
7
5
 
8
6
  {% endif %}
@@ -1,35 +1,36 @@
1
1
 
2
- {% assign type = page.type | append: '-title' %}
3
- {% assign style = site.setup.style | prepend: 'style-' %}
4
- {% assign chapter = page.chapter | prepend: '<div>' | append: '</div>' %}
5
- {% assign cDivs = chapter | split: ' ' | join: '</div><div>' %}
2
+ {% unless PageInTopic %}
6
3
 
7
- {% unless page.topic %}
4
+ {%- if SiteIsDoc -%}
8
5
 
9
- {%- if site.setup.style == "docs" -%}
6
+ {% if PageIsChapter %}
10
7
 
11
- {% if page.type == "chapter" %}
12
-
13
- <h5 class="title {{ type }} {{ style }}">
14
- {{ cDivs }}
8
+ <h5 class="title {{ PageType }} {{ SiteStyle }}">
9
+ {{ ChapterSplit }}
15
10
  </h5>
16
11
 
17
- {% else %}
12
+ {% else %}
18
13
 
19
- <h5 class="title {{ type }} {{ style }}">
14
+ <h5 class="title {{ PageType }} {{ SiteStyle }}">
20
15
  {{ page.title }}
21
16
  </h5>
22
17
 
23
- {% endif %}
18
+ {% endif %}
24
19
 
25
20
  {%- else -%}
26
21
 
27
- <h3 class="title {{ type }}">
28
- {% if page.type == "chapter" %}
29
- {{ cDivs }}
22
+ <h3 class="title {{ PageType }}">
23
+
24
+ {%- if PageIsChapter -%}
25
+
26
+ {{ ChapterSplit }}
27
+
30
28
  {% else %}
29
+
31
30
  {{ page.title | truncate: 13 }}
32
- {% endif %}
31
+
32
+ {%- endif -%}
33
+
33
34
  </h3>
34
35
 
35
36
  {%- endif -%}
@@ -4,26 +4,30 @@
4
4
  <div class="area topbar">
5
5
 
6
6
  <div class="block navigation left">
7
+
7
8
  <button type="button" class="navigation about">
8
- {% include svg/site/btn/about.svg %}
9
+ {% include {{ SvgBtn | append : 'about.svg' }} %}
9
10
  </button>
11
+
10
12
  <button type="button" class="navigation browse">
11
- {% include svg/site/btn/browse.svg %}
13
+ {% include {{ SvgBtn | append : 'browse.svg' }} %}
12
14
  </button>
15
+
13
16
  </div>
14
17
 
15
18
  <div class="block navigation main">
19
+
16
20
  {% assign loop = site.collections | sort: 'weight' %}
17
21
 
18
22
  {% for page in loop %}
19
23
 
20
24
  {% if page.live %}
21
25
 
22
- <button type="button" class="navigation book {{ page.label }}">
23
- <a class="link navigation {{ page.label }}" href="{%- if site.setup.install == 'library' -%}{{ label }}{%- else -%}/{%- endif -%}">
26
+ <a class="link navigation {{ page.label }}" href="{%- if site.setup.install == 'library' -%}{{ page.label | prepend: '/' }}{%- else -%}/{%- endif -%}">
27
+ <button type="button" name="button">
24
28
  <strong>{{ page.label }}</strong>
25
- </a>
26
- </button>
29
+ </button>
30
+ </a>
27
31
 
28
32
  {% endif %}
29
33
 
@@ -32,15 +36,19 @@
32
36
  </div>
33
37
 
34
38
  <div class="block navigation right">
39
+
35
40
  <button type="button" class="navigation cart" style="display:none;">
36
- {% include svg/site/btn/cart.svg %}
41
+ {% include {{ SvgBtn | append : 'cart.svg' }} %}
37
42
  </button>
43
+
38
44
  <button type="button" class="navigation count" style="display:none;">
39
45
  <strong>0</strong>
40
46
  </button>
47
+
41
48
  <button type="button" class="navigation search">
42
- {% include svg/site/btn/search.svg %}
49
+ {% include {{ SvgIcon }} type="search" %}
43
50
  </button>
51
+
44
52
  </div>
45
53
 
46
54
  </div>
@@ -1,5 +1,5 @@
1
1
 
2
2
  <div class="block util-author">
3
- {% include svg/site/btn/author.svg %}
3
+ {% include {{ SvgBtn | append : 'author.svg' }} %}
4
4
  <p>By {{ page.author }}</p>
5
5
  </div>
@@ -0,0 +1,24 @@
1
+
2
+ {%- if SiteIsShare -%}
3
+
4
+ <div class="block util-share {{ PageType }}">
5
+
6
+ {% assign DynamicShare = page.type | prepend : 'share/' | append : '.svg' %}
7
+
8
+ {% include {{ SvgBtn | append : DynamicShare }} %}
9
+
10
+ {%- if PageIsChapter -%}
11
+
12
+ <h5></h5>
13
+
14
+ {%- else -%}
15
+
16
+ <p>Copy page</p>
17
+
18
+ {%- endif -%}
19
+
20
+ <div class="block util-url">{{ PageShare }}</div>
21
+
22
+ </div>
23
+
24
+ {%- endif -%}
@@ -1,5 +1,5 @@
1
1
 
2
2
  <div class="block util-update">
3
- {% include svg/site/btn/update.svg %}
3
+ {% include {{ SvgBtn | append : 'update.svg' }} %}
4
4
  <p>Updated {{ page.update | date: "%b %y" }}</p>
5
5
  </div>
@@ -1,20 +1,36 @@
1
1
 
2
- {% assign type = page.type %}
2
+ {%- unless SiteIsDoc or page.error -%}
3
3
 
4
- <div class="block util {{ type }}">
4
+ {%- if SiteIsShare or
5
+ page.update or
6
+ page.author -%}
5
7
 
6
- {% include html/page/utils/share.liquid %}
8
+ <div class="block util {{ PageType }}">
7
9
 
8
- {%- unless page.type == 'chapter' -%}
10
+ {%- if SiteIsShare -%}
9
11
 
10
- {% if page.update %}
11
- {% include html/page/utils/update.liquid %}
12
- {% endif %}
12
+ {% include {{ SiteUtil | append : 'share.liquid' }} %}
13
13
 
14
- {% if page.author %}
15
- {% include html/page/utils/author.liquid %}
16
- {% endif %}
14
+ {%- endif -%}
17
15
 
18
- {%- endunless -%}
16
+ {%- unless PageIsChapter -%}
17
+
18
+ {% if page.update %}
19
+
20
+ {% include {{ SiteUtil | append : 'update.liquid' }} %}
21
+
22
+ {% endif %}
23
+
24
+ {% if page.author %}
25
+
26
+ {% include {{ SiteUtil | append : 'author.liquid' }} %}
19
27
 
20
- </div>
28
+ {% endif %}
29
+
30
+ {%- endunless -%}
31
+
32
+ </div>
33
+
34
+ {%- endif -%}
35
+
36
+ {%- endunless -%}
@@ -0,0 +1,11 @@
1
+
2
+ {% for item in loop %}
3
+
4
+ {
5
+ "book" : "{{ item.collection }}",
6
+ "chapter" : "{{ item.chapter }}",
7
+ "title" : "{{ item.title }}",
8
+ "url" : "{{ item.url }}"
9
+ },
10
+
11
+ {% endfor %}
@@ -0,0 +1,10 @@
1
+
2
+ {% if site.footer %}
3
+
4
+ <footer>
5
+
6
+ {{ site.footer }}
7
+
8
+ </footer>
9
+
10
+ {% endif %}
@@ -0,0 +1,10 @@
1
+
2
+ {% if site.header %}
3
+
4
+ <header>
5
+
6
+ {{ site.header }}
7
+
8
+ </header>
9
+
10
+ {% endif %}
@@ -0,0 +1,68 @@
1
+
2
+ {% assign ScrollLength = 0 %}
3
+
4
+ {%- for item in loop -%}
5
+
6
+ {%- if item.type == 'chapter' -%}
7
+
8
+ {% assign ScrollLength = ScrollLength | plus : 1 %}
9
+
10
+ {%- endif -%}
11
+
12
+ {%- endfor -%}
13
+
14
+ {%- if ScrollLength > 1 -%}
15
+
16
+ <div class="block scroller">
17
+
18
+ <ol class="list scrollers">
19
+
20
+ {% assign ScrollItem = 0 %}
21
+
22
+ {%- for item in loop -%}
23
+
24
+ {%- if item.type == 'chapter' -%}
25
+
26
+ {% assign ScrollItem = ScrollItem | plus : 1 %}
27
+
28
+ {% assign ItemChapter = item.chapter | replace : ' ','-' | append : '-' | downcase %}
29
+ {% assign ItemTitle = item.title | replace : ' ','-' | downcase %}
30
+ {% assign ItemID = ItemChapter | append : ItemTitle %}
31
+
32
+ <li class="item scroller {{ ItemTitle }}">
33
+
34
+ <a href="{{ ItemID | prepend : '#' }}" class="link scroller">
35
+
36
+ {%- if ScrollItem == 1 -%}
37
+
38
+ <svg version="1.1" width="20" height="14" viewBox="0 0 20 14">
39
+ <path d="M10,0l9,14H1L10,0z"/>
40
+ </svg>
41
+
42
+ {%- elsif ScrollItem == (ScrollLength -1) -%}
43
+
44
+ <svg version="1.1" width="20" height="14" viewBox="0 0 20 14">
45
+ <path d="M10,14L1,0h18L10,14z"/>
46
+ </svg>
47
+
48
+ {%- else -%}
49
+
50
+ <svg version="1.1" width="20" height="20" viewBox="0 0 20 20">
51
+ <circle cx="10" cy="10" r="9"/>
52
+ </svg>
53
+
54
+ {%- endif -%}
55
+
56
+ </a>
57
+
58
+ </li>
59
+
60
+ {%- endif -%}
61
+
62
+ {%- endfor -%}
63
+
64
+ </ol>
65
+
66
+ </div>
67
+
68
+ {%- endif -%}