jekyll-scouts_uk_2018 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +28 -0
  3. data/README.md +108 -0
  4. data/_config.yml +0 -0
  5. data/_includes/footer.html +17 -0
  6. data/_includes/head.html +7 -0
  7. data/_includes/header-logo.html +2 -0
  8. data/_includes/header-navigation.html +31 -0
  9. data/_includes/header-text.html +3 -0
  10. data/_includes/header.html +15 -0
  11. data/_includes/social-links.html +10 -0
  12. data/_layouts/default.html +17 -0
  13. data/_layouts/page.html +11 -0
  14. data/_layouts/section.html +71 -0
  15. data/_sass/footer.scss +54 -0
  16. data/_sass/header.scss +136 -0
  17. data/_sass/print.scss +34 -0
  18. data/_sass/sections.scss +67 -0
  19. data/assets/css/main.scss +144 -0
  20. data/assets/favicon.ico +0 -0
  21. data/assets/images/YouthApproved-100.png +0 -0
  22. data/assets/images/YouthApproved-320.png +0 -0
  23. data/assets/images/YouthApproved-480.png +0 -0
  24. data/assets/images/YouthApproved-640.png +0 -0
  25. data/assets/images/YouthApproved.png +0 -0
  26. data/assets/images/YouthApprovedBronze-100.png +0 -0
  27. data/assets/images/YouthApprovedBronze-320.png +0 -0
  28. data/assets/images/YouthApprovedBronze-480.png +0 -0
  29. data/assets/images/YouthApprovedBronze-640.png +0 -0
  30. data/assets/images/YouthApprovedBronze.png +0 -0
  31. data/assets/images/YouthApprovedFoundation-100.png +0 -0
  32. data/assets/images/YouthApprovedFoundation-320.png +0 -0
  33. data/assets/images/YouthApprovedFoundation-480.png +0 -0
  34. data/assets/images/YouthApprovedFoundation-640.png +0 -0
  35. data/assets/images/YouthApprovedFoundation.png +0 -0
  36. data/assets/images/logos/ActiveSupportBlack-100.png +0 -0
  37. data/assets/images/logos/ActiveSupportBlack-320.png +0 -0
  38. data/assets/images/logos/ActiveSupportBlack-480.png +0 -0
  39. data/assets/images/logos/ActiveSupportBlack-640.png +0 -0
  40. data/assets/images/logos/ActiveSupportBlack-800.png +0 -0
  41. data/assets/images/logos/ActiveSupportBlack.png +0 -0
  42. data/assets/images/logos/ActiveSupportPurple-100.png +0 -0
  43. data/assets/images/logos/ActiveSupportPurple-320.png +0 -0
  44. data/assets/images/logos/ActiveSupportPurple-480.png +0 -0
  45. data/assets/images/logos/ActiveSupportPurple-640.png +0 -0
  46. data/assets/images/logos/ActiveSupportPurple-800.png +0 -0
  47. data/assets/images/logos/ActiveSupportPurple.png +0 -0
  48. data/assets/images/logos/ActiveSupportWhite-100.png +0 -0
  49. data/assets/images/logos/ActiveSupportWhite-320.png +0 -0
  50. data/assets/images/logos/ActiveSupportWhite-480.png +0 -0
  51. data/assets/images/logos/ActiveSupportWhite-640.png +0 -0
  52. data/assets/images/logos/ActiveSupportWhite-800.png +0 -0
  53. data/assets/images/logos/ActiveSupportWhite.png +0 -0
  54. data/assets/images/logos/BeaversBlack-100.png +0 -0
  55. data/assets/images/logos/BeaversBlack-320.png +0 -0
  56. data/assets/images/logos/BeaversBlack-480.png +0 -0
  57. data/assets/images/logos/BeaversBlack-640.png +0 -0
  58. data/assets/images/logos/BeaversBlack-800.png +0 -0
  59. data/assets/images/logos/BeaversBlack.png +0 -0
  60. data/assets/images/logos/BeaversBlue-100.png +0 -0
  61. data/assets/images/logos/BeaversBlue-320.png +0 -0
  62. data/assets/images/logos/BeaversBlue-480.png +0 -0
  63. data/assets/images/logos/BeaversBlue-640.png +0 -0
  64. data/assets/images/logos/BeaversBlue-800.png +0 -0
  65. data/assets/images/logos/BeaversBlue.png +0 -0
  66. data/assets/images/logos/BeaversColourful-100.png +0 -0
  67. data/assets/images/logos/BeaversColourful-320.png +0 -0
  68. data/assets/images/logos/BeaversColourful-480.png +0 -0
  69. data/assets/images/logos/BeaversColourful-640.png +0 -0
  70. data/assets/images/logos/BeaversColourful-800.png +0 -0
  71. data/assets/images/logos/BeaversColourful.png +0 -0
  72. data/assets/images/logos/BeaversWhite-100.png +0 -0
  73. data/assets/images/logos/BeaversWhite-320.png +0 -0
  74. data/assets/images/logos/BeaversWhite-480.png +0 -0
  75. data/assets/images/logos/BeaversWhite-640.png +0 -0
  76. data/assets/images/logos/BeaversWhite-800.png +0 -0
  77. data/assets/images/logos/BeaversWhite.png +0 -0
  78. data/assets/images/logos/CubsBlack-100.png +0 -0
  79. data/assets/images/logos/CubsBlack-320.png +0 -0
  80. data/assets/images/logos/CubsBlack-480.png +0 -0
  81. data/assets/images/logos/CubsBlack-640.png +0 -0
  82. data/assets/images/logos/CubsBlack.png +0 -0
  83. data/assets/images/logos/CubsGreen-100.png +0 -0
  84. data/assets/images/logos/CubsGreen-320.png +0 -0
  85. data/assets/images/logos/CubsGreen-480.png +0 -0
  86. data/assets/images/logos/CubsGreen-640.png +0 -0
  87. data/assets/images/logos/CubsGreen.png +0 -0
  88. data/assets/images/logos/CubsWhite-100.png +0 -0
  89. data/assets/images/logos/CubsWhite-320.png +0 -0
  90. data/assets/images/logos/CubsWhite-480.png +0 -0
  91. data/assets/images/logos/CubsWhite-640.png +0 -0
  92. data/assets/images/logos/CubsWhite.png +0 -0
  93. data/assets/images/logos/ExplorersBlack-100.png +0 -0
  94. data/assets/images/logos/ExplorersBlack-320.png +0 -0
  95. data/assets/images/logos/ExplorersBlack-480.png +0 -0
  96. data/assets/images/logos/ExplorersBlack-640.png +0 -0
  97. data/assets/images/logos/ExplorersBlack-800.png +0 -0
  98. data/assets/images/logos/ExplorersBlack.png +0 -0
  99. data/assets/images/logos/ExplorersBlue-100.png +0 -0
  100. data/assets/images/logos/ExplorersBlue-320.png +0 -0
  101. data/assets/images/logos/ExplorersBlue-480.png +0 -0
  102. data/assets/images/logos/ExplorersBlue-640.png +0 -0
  103. data/assets/images/logos/ExplorersBlue-800.png +0 -0
  104. data/assets/images/logos/ExplorersBlue.png +0 -0
  105. data/assets/images/logos/ExplorersWhite-100.png +0 -0
  106. data/assets/images/logos/ExplorersWhite-320.png +0 -0
  107. data/assets/images/logos/ExplorersWhite-480.png +0 -0
  108. data/assets/images/logos/ExplorersWhite-640.png +0 -0
  109. data/assets/images/logos/ExplorersWhite-800.png +0 -0
  110. data/assets/images/logos/ExplorersWhite.png +0 -0
  111. data/assets/images/logos/FleurDeLisBlack-100.png +0 -0
  112. data/assets/images/logos/FleurDeLisBlack-320.png +0 -0
  113. data/assets/images/logos/FleurDeLisBlack-480.png +0 -0
  114. data/assets/images/logos/FleurDeLisBlack-640.png +0 -0
  115. data/assets/images/logos/FleurDeLisBlack-800.png +0 -0
  116. data/assets/images/logos/FleurDeLisBlack.png +0 -0
  117. data/assets/images/logos/FleurDeLisBlue-100.png +0 -0
  118. data/assets/images/logos/FleurDeLisBlue-320.png +0 -0
  119. data/assets/images/logos/FleurDeLisBlue-480.png +0 -0
  120. data/assets/images/logos/FleurDeLisBlue-640.png +0 -0
  121. data/assets/images/logos/FleurDeLisBlue-800.png +0 -0
  122. data/assets/images/logos/FleurDeLisBlue.png +0 -0
  123. data/assets/images/logos/FleurDeLisWhite-100.png +0 -0
  124. data/assets/images/logos/FleurDeLisWhite-320.png +0 -0
  125. data/assets/images/logos/FleurDeLisWhite-480.png +0 -0
  126. data/assets/images/logos/FleurDeLisWhite-640.png +0 -0
  127. data/assets/images/logos/FleurDeLisWhite-800.png +0 -0
  128. data/assets/images/logos/FleurDeLisWhite.png +0 -0
  129. data/assets/images/logos/LogoLinearBlack-100.png +0 -0
  130. data/assets/images/logos/LogoLinearBlack-320.png +0 -0
  131. data/assets/images/logos/LogoLinearBlack-480.png +0 -0
  132. data/assets/images/logos/LogoLinearBlack-640.png +0 -0
  133. data/assets/images/logos/LogoLinearBlack-800.png +0 -0
  134. data/assets/images/logos/LogoLinearBlack.png +0 -0
  135. data/assets/images/logos/LogoLinearBlue-100.png +0 -0
  136. data/assets/images/logos/LogoLinearBlue-320.png +0 -0
  137. data/assets/images/logos/LogoLinearBlue-480.png +0 -0
  138. data/assets/images/logos/LogoLinearBlue-640.png +0 -0
  139. data/assets/images/logos/LogoLinearBlue-800.png +0 -0
  140. data/assets/images/logos/LogoLinearBlue.png +0 -0
  141. data/assets/images/logos/LogoLinearWhite-100.png +0 -0
  142. data/assets/images/logos/LogoLinearWhite-320.png +0 -0
  143. data/assets/images/logos/LogoLinearWhite-480.png +0 -0
  144. data/assets/images/logos/LogoLinearWhite-640.png +0 -0
  145. data/assets/images/logos/LogoLinearWhite-800.png +0 -0
  146. data/assets/images/logos/LogoLinearWhite.png +0 -0
  147. data/assets/images/logos/LogoStackedBlack-100.png +0 -0
  148. data/assets/images/logos/LogoStackedBlack-320.png +0 -0
  149. data/assets/images/logos/LogoStackedBlack-480.png +0 -0
  150. data/assets/images/logos/LogoStackedBlack-640.png +0 -0
  151. data/assets/images/logos/LogoStackedBlack-800.png +0 -0
  152. data/assets/images/logos/LogoStackedBlack.png +0 -0
  153. data/assets/images/logos/LogoStackedBlue-100.png +0 -0
  154. data/assets/images/logos/LogoStackedBlue-320.png +0 -0
  155. data/assets/images/logos/LogoStackedBlue-480.png +0 -0
  156. data/assets/images/logos/LogoStackedBlue-640.png +0 -0
  157. data/assets/images/logos/LogoStackedBlue-800.png +0 -0
  158. data/assets/images/logos/LogoStackedBlue.png +0 -0
  159. data/assets/images/logos/LogoStackedPurple-100.png +0 -0
  160. data/assets/images/logos/LogoStackedPurple-320.png +0 -0
  161. data/assets/images/logos/LogoStackedPurple-480.png +0 -0
  162. data/assets/images/logos/LogoStackedPurple-640.png +0 -0
  163. data/assets/images/logos/LogoStackedPurple-800.png +0 -0
  164. data/assets/images/logos/LogoStackedPurple.png +0 -0
  165. data/assets/images/logos/LogoStackedWhite-100.png +0 -0
  166. data/assets/images/logos/LogoStackedWhite-320.png +0 -0
  167. data/assets/images/logos/LogoStackedWhite-480.png +0 -0
  168. data/assets/images/logos/LogoStackedWhite-640.png +0 -0
  169. data/assets/images/logos/LogoStackedWhite-800.png +0 -0
  170. data/assets/images/logos/LogoStackedWhite.png +0 -0
  171. data/assets/images/logos/NetworkBlack-100.png +0 -0
  172. data/assets/images/logos/NetworkBlack-320.png +0 -0
  173. data/assets/images/logos/NetworkBlack-480.png +0 -0
  174. data/assets/images/logos/NetworkBlack.png +0 -0
  175. data/assets/images/logos/NetworkWhite-100.png +0 -0
  176. data/assets/images/logos/NetworkWhite-320.png +0 -0
  177. data/assets/images/logos/NetworkWhite-480.png +0 -0
  178. data/assets/images/logos/NetworkWhite.png +0 -0
  179. data/assets/images/logos/ScoutsBlack-100.png +0 -0
  180. data/assets/images/logos/ScoutsBlack-320.png +0 -0
  181. data/assets/images/logos/ScoutsBlack-480.png +0 -0
  182. data/assets/images/logos/ScoutsBlack-640.png +0 -0
  183. data/assets/images/logos/ScoutsBlack-800.png +0 -0
  184. data/assets/images/logos/ScoutsBlack.png +0 -0
  185. data/assets/images/logos/ScoutsGreen-100.png +0 -0
  186. data/assets/images/logos/ScoutsGreen-320.png +0 -0
  187. data/assets/images/logos/ScoutsGreen-480.png +0 -0
  188. data/assets/images/logos/ScoutsGreen-640.png +0 -0
  189. data/assets/images/logos/ScoutsGreen-800.png +0 -0
  190. data/assets/images/logos/ScoutsGreen.png +0 -0
  191. data/assets/images/logos/ScoutsWhite-100.png +0 -0
  192. data/assets/images/logos/ScoutsWhite-320.png +0 -0
  193. data/assets/images/logos/ScoutsWhite-480.png +0 -0
  194. data/assets/images/logos/ScoutsWhite-640.png +0 -0
  195. data/assets/images/logos/ScoutsWhite-800.png +0 -0
  196. data/assets/images/logos/ScoutsWhite.png +0 -0
  197. data/assets/images/logos/SquirrelsPrimaryBlack-100.png +0 -0
  198. data/assets/images/logos/SquirrelsPrimaryBlack-320.png +0 -0
  199. data/assets/images/logos/SquirrelsPrimaryBlack-480.png +0 -0
  200. data/assets/images/logos/SquirrelsPrimaryBlack-640.png +0 -0
  201. data/assets/images/logos/SquirrelsPrimaryBlack-800.png +0 -0
  202. data/assets/images/logos/SquirrelsPrimaryBlack.png +0 -0
  203. data/assets/images/logos/SquirrelsPrimaryRed-100.png +0 -0
  204. data/assets/images/logos/SquirrelsPrimaryRed-320.png +0 -0
  205. data/assets/images/logos/SquirrelsPrimaryRed-480.png +0 -0
  206. data/assets/images/logos/SquirrelsPrimaryRed-640.png +0 -0
  207. data/assets/images/logos/SquirrelsPrimaryRed-800.png +0 -0
  208. data/assets/images/logos/SquirrelsPrimaryRed.png +0 -0
  209. data/assets/images/logos/SquirrelsPrimaryWhite-100.png +0 -0
  210. data/assets/images/logos/SquirrelsPrimaryWhite-320.png +0 -0
  211. data/assets/images/logos/SquirrelsPrimaryWhite-480.png +0 -0
  212. data/assets/images/logos/SquirrelsPrimaryWhite-640.png +0 -0
  213. data/assets/images/logos/SquirrelsPrimaryWhite-800.png +0 -0
  214. data/assets/images/logos/SquirrelsPrimaryWhite.png +0 -0
  215. data/assets/images/logos/SquirrelsPrimaryYellow-100.png +0 -0
  216. data/assets/images/logos/SquirrelsPrimaryYellow-320.png +0 -0
  217. data/assets/images/logos/SquirrelsPrimaryYellow-480.png +0 -0
  218. data/assets/images/logos/SquirrelsPrimaryYellow-640.png +0 -0
  219. data/assets/images/logos/SquirrelsPrimaryYellow-800.png +0 -0
  220. data/assets/images/logos/SquirrelsPrimaryYellow.png +0 -0
  221. data/assets/images/logos/SquirrelsSymbolBlack-100.png +0 -0
  222. data/assets/images/logos/SquirrelsSymbolBlack.png +0 -0
  223. data/assets/images/logos/SquirrelsSymbolRed-100.png +0 -0
  224. data/assets/images/logos/SquirrelsSymbolRed.png +0 -0
  225. data/assets/images/logos/SquirrelsSymbolWhite-100.png +0 -0
  226. data/assets/images/logos/SquirrelsSymbolWhite.png +0 -0
  227. data/assets/images/logos/SquirrelsSymbolYellow-100.png +0 -0
  228. data/assets/images/logos/SquirrelsSymbolYellow.png +0 -0
  229. data/assets/images/tabler-icons-sprite.svg +1 -0
  230. metadata +313 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8e4e1e2faf95ba31dce2ef5a42a921b6da0a07fca3f5c4bc23b0087e5fa22407
4
+ data.tar.gz: 6366e3ccef39ad1f775ff0e0753a57f6a19643d85d8fe845b1b0e00ee4932880
5
+ SHA512:
6
+ metadata.gz: edcffa3effe4c9b1ed8f6a6191e0354b452a5a1ac7c8ae29a8b9311cd84bfb2c67f0f47b3815ad72e316a9080a2c2be12822fb78cb17b1240313e2cfbdd5d201
7
+ data.tar.gz: 89a0c683dd5a70759bfa96e30bbee5e7eb29eb08eecec2f7e63444f1942eb0ec41007c85c44369a94b7abd263abeb47c1968d97271a42cab146ee8bda7c2c21f
data/LICENSE.txt ADDED
@@ -0,0 +1,28 @@
1
+ ## License
2
+ This code can be used under the BSD License (reproduced below).
3
+ Commiters to the project give 27th Aberdeen Scout Group the right to
4
+ redistribute their commits under the BSD license.
5
+
6
+
7
+ ### BSD License
8
+ Redistribution and use in source and binary forms, with or without modification,
9
+ are permitted provided that the following conditions are met:
10
+
11
+ - Redistributions of source code must retain the above copyright notice,
12
+ this list of conditions and the following disclaimer.
13
+ - Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation and/or
15
+ other materials provided with the distribution.
16
+ - Neither the name of the project nor the names of its contributors
17
+ may be used to endorse or promote products derived from this software
18
+ without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
21
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
23
+ SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
25
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # jekyll-scouts_uk_2018
2
+
3
+ A [Jekyll](https://jekyllrb.com/) template for the UK Scouts brand (2018). You can see it in use at [27thaberdeen.org.uk](https://www.27thaberdeen.org.uk/)
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your Jekyll site's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'jekyll-scouts_uk_2018', '~> 1.0'
12
+ ```
13
+
14
+ And add this line to your Jekyll site's _config.yml:
15
+
16
+ ```yaml
17
+ theme: jekyll-scouts_uk_2018
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install jekyll-scouts_uk_2018
27
+
28
+
29
+ ## Usage
30
+
31
+ Firstly set a few keys in your _config.yml file:
32
+ * name: Your group's name (will appear in the footer and title, unless title: is set), e.g. "1st Someplace Scout Group"
33
+ * charity_number: (required if you have one) displays in the footer.
34
+ * country_colour: (optional) Set to blue for Scotland, red for Wales, or Green for Northern Ireland.
35
+
36
+
37
+ ### Customise the site header
38
+
39
+ To display a link to [Online Scout Manager](https://www.onlinescoutmanager.co.uk)'s Parents Portal in the navigation add the following to your _config.yml
40
+ ```
41
+ header_osm: true
42
+ ```
43
+
44
+ To add your own logo, first visit the [Scouts Brand Centre](https://scoutsbrand.org.uk/) and generate a white one (if you haven't already). Add it into your assets folder and create the file _includes/header-logo.html to display it.
45
+ ```
46
+ <img src="WHERE EVER YOU PUT THE LOGO FILE" alt="{{ site.name | escape }}" loading="eager" role="presentation">
47
+ ```
48
+
49
+ The text in the header can also be customised by creating _includes/header-text.html
50
+
51
+
52
+ ### Customise the site footer
53
+
54
+ Links to contact your group / your groups social media can be added by adding any of the following keys to your _config.yml
55
+ ```
56
+ social_links:
57
+ email:
58
+ twitter:
59
+ facebook:
60
+ flickr:
61
+ instagram:
62
+ pinterest:
63
+ youtube:
64
+ github:
65
+ ```
66
+
67
+ ### Add your sections
68
+
69
+ You'll need to add some stuff to your _config.yml
70
+ ```
71
+ collections:
72
+ sections:
73
+ output: true
74
+
75
+ defaults:
76
+ - scope:
77
+ type: sections
78
+ values:
79
+ layout: section
80
+ ```
81
+
82
+ Then create your files in the _sections directory. A number of front matter settings are available:
83
+ * title:
84
+ * type: squirrels / beavers / cubs / scouts / explorers / network / activesupport - causes the correct logo to be shown
85
+ * logo_type: (only for squirrels) primary / symbol
86
+ * logo_colour: black / white / (others that vary by section e.g. blue / colourful for beavers, green for cubs / scouts)
87
+ * youth_approved: foundation / bronze (causes the relevant seal to be displayed)
88
+ * social_links.email
89
+ * social_links.twitter
90
+ * social_links.facebook
91
+ * social_links.flickr
92
+ * social_links.instagram
93
+ * social_links.pinterest
94
+ * social_links.youtube
95
+ * social_links.github
96
+
97
+
98
+ ### Other things you get
99
+
100
+ #### Ability to display twitter content (provided by [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin))
101
+
102
+ If a section has a social_links.twitter value and the screen is wide enough then their last five tweets will be displayed at the side of the page.
103
+ #### Basic search engine optimisation (provided by [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag))
104
+
105
+ #### Selection of images
106
+ * Look in assets/images/logos
107
+ * [Tabler icons](https://tablericons.com/): assets/images/tabler-icons-sprite.svg
108
+ * Scouts Scotland's Youth Approved seals: assets/images
data/_config.yml ADDED
File without changes
@@ -0,0 +1,17 @@
1
+ <footer class="layout-{{ page.layout }}">
2
+ <div id="footer-social">
3
+ {%- assign social_links = site.social_links -%}
4
+ {%- include social-links.html -%}
5
+ </div>
6
+
7
+ <div id="footer-legal">
8
+ <p>&copy;{{ 'now' | date: "%Y" }} {{ site.name }}.</p>
9
+ {%- if site.charity_number -%}
10
+ {%- if site.charity_number contains 'SC' -%}
11
+ <p>Registered charity <a href="https://www.oscr.org.uk/about-charities/search-the-register/charity-details?number={{ site.charity_number }}" rel="nofollow noreferrer noopener" target="_blank">{{ site.charity_number }}</a>.</p>
12
+ {%- else -%}
13
+ <p>Registered charity <a href="https://register-of-charities.charitycommission.gov.uk/charity-search/-/charity-details/{{ site.charity_number }}" rel="nofollow noreferrer noopener" target="_blank">{{ site.charity_number }}</a>.</p>
14
+ {%- endif -%}
15
+ {%- endif -%}
16
+ </div>
17
+ </footer>
@@ -0,0 +1,7 @@
1
+ <head>
2
+ <meta name="viewport" content="width=device-width, initial-scale=1">
3
+ {%- seo -%}
4
+ <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
5
+ <link rel="icon" type="image/x-icon" href="{{ "/assets/favicon.ico" | relative_url }}">
6
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,700,900">
7
+ </head>
@@ -0,0 +1,2 @@
1
+ {%- assign path = "assets/images/logos/LogoLinearWhite" | relative_url -%}
2
+ <img src="{{ path }}.png" srcset="{{ path }}-100.png 100w, {{ path }}-320.png 320w, {{ path }}-480.png 480w, {{ path }}-640.png 640w, {{ path }}-800.png 800w" alt="{{ site.name | escape }}" loading="eager" role="presentation" style="margin: 2rem;">
@@ -0,0 +1,31 @@
1
+ {%- assign default_paths = site.pages | map: "path" -%}
2
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
3
+ {%- if page_paths -%}
4
+ <input type="checkbox" id="navigation-trigger">
5
+ <label for="navigation-trigger">
6
+ <span>
7
+ <svg role="" style="transform: invert(100%); max-width: 1.75rem; max-height: 1.75rem;">
8
+ <use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-menu-2' | relative_url }}"></use>
9
+ </svg>
10
+ </span>
11
+ </label>
12
+
13
+ <nav>
14
+ <ul>
15
+ {%- for section in site.sections -%}
16
+ <li><a href="{{ section.url | relative_url }}">{{ section.title | escape }}</a></li>
17
+ {%- endfor -%}
18
+
19
+ {%- for path in page_paths -%}
20
+ {%- assign my_page = site.pages | where: "path", path | first -%}
21
+ {%- if my_page.title -%}
22
+ <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
23
+ {%- endif -%}
24
+ {%- endfor -%}
25
+
26
+ {%- if site.header_osm -%}
27
+ <li><a href="https://www.onlinescoutmanager.co.uk/login.php" target="_blank">OSM Parent&apos;s Portal</a></li>
28
+ {%- endif -%}
29
+ </ul>
30
+ </nav>
31
+ {%- endif -%}
@@ -0,0 +1,3 @@
1
+ <p>Scouting offers challenge and adventure to young people and adults.</p>
2
+ <p>We believe in helping our Members fulfil their potential by working in teams, learning by doing, and thinking for themselves.</p>
3
+ <p>We give people of every background the chance to stretch themselves, learn <a href="https://twitter.com/search?q=%23SkillsForLife" rel="noreferrer noopener" target="_blank">#SkillsForLife</a> and make life long friedship.
@@ -0,0 +1,15 @@
1
+ <header class="layout-{{ page.layout }}">
2
+ <div id="header-logo">
3
+ <a href="{{ "/" | relative_url }}">
4
+ {%- include header-logo.html -%}
5
+ </a>
6
+ </div>
7
+
8
+ <div id="header-text">
9
+ {%- include header-text.html -%}
10
+ </div>
11
+
12
+ <div id="header-navigation">
13
+ {%- include header-navigation.html -%}
14
+ </div>
15
+ </header>
@@ -0,0 +1,10 @@
1
+ <ul class="social-links">
2
+ {%- if social_links.email -%}<li><a title="Email {{ social_links.email }}" href="mailto:{{ social_links.email }}"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-mail' | relative_url }}"></use></svg><span>{{ social_links.email }}</span></a></li>{%- endif -%}
3
+ {%- if social_links.twitter -%}<li><a title="@{{ social_links.twitter | cgi_escape | escape }} on twitter" href="https://www.twitter.com/{{ social_links.twitter| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-twitter' | relative_url }}"></use></svg><span>{{ social_links.twitter| escape }}</span></a></li>{%- endif -%}
4
+ {%- if social_links.facebook -%}<li><a title="{{ social_links.facebook | cgi_escape | escape }} on facebook" href="https://www.facebook.com/{{ social_links.facebook| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-facebook' | relative_url }}"></use></svg><span>{{ social_links.facebook| escape }}</span></a></li>{%- endif -%}
5
+ {%- if social_links.flickr -%}<li><a title="{{ social_links.flickr | cgi_escape | escape }} on flickr" href="https://www.flickr.com/photos/{{ social_links.flickr| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-flickr' | relative_url }}"></use></svg><span>{{ social_links.flickr| escape }}</span></a></li>{%- endif -%}
6
+ {%- if social_links.instagram -%}<li><a title="{{ social_links.instagram | cgi_escape | escape }} on instagram" href="https://instagram.com/{{ social_links.instagram| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-instagram' | relative_url }}"></use></svg><span>{{ social_links.instagram| escape }}</span></a></li>{%- endif -%}
7
+ {%- if social_links.pinterest -%}<li><a title="{{ social_links.pinterest | cgi_escape | escape }} on pinterest" href="https://www.pinterest.com/{{ social_links.pinterest| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-pinterest' | relative_url }}"></use></svg><span>{{ social_links.pinterest| escape }}</span></a></li>{%- endif -%}
8
+ {%- if social_links.youtube -%}<li><a title="{{ social_links.youtube | cgi_escape | escape }} on youtube" href="https://youtube.com/{{ social_links.youtube| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-youtube' | relative_url }}"></use></svg><span>{{ social_links.youtube| escape }}</span></a></li>{%- endif -%}
9
+ {%- if social_links.github -%}<li><a title="{{ social_links.github | cgi_escape | escape }} on github" href="https://github.com/{{ social_links.github| cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-github' | relative_url }}"></use></svg><span>{{ social_links.github| escape }}</span></a></li>{%- endif -%}
10
+ </ul>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en-gb" }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body class="layout-{{ page.layout }}">
7
+
8
+ {%- include header.html -%}
9
+
10
+ <main class="layout-{{ page.layout }}">
11
+ {{ content }}
12
+ </main>
13
+
14
+ {%- include footer.html -%}
15
+
16
+ </body>
17
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%- if page.title -%}
6
+ <h1>{{ page.title | escape }}</h1>
7
+ {%- endif -%}
8
+
9
+ <div>
10
+ {{ content }}
11
+ </div>
@@ -0,0 +1,71 @@
1
+ ---
2
+ layout: default
3
+ main_class: section
4
+ ---
5
+
6
+ <div id="content">
7
+ <div id="content-header">
8
+ <h1>
9
+ {%- assign logo = page.type | capitalize -%}
10
+ {%- case page.type | downcase -%}
11
+ {%- when "squirrels" -%}
12
+ {%- assign type = page.logo_type | default: "primary" | capitalize -%}
13
+ {%- assign colour = page.logo_colour | default: "red" | capitalize -%}
14
+ {%- if type == "Symbol" -%}
15
+ {%- assign widths = "100" -%}
16
+ {%- endif -%}
17
+ {%- when "beavers" -%}
18
+ {%- assign colour = page.logo_colour | default: "blue" | capitalize -%}
19
+ {%- when "cubs" -%}
20
+ {%- assign colour = page.logo_colour | default: "green" | capitalize -%}
21
+ {%- assign widths = "100,320,480,640" -%}
22
+ {%- when "scouts" -%}
23
+ {%- assign colour = page.logo_colour | default: "green" | capitalize -%}
24
+ {%- when "explorers" -%}
25
+ {%- assign colour = page.logo_colour | default: "blue" | capitalize -%}
26
+ {%- when "network" -%}
27
+ {%- assign widths = "100,320,480" -%}
28
+ {%- when "activesupport" -%}
29
+ {%- if logo == "Activesupport" -%}
30
+ {%- assign logo = "ActiveSupport" -%}
31
+ {%- endif -%}
32
+ {%- else -%}
33
+ {%- assign colour = page.logo_colour | default: "black" | capitalize -%}
34
+ {%- endcase -%}
35
+ {%- assign path = "assets/images/logos/" | append: logo | append: type | append: colour | relative_url -%}
36
+ {%- assign widths = widths | default: "100,320,480,640,800" | split: "," -%}
37
+ {%- capture srcset -%}
38
+ {%- for i in widths -%}
39
+ {{ path }}-{{ i }}.png {{ i }}w,
40
+ {%- endfor -%}
41
+ {%- endcapture -%}
42
+ <img src="{{ path }}.png" srcset="{{ srcset }}" alt="{{ page.type }}" loading="eager">
43
+ </h1>
44
+
45
+ {%- if page.youth_approved -%}
46
+ <a href="https://www.scouts.scot/members/youth-involvement/youth-approved-award/" rel="nofollow noopener" target="_blank" class="youth-approved">
47
+ {%- assign logo = page.youth_approved | capitalize -%}
48
+ {%- assign logo = "assets/images/YouthApproved" | append: logo | relative_url -%}
49
+ {%- assign alt = "We've got the " | append: page.youth_approved | append: " Youth Approved award from Scouts Scotland." -%}
50
+ <img src="{{ logo }}.png" srcset="{{ logo }}-100.png 100w, {{ logo }}-320.png 320w, {{ logo }}-480.png 480w, {{ logo }}-640.png 640w" alt="{{ alt }}">
51
+ </a>
52
+ {%- endif -%}
53
+ </div>
54
+
55
+
56
+ <div id="content-body">
57
+ {{ content }}
58
+ </div>
59
+
60
+ <div id="content-footer">
61
+ {%- assign social_links = page.social_links -%}
62
+ {%- include social-links.html -%}
63
+ </div>
64
+ </div>
65
+
66
+ {%- if page.social_links.twitter -%}
67
+ <div id="tweets">
68
+ {% assign twitter_url = 'https://twitter.com/' | append: page.social_links.twitter %}
69
+ {% twitternocache twitter_url limit=3 %}
70
+ </div>
71
+ {%- endif -%}
data/_sass/footer.scss ADDED
@@ -0,0 +1,54 @@
1
+ footer {
2
+ background-color: var(--footer-background);
3
+ --text-color: var(--footer-foreground);
4
+ display: grid;
5
+ grid-gap: 1rem;
6
+ align-items: flex-start;
7
+ padding: 0.75rem;
8
+
9
+ grid-template-areas:
10
+ "social legal"
11
+ ;
12
+
13
+ p {
14
+ margin-top: 0.25rem;
15
+ margin-bottom: 0.25rem;
16
+ }
17
+
18
+ #footer-social {
19
+ grid-area: social;
20
+ }
21
+
22
+ #footer-legal {
23
+ grid-area: legal;
24
+ text-align: right;
25
+ --text-color: var(--scout-light-grey);
26
+ font-size: 0.875rem;
27
+
28
+ a {
29
+ text-decoration: none;
30
+ }
31
+
32
+ a:hover {
33
+ text-decoration: underline;
34
+ }
35
+ }
36
+ }
37
+
38
+ @media screen and (max-width: 32rem) {
39
+ footer {
40
+ grid-template-areas:
41
+ "social"
42
+ "legal"
43
+ ;
44
+
45
+ grid-gap: 0.5rem;
46
+ }
47
+ }
48
+
49
+ @media screen and (max-width: 40rem) {
50
+ footer {
51
+ padding: 0.25rem;
52
+ grid-gap: 0.5rem;
53
+ }
54
+ }
data/_sass/header.scss ADDED
@@ -0,0 +1,136 @@
1
+ header {
2
+ background-color: var(--header-background);
3
+ --text-color: var(--header-foreground);
4
+ margin: 0;
5
+ display: grid;
6
+ grid-gap: 0;
7
+
8
+ grid-template-areas:
9
+ "logo text"
10
+ "navigation navigation"
11
+ ;
12
+
13
+ #header-logo {
14
+ grid-area: logo;
15
+ align-self: center;
16
+ width: 20rem;
17
+ }
18
+
19
+ #header-text {
20
+ grid-area: text;
21
+ padding-left: 1rem;
22
+ padding-right: 2rem;
23
+ max-width: 55rem;
24
+ align-self: center;
25
+ font-size: 1.2rem;
26
+
27
+ p {
28
+ margin: 0.1rem;
29
+
30
+ a {
31
+ text-decoration: none;
32
+ }
33
+
34
+ a:hover {
35
+ text-decoration: underline;
36
+ }
37
+ }
38
+ }
39
+
40
+ @media screen and (max-width: 64rem) {
41
+ grid-template-areas:
42
+ "logo"
43
+ "navigation"
44
+ ;
45
+
46
+ #header-logo {
47
+ justify-self: center;
48
+ }
49
+
50
+ #header-text {
51
+ display: none;
52
+ }
53
+ }
54
+
55
+ #header-navigation {
56
+ grid-area: navigation;
57
+
58
+ a {
59
+ text-decoration: none;
60
+ }
61
+
62
+ a:hover {
63
+ text-decoration: underline;
64
+ }
65
+
66
+ nav {
67
+ margin: 0.25rem 1rem;
68
+
69
+ ul {
70
+ list-style-type: none;
71
+ padding: 0;
72
+ display: grid;
73
+ grid-template-columns: repeat(auto-fill, 7.5rem);
74
+ gap: 0.75rem;
75
+ align-items: center;
76
+
77
+ li {
78
+ width: 7.5rem;
79
+ text-align: center;
80
+ }
81
+ }
82
+ }
83
+
84
+ #navigation-trigger {
85
+ display: none;
86
+ }
87
+
88
+ label[for="navigation-trigger"] {
89
+ display: none;
90
+ cursor: pointer;
91
+ text-align: center;
92
+ color: var(--text-color);
93
+ }
94
+
95
+ @media screen and (max-width: 32rem) {
96
+ label[for="navigation-trigger"] {
97
+ display: block;
98
+ }
99
+
100
+ #navigation-trigger ~ nav {
101
+ display: none;
102
+ }
103
+
104
+ nav {
105
+ padding: 0.25rem 1rem;
106
+
107
+ ul {
108
+ display: block;
109
+
110
+ li {
111
+ display: block;
112
+ width: 100%;
113
+ margin: 1rem 0;
114
+ text-align: center;
115
+ }
116
+ }
117
+ }
118
+
119
+ #navigation-trigger:checked ~ nav {
120
+ display: block;
121
+ //padding-bottom: 0.4rem;
122
+
123
+ ul {
124
+ display: block;
125
+ text-align: center;
126
+ padding: 0;
127
+ grid-template-columns: 1fr;
128
+
129
+ li {
130
+ padding: 0.75rem 0;
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
data/_sass/print.scss ADDED
@@ -0,0 +1,34 @@
1
+ @media print {
2
+ blockquote {
3
+ border: none;
4
+ }
5
+
6
+ header {
7
+ background: var(--scout-light-grey);
8
+ --text-color: black;
9
+
10
+ #header-logo {
11
+ img {
12
+ filter: invert(100%);
13
+ max-width: 125rem;
14
+ }
15
+ }
16
+
17
+ #header-text {
18
+ font-size: 0.75rem;
19
+ }
20
+
21
+ #header-navigation {
22
+ display: none;
23
+ }
24
+ }
25
+
26
+ footer {
27
+ background: var(--scout-light-grey);
28
+ --text-color: black;
29
+
30
+ #footer-legal {
31
+ --text-color: black;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,67 @@
1
+ main.layout-section {
2
+ display: flex;
3
+ flex-direction: row;
4
+
5
+ #content {
6
+ #content-header {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+
11
+ h1 {
12
+ margin: 0;
13
+ }
14
+
15
+ img {
16
+ max-width: 20rem;
17
+ max-height: 10rem;
18
+ }
19
+ }
20
+
21
+ #content-body {
22
+ max-width: 45rem;
23
+ }
24
+
25
+ #content-footer {
26
+ display: flex;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ }
30
+ }
31
+
32
+ #tweets {
33
+ justify-self: end;
34
+ margin-left: 5rem;
35
+ width: 30%;
36
+ }
37
+ }
38
+
39
+ @media screen and (max-width: 60rem) {
40
+ main.layout-section #tweets {
41
+ display: none;
42
+ }
43
+ }
44
+
45
+ @media screen and (max-width: 40rem) {
46
+ main.layout-section {
47
+ #content {
48
+ #content-header {
49
+ img {
50
+ max-width: 15rem;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ @media screen and (max-width: 30rem) {
58
+ main.layout-section {
59
+ #content {
60
+ #content-header {
61
+ img {
62
+ max-width: 10rem;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }