jekyll-scouts_uk_2018 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e35ad34280ba04bb31284f42eea6366ddaeaab5f46c20b19874d96713058d793
4
- data.tar.gz: 77e08e51dc4d5ea7072c5eab051e25b7b339949a48490b6bbbb88ae8c04cad3a
3
+ metadata.gz: 64b07c319929cbe6d60418c4d67471784d9508ffcaf68320dd6decca431d1b60
4
+ data.tar.gz: 34c0d36fa0520f66e02c4c9d206c67e7ff58db48175582776757ff0ee0135874
5
5
  SHA512:
6
- metadata.gz: 2a706e8efe06807a75b13238d7de6c1ec7d01ae0abb7ce7c04d5e0a2027a52a22e4f1aa9136c896d4e97c9e2940c9a2517920efec779d47184ec9e2c5edba563
7
- data.tar.gz: 5a33afe9f6810984a3928739b31cbd7c94dfd257938a85372fd7e4a6e17f55ffb896e59b92853f0482054335c2a67e5ce46033b055322a01b1d780a208f20f7d
6
+ metadata.gz: bce68c6958f7ee0f54af84eaad97e0aa6ee07e36fd1aeb68e321b89b201b04ce46df6064cfccd052bb15b3c54384a50e3d986c6a38df2afb3e8cc81741741c50
7
+ data.tar.gz: 4cf935fb9c923eb2390e721ff8c0fa136422e8c45dd70ef8d27e13f7339577e896b15a32afaa5cf6325210209c7b194b2cabf850e892b8c76360b53d34d9f6d2
data/README.md CHANGED
@@ -81,9 +81,7 @@ defaults:
81
81
 
82
82
  Then create your files in the _sections directory. A number of front matter settings are available:
83
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)
84
+ * type: squirrels / beavers / cubs / scouts / explorers / network / activesupport
87
85
  * youth_approved.level: foundation / bronze (causes the relevant seal to be displayed)
88
86
  * youth_approved.expires: date of certificate expiry in YYYY-MM-DD format.
89
87
  * social_links.email
@@ -103,7 +101,11 @@ Then create your files in the _sections directory. A number of front matter sett
103
101
  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.
104
102
  #### Basic search engine optimisation (provided by [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag))
105
103
 
106
- #### Selection of images
107
- * Look in assets/images/logos
104
+ #### Selection of images/assets
105
+ * Logos: assets/images/logos
106
+ * Sections and Active Support
107
+ * Linear / Stacked
108
+ * FleurDeLis
108
109
  * [Tabler icons](https://tablericons.com/): assets/images/tabler-icons-sprite.svg
109
110
  * Scouts Scotland's Youth Approved seals: assets/images
111
+ * Nunito Sans font: assets/fonts/NunitoSans
data/_includes/head.html CHANGED
@@ -3,5 +3,4 @@
3
3
  {%- seo -%}
4
4
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
5
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
6
  </head>
@@ -1,6 +1,6 @@
1
1
  <header class="layout-{{ page.layout }}">
2
2
  <div id="header-logo">
3
- <a href="{{ "/" | relative_url }}">
3
+ <a href="{{ "/" | relative_url }}" title="{{ site.name | escape }}">
4
4
  {%- include header-logo.html -%}
5
5
  </a>
6
6
  </div>
@@ -6,65 +6,32 @@ main_class: section
6
6
  <div id="content">
7
7
  <div id="content-header">
8
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">
9
+ {{ page.title | escape }}
43
10
  </h1>
11
+ </div>
12
+
13
+
14
+ <div id="content-body">
15
+ {{ content }}
16
+ </div>
17
+
18
+ <div id="content-footer">
19
+ {%- assign social_links = page.social_links -%}
20
+ {%- include social-links.html -%}
44
21
 
45
22
  {%- if page.youth_approved -%}
46
23
  {%- assign today = 'now' | date: '%Y-%m-%d' -%}
47
24
  {%- assign expires = page.youth_approved.expires | date: '%Y-%m-%d' -%}
48
25
  {%- if expires >= today -%}
49
- <a href="https://www.scouts.scot/members/youth-involvement/youth-approved-award/" rel="nofollow noopener" target="_blank" class="youth-approved">
26
+ <a href="https://www.scouts.scot/members/youth-involvement/youth-approved-award/" rel="nofollow noopener" target="_blank">
50
27
  {%- assign logo = page.youth_approved.level | capitalize -%}
51
28
  {%- assign logo = "assets/images/YouthApproved" | append: logo | relative_url -%}
52
29
  {%- assign alt = "We've got the " | append: page.youth_approved.level | append: " Youth Approved award from Scouts Scotland." -%}
53
- <img src="{{ logo }}.png" srcset="{{ logo }}-100.png 100w, {{ logo }}-320.png 320w, {{ logo }}-480.png 480w, {{ logo }}-640.png 640w" alt="{{ alt }}">
30
+ <img class="youth-approved-seal" src="{{ logo }}.png" srcset="{{ logo }}-100.png 100w, {{ logo }}-320.png 320w, {{ logo }}-480.png 480w, {{ logo }}-640.png 640w" alt="{{ alt }}">
54
31
  </a>
55
32
  {%- endif -%}
56
33
  {%- endif -%}
57
34
  </div>
58
-
59
-
60
- <div id="content-body">
61
- {{ content }}
62
- </div>
63
-
64
- <div id="content-footer">
65
- {%- assign social_links = page.social_links -%}
66
- {%- include social-links.html -%}
67
- </div>
68
35
  </div>
69
36
 
70
37
  {%- if page.social_links.twitter -%}
data/_sass/sections.scss CHANGED
@@ -3,29 +3,28 @@ main.layout-section {
3
3
  flex-direction: row;
4
4
 
5
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
6
  #content-body {
22
7
  max-width: 45rem;
23
8
  }
24
9
 
25
10
  #content-footer {
26
11
  display: flex;
27
- justify-content: space-between;
28
- align-items: center;
12
+ flex-wrap: wrap;
13
+ justify-content: space-around;
14
+ align-items: flex-start;
15
+
16
+ .youth-approved-seal {
17
+ max-width: 10rem;
18
+ }
19
+
20
+ @media screen and (max-width: 32rem) {
21
+ flex-direction: column;
22
+ align-items: center;
23
+
24
+ .youth-approved-seal {
25
+ max-width: 7.5rem;
26
+ }
27
+ }
29
28
  }
30
29
  }
31
30
 
@@ -41,27 +40,3 @@ main.layout-section {
41
40
  display: none;
42
41
  }
43
42
  }
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
- }
data/assets/css/main.scss CHANGED
@@ -23,8 +23,33 @@
23
23
  --text-color: var(--scout-black);
24
24
  }
25
25
 
26
+ @font-face {
27
+ font-family: 'Nunito Sans';
28
+ font-style: normal;
29
+ font-weight: 400;
30
+ src: url({{ "assets/fonts/NunitoSans/NunitoSans-Regular.ttf" | relative_url}});
31
+ }
32
+ @font-face {
33
+ font-family: 'Nunito Sans';
34
+ font-style: italic;
35
+ font-weight: 400;
36
+ src: url({{ "assets/fonts/NunitoSans/NunitoSans-Italic.ttf" | relative_url}});
37
+ }
38
+ @font-face {
39
+ font-family: 'Nunito Sans';
40
+ font-style: normal;
41
+ font-weight: 700;
42
+ src: url({{ "assets/fonts/NunitoSans/NunitoSans-Black.ttf" | relative_url}});
43
+ }
44
+ @font-face {
45
+ font-family: 'Nunito Sans';
46
+ font-style: italic;
47
+ font-weight: 700;
48
+ src: url({{ "assets/fonts/NunitoSans/NunitoSans-BlackItalic.ttf" | relative_url}});
49
+ }
50
+
26
51
  html {
27
- font-family: "Nunito Sans", Arial, sans-serif;
52
+ font-family: 'Nunito Sans', Arial, sans-serif;
28
53
  scroll-behavior: smooth;
29
54
  }
30
55
 
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Nunito Sans Project Authors (https://github.com/Fonthausen/NunitoSans)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-scouts_uk_2018
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gauld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -78,6 +78,21 @@ files:
78
78
  - _sass/sections.scss
79
79
  - assets/css/main.scss
80
80
  - assets/favicon.ico
81
+ - assets/fonts/NunitoSans/NunitoSans-Black.ttf
82
+ - assets/fonts/NunitoSans/NunitoSans-BlackItalic.ttf
83
+ - assets/fonts/NunitoSans/NunitoSans-Bold.ttf
84
+ - assets/fonts/NunitoSans/NunitoSans-BoldItalic.ttf
85
+ - assets/fonts/NunitoSans/NunitoSans-ExtraBold.ttf
86
+ - assets/fonts/NunitoSans/NunitoSans-ExtraBoldItalic.ttf
87
+ - assets/fonts/NunitoSans/NunitoSans-ExtraLight.ttf
88
+ - assets/fonts/NunitoSans/NunitoSans-ExtraLightItalic.ttf
89
+ - assets/fonts/NunitoSans/NunitoSans-Italic.ttf
90
+ - assets/fonts/NunitoSans/NunitoSans-Light.ttf
91
+ - assets/fonts/NunitoSans/NunitoSans-LightItalic.ttf
92
+ - assets/fonts/NunitoSans/NunitoSans-Regular.ttf
93
+ - assets/fonts/NunitoSans/NunitoSans-SemiBold.ttf
94
+ - assets/fonts/NunitoSans/NunitoSans-SemiBoldItalic.ttf
95
+ - assets/fonts/NunitoSans/OFL.txt
81
96
  - assets/images/YouthApproved-100.png
82
97
  - assets/images/YouthApproved-320.png
83
98
  - assets/images/YouthApproved-480.png