jekyll-scouts_uk_2018 1.4.0 → 1.6.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: 0a45ffb25cd0be5a5474e1f6b8f57091087fcf929dc1ade3021baa2a9a0dc99e
4
- data.tar.gz: a72463c1f419e35220dcdf84e5d22c5d41129186c42793e434aaee2d4b9a151a
3
+ metadata.gz: 0a10993a758a0190dfd0fa18b2c329d1e1d7055aad9bd257f87f3f33c7096e19
4
+ data.tar.gz: 3f67a5084ebcc710d679f8700e5d4e86a56219d4b216f303bb898317a661018e
5
5
  SHA512:
6
- metadata.gz: f19b6f37528c81069096f8398f9e10bcb297a9cd6cd25f571a50df460a58e95f263eeca29a0c3dfaf0e3d94dd5c063b5af69d618e7ed33b4e6a05e05f3717e72
7
- data.tar.gz: d5b1ac031c00d506e16b141f2bf616a93268301542721d1f22646a84db9e67017ce4977d3b0d2dadf98b628dd8a1dad027d03dee32a65cc7c1c32c7ac6866551
6
+ metadata.gz: 6d81b4583c7f79c2ff91f9f01339ede6dd31c4cba7b50f2808fc60ad09b2328dc191283b263efefa97cb00b72a3a5ff1ae2e78037ac544c5ee58918cd770c078
7
+ data.tar.gz: 304441054476238ab8502a688f4a96c512eed55c6eced81122a697e79c7838700603badec915c2b717b82be08c07dfab72fb2365b469ba1d35dcdaeac0aef39f
data/README.md CHANGED
@@ -56,6 +56,7 @@ Links to contact your group / your groups social media can be added by adding an
56
56
  social_links:
57
57
  email:
58
58
  twitter:
59
+ x:
59
60
  facebook:
60
61
  flickr:
61
62
  instagram:
@@ -86,6 +87,7 @@ Then create your files in the _sections directory. A number of front matter sett
86
87
  * youth_approved.expires: date of certificate expiry in YYYY-MM-DD format.
87
88
  * social_links.email
88
89
  * social_links.twitter
90
+ * social_links.x
89
91
  * social_links.facebook
90
92
  * social_links.flickr
91
93
  * social_links.instagram
@@ -124,9 +126,6 @@ Will render an image of Scout Scotland's Youth Approved seal at the passed level
124
126
 
125
127
  In all cases the img has a class of youth-approved-seal and is enclosed by a link to the scheme on Scouts Scotland's website.
126
128
 
127
- #### Ability to display twitter content (provided by [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin))
128
-
129
- 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.
130
129
  #### Basic search engine optimisation (provided by [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag))
131
130
 
132
131
  #### Selection of images/assets
@@ -1,10 +1,11 @@
1
1
  <ul class="social-links">
2
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 -%}
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.x -%}<li><a title="@{{ social_links.x | cgi_escape | escape }} on X" href="https://x.com/{{ social_links.x | cgi_escape | escape }}" rel="noreferrer noopener" target="_blank"><svg role="presentation"><use xlink:href="{{ '/assets/images/tabler-icons-sprite.svg#tabler-brand-x' | relative_url }}"></use></svg><span>{{ social_links.x | escape }}</span></a></li>{%- endif -%}
5
+ {%- 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 -%}
6
+ {%- 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 -%}
7
+ {%- 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 -%}
8
+ {%- 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 -%}
9
+ {%- 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 -%}
10
+ {%- 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
11
  </ul>
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  layout: default
3
- main_class: section
4
3
  ---
5
4
 
6
5
  <div id="content">
@@ -21,10 +20,3 @@ main_class: section
21
20
  {%- if page.youth_approved -%}{% youth_approved %}{%- endif -%}
22
21
  </div>
23
22
  </div>
24
-
25
- {%- if page.social_links.twitter -%}
26
- <div id="tweets">
27
- {% assign twitter_url = 'https://twitter.com/' | append: page.social_links.twitter %}
28
- {% twitter twitter_url limit=3 %}
29
- </div>
30
- {%- endif -%}
data/_sass/sections.scss CHANGED
@@ -3,9 +3,9 @@ main.layout-section {
3
3
  flex-direction: row;
4
4
 
5
5
  #content {
6
- #content-body {
7
- max-width: 45rem;
8
- }
6
+ max-width: 45rem;
7
+ margin-left: auto;
8
+ margin-right: auto;
9
9
 
10
10
  #content-footer {
11
11
  display: flex;
@@ -27,16 +27,4 @@ main.layout-section {
27
27
  }
28
28
  }
29
29
  }
30
-
31
- #tweets {
32
- justify-self: end;
33
- margin-left: 5rem;
34
- width: 30%;
35
- }
36
- }
37
-
38
- @media screen and (max-width: 60rem) {
39
- main.layout-section #tweets {
40
- display: none;
41
- }
42
30
  }
data/assets/css/main.scss CHANGED
@@ -106,6 +106,7 @@ small {
106
106
  }
107
107
 
108
108
  img {
109
+ dispaly: block;
109
110
  max-width: 90%;
110
111
  vertical-align: middle;
111
112
  padding: 0;
@@ -122,6 +123,7 @@ figure > img {
122
123
 
123
124
  figcaption {
124
125
  font-size: 0.9rem;
126
+ text-align: center;
125
127
  }
126
128
 
127
129
  blockquote {