bas-jekyll-theme-bas-style-kit 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +278 -0
  3. data/CONTRIBUTING.md +15 -0
  4. data/LICENSE.md +8 -0
  5. data/README.md +774 -0
  6. data/_config.yml +90 -0
  7. data/_data/bas-style-kit/bsk-css.yml +8 -0
  8. data/_data/bas-style-kit/bsk-js.yml +9 -0
  9. data/_data/bas-style-kit/bsk-vars.yml +3 -0
  10. data/_data/menus.yml +19 -0
  11. data/_includes/bas-style-kit/body.html +3 -0
  12. data/_includes/bas-style-kit/bsk--pattern--item-type-header.html +7 -0
  13. data/_includes/bas-style-kit/bsk--pattern--orcid-id.html +1 -0
  14. data/_includes/bas-style-kit/bsk-body--analytics-script.html +9 -0
  15. data/_includes/bas-style-kit/bsk-body--back-to-top.html +2 -0
  16. data/_includes/bas-style-kit/bsk-body--core-scripts.html +11 -0
  17. data/_includes/bas-style-kit/bsk-body--page-header.html +7 -0
  18. data/_includes/bas-style-kit/bsk-body--standard-footer.html +26 -0
  19. data/_includes/bas-style-kit/bsk-body--standard-header.html +17 -0
  20. data/_includes/bas-style-kit/bsk-body--standard.html +15 -0
  21. data/_includes/bas-style-kit/bsk-body--toc.html +1 -0
  22. data/_includes/bas-style-kit/bsk-body.html +9 -0
  23. data/_includes/bas-style-kit/bsk-footer--back-to-top.html +3 -0
  24. data/_includes/bas-style-kit/bsk-footer--contents.html +0 -0
  25. data/_includes/bas-style-kit/bsk-footer--governance.html +5 -0
  26. data/_includes/bas-style-kit/bsk-footer--is-something-wrong.html +3 -0
  27. data/_includes/bas-style-kit/bsk-footer--legal-policies.html +8 -0
  28. data/_includes/bas-style-kit/bsk-head--core-meta.html +4 -0
  29. data/_includes/bas-style-kit/bsk-head--core-styles.html +9 -0
  30. data/_includes/bas-style-kit/bsk-head--favicon.html +12 -0
  31. data/_includes/bas-style-kit/bsk-head--seo-meta.html +4 -0
  32. data/_includes/bas-style-kit/bsk-head.html +6 -0
  33. data/_includes/bas-style-kit/bsk-header--cookie-notice.html +9 -0
  34. data/_includes/bas-style-kit/bsk-header--development-phase.html +15 -0
  35. data/_includes/bas-style-kit/bsk-header--site-navigation.html +6 -0
  36. data/_includes/bas-style-kit/bsk-nav--collapse.html +4 -0
  37. data/_includes/bas-style-kit/bsk-nav--header.html +4 -0
  38. data/_includes/bas-style-kit/bsk-nav-collapse--primary-navigation.html +32 -0
  39. data/_includes/bas-style-kit/bsk-nav-collapse--secondary-navigation.html +20 -0
  40. data/_includes/bas-style-kit/bsk-nav-header--brand.html +8 -0
  41. data/_includes/bas-style-kit/bsk-nav-header--collapse-trigger.html +3 -0
  42. data/_includes/bas-style-kit/head.html +1 -0
  43. data/_includes/bas-style-kit/toc.html +85 -0
  44. data/_layouts/bas-style-kit/blank.html +4 -0
  45. data/_layouts/bas-style-kit/bsk--base.html +8 -0
  46. data/_layouts/bas-style-kit/bsk--standard-page.html +22 -0
  47. data/_layouts/bas-style-kit/bsk--standard.html +8 -0
  48. data/_layouts/bas-style-kit/html.html +8 -0
  49. data/_layouts/views/bas-style-kit/bsk--page-not-found.html +10 -0
  50. data/_layouts/views/bas-style-kit/bsk--problem-with-service.html +10 -0
  51. data/_layouts/views/bas-style-kit/bsk--service-unavailable.html +20 -0
  52. data/_layouts/views/bas-style-kit/bsk--sign-in-microsoft.html +21 -0
  53. data/_layouts/views/bas-style-kit/bsk--start.html +9 -0
  54. data/_sass/main.scss +1 -0
  55. data/assets/empty +1 -0
  56. data/screenshot.png +0 -0
  57. metadata +197 -0
data/_config.yml ADDED
@@ -0,0 +1,90 @@
1
+ # This file is **NOT** a standard Jekyll config file.
2
+ #
3
+ # It is used to define default config options for this theme.
4
+ # These settings will be merged with site specific settings at runtime, site specific settings override these defaults.
5
+
6
+ # Additional config options are defined using the Jekyll Data plugin, under the `site.data.bsk_jekyll_vars` namespace.
7
+ # E.g. `site.data.bsk_jekyll_vars.bsk_attributes.bsk_version` gives the version of the BAS Style Kit this theme uses.
8
+
9
+ webrick:
10
+ headers:
11
+ Access-Control-Allow-Origin: "*"
12
+
13
+ # Plugins (required by this theme)
14
+ #
15
+
16
+ plugins:
17
+ - jekyll-data
18
+ - jekyll-tidy
19
+
20
+ # Build settings
21
+ #
22
+
23
+ # Set default permalink format
24
+ permalink: pretty
25
+
26
+ # Theme settings - global variables
27
+ #
28
+
29
+ bas_style_kit_jekyll_theme:
30
+ feature_flags:
31
+ site:
32
+ back_to_top_anchor: true
33
+ standard_header: true
34
+ standard_footer: true
35
+ standard_header:
36
+ cookie_notice: true
37
+ site_navigation: true
38
+ development_phase: true
39
+ standard_footer:
40
+ is_something_wrong: true
41
+ back_to_top: true
42
+ spacer: false
43
+ divider: true
44
+ governance: true
45
+ legal_policies: true
46
+ attributes:
47
+ container: fixed
48
+ head_title:
49
+ # Used when `page.title` isn't set
50
+ default: 'site title'
51
+ # Appended to either `page.title` or `head_title.default` - e.g. ` - Site Foo`
52
+ appended: !!null
53
+ head_description: 'site description'
54
+ site_brand:
55
+ text: 'site title'
56
+ img: !!null
57
+ img_size: !!null
58
+ href: '/'
59
+ site_development_phase: 'alpha'
60
+ site_feedback_href: '/feedback.html'
61
+ site_analytics:
62
+ id: !!null
63
+ site_styles: []
64
+ site_scripts: []
65
+
66
+ # These settings aren't usually changed
67
+ head_favicon: 'default'
68
+ site_back_to_top_target_href: '#site-top'
69
+ site_footer:
70
+ ogl:
71
+ href: 'http://www.nationalarchives.gov.uk/doc/open-government-licence'
72
+ text_version: 'v3.0'
73
+ legal_policies:
74
+ copyright_href: '/legal/copyright'
75
+ cookies_href: '/legal/cookies'
76
+ privacy_href: '/legal/privacy'
77
+
78
+ # Theme settings - defaults for page level variables
79
+ #
80
+
81
+ defaults:
82
+ -
83
+ scope:
84
+ # an empty string here means all files in the project
85
+ path: ""
86
+ values:
87
+ bas_style_kit_jekyll_theme:
88
+ feature_flags:
89
+ page:
90
+ toc: true
@@ -0,0 +1,8 @@
1
+ ---
2
+ -
3
+ # href: 'https://cdn.web.bas.ac.uk/bas-style-kit/0.6.1/css/bas-style-kit.min.css'
4
+ href: 'http://localhost:8043/develop/dist/css/bas-style-kit.css'
5
+ # integrity: 'sha256-k05vjok9IGTMBJ8KYnQYX9sEc7A9eGWsTM8tQ2XqE8A='
6
+ type: 'local'
7
+
8
+
@@ -0,0 +1,9 @@
1
+ ---
2
+ -
3
+ href: 'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.8.9/dist/cookieconsent.js'
4
+ # integrity: 'sha256-MdF5lmO7tgKSFNkLp9uc3HJfoCwW1LCQrdNyHkQji2s='
5
+ type: 'remote'
6
+ -
7
+ href: 'http://localhost:8043/develop/dist/js/bas-style-kit.js'
8
+ # integrity: 'sha256-cW+jowQERFqjJwdZ1VSZgG7dXQly19ykM5kVIONXmFg='
9
+ type: 'local'
@@ -0,0 +1,3 @@
1
+ ---
2
+ theme_version: "0.14.0"
3
+ bsk_version: "0.7.0-alpha"
data/_data/menus.yml ADDED
@@ -0,0 +1,19 @@
1
+ ---
2
+ # The name of this file is a convention set by the Jekyll Menus plugin
3
+ # Source: https://github.com/forestryio/jekyll-menus
4
+
5
+ site_navigation_primary: []
6
+
7
+ site_navigation_secondary:
8
+ - url: '#'
9
+ title: Part of British Antarctic Survey
10
+ identifier: site_navigation_launcher
11
+ weight: 50
12
+
13
+ site_navigation_launcher:
14
+ - url: 'https://www.bas.ac.uk'
15
+ title: BAS Home
16
+ weight: 1
17
+ - url: 'https://data.bas.ac.uk'
18
+ title: Discover BAS Data
19
+ weight: 2
@@ -0,0 +1,3 @@
1
+ <body>
2
+ {{ content }}
3
+ </body>
@@ -0,0 +1,7 @@
1
+ <header class="bsk-page-header bsk-page-header-stacked">
2
+ <h1>
3
+ <small class="bsk-text-capitalize">{{ include.item_type }}</small>
4
+ <br />
5
+ {{ include.item_title }}
6
+ </h1>
7
+ </header>
@@ -0,0 +1 @@
1
+ <a href="{{ include.orcid_id }}"><i class="fab fa-orcid bsk-orcid-id"></i> {{ include.orcid_id }}</a>
@@ -0,0 +1,9 @@
1
+ {% if site.bas_style_kit_jekyll_theme.attributes.site_analytics.id %}
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+ gtag('config', '{{ site.bas_style_kit_jekyll_theme.attributes.site_analytics.id }}', { 'anonymize_ip': true });
8
+ </script>
9
+ {% endif %}
@@ -0,0 +1,2 @@
1
+ <div id="site-top"></div>
2
+ <a class="bsk-visually-hidden-focusable" href="#site-content">Skip to main content</a>
@@ -0,0 +1,11 @@
1
+ {% for script in site.data.bas-style-kit.bsk-js %}
2
+ <script {% if script.type == 'remote' %}src="{{ script.href }}"{% elsif script.type == 'local' %}src="{{ script.href | prepend: site.baseurl }}"{% endif %} {% if script.integrity %}integrity="{{ script.integrity }}" crossorigin="anonymous"{% endif %}></script>
3
+ {% endfor %}
4
+ {% for script in site.bas_style_kit_jekyll_theme.attributes.site_scripts %}
5
+ <script {% if script.type == 'remote' %}src="{{ script.href }}"{% elsif script.type == 'local' %}src="{{ script.href | prepend: site.baseurl }}"{% endif %} {% if script.integrity %}integrity="{{ script.integrity }}" crossorigin="anonymous"{% endif %}></script>
6
+ {% endfor %}
7
+ {% for script in page.body_js_files %}
8
+ <script {% if script.type == 'remote' %}src="{{ script.href }}"{% elsif script.type == 'local' %}src="{{ script.href | prepend: site.baseurl }}"{% endif %} {% if script.integrity %}integrity="{{ script.integrity }}" crossorigin="anonymous"{% endif %}></script>
9
+ {% endfor %}
10
+
11
+ {% include bas-style-kit/bsk-body--analytics-script.html %}
@@ -0,0 +1,7 @@
1
+ {% if page.item_type %}
2
+ {% include bas-style-kit/bsk--pattern--item-type-header.html item_type=page.item_type item_title=page.title %}
3
+ {% else %}
4
+ <header class="bsk-page-header">
5
+ <h1>{{ page.title }}</h1>
6
+ </header>
7
+ {% endif %}
@@ -0,0 +1,26 @@
1
+ <footer class="site-footer">
2
+ <div class="bsk-footer bsk-footer-default">
3
+ <div class="{% if site.bas_style_kit_jekyll_theme.attributes.container == 'fixed' %}bsk-container{% elsif site.bas_style_kit_jekyll_theme.attributes.container == 'fluid' %}bsk-container-fluid{% endif %}">
4
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.is_something_wrong == true %}
5
+ {% include bas-style-kit/bsk-footer--is-something-wrong.html %}
6
+ {% endif %}
7
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.back_to_top == true %}
8
+ {% include bas-style-kit/bsk-footer--back-to-top.html %}
9
+ {% endif %}
10
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.spacer == true %}
11
+ <div role="separator" class="bsk-footer-spacer"></div>
12
+ {% endif %}
13
+ {% include bas-style-kit/bsk-footer--contents.html %}
14
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.divider == true %}
15
+ <div class="bsk-clearfix"></div>
16
+ <div role="separator" class="bsk-footer-divider"></div>
17
+ {% endif %}
18
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.governance == true %}
19
+ {% include bas-style-kit/bsk-footer--governance.html %}
20
+ {% endif %}
21
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_footer.legal_policies == true %}
22
+ {% include bas-style-kit/bsk-footer--legal-policies.html %}
23
+ {% endif %}
24
+ </div>
25
+ </div>
26
+ </footer>
@@ -0,0 +1,17 @@
1
+ {% if site.bas_style_kit_jekyll_theme.attributes.container == 'fixed' %}
2
+ {% assign bsk_attributes_container_class = "bsk-container" %}
3
+ {% elsif site.bas_style_kit_jekyll_theme.attributes.container == 'fluid' %}
4
+ {% assign bsk_attributes_container_class = "bsk-container-fluid" %}
5
+ {% endif %}
6
+
7
+ <header class="site-header">
8
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_header.cookie_notice == true %}
9
+ {% include bas-style-kit/bsk-header--cookie-notice.html %}
10
+ {% endif %}
11
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_header.site_navigation == true %}
12
+ {% include bas-style-kit/bsk-header--site-navigation.html %}
13
+ {% endif %}
14
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.standard_header.development_phase == true %}
15
+ {% include bas-style-kit/bsk-header--development-phase.html %}
16
+ {% endif %}
17
+ </header>
@@ -0,0 +1,15 @@
1
+ <body>
2
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.site.back_to_top_anchor == true %}
3
+ {% include bas-style-kit/bsk-body--back-to-top.html %}
4
+ {% endif %}
5
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.site.standard_header == true %}
6
+ {% include bas-style-kit/bsk-body--standard-header.html %}
7
+ {% endif %}
8
+ <main class="{% if site.bas_style_kit_jekyll_theme.attributes.container == 'fixed' %}bsk-container{% elsif site.bas_style_kit_jekyll_theme.attributes.container == 'fluid' %}bsk-container-fluid{% endif %} {{ layout.main_content_classes }}" id="site-content">
9
+ {{ content }}
10
+ </main>
11
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.site.standard_footer == true %}
12
+ {% include bas-style-kit/bsk-body--standard-footer.html %}
13
+ {% endif %}
14
+ {% include bas-style-kit/bsk-body--core-scripts.html %}
15
+ </body>
@@ -0,0 +1 @@
1
+ {% include bas-style-kit/toc.html html=content h_min=2 %}
@@ -0,0 +1,9 @@
1
+ <body>
2
+ {% if site.bas_style_kit_jekyll_theme.feature_flags.site.back_to_top_anchor == True %}
3
+ {% include bas-style-kit/bsk-body--back-to-top.html %}
4
+ {% endif %}
5
+ <main id="site-content">
6
+ {{ content }}
7
+ </main>
8
+ {% include bas-style-kit/bsk-body--core-scripts.html %}
9
+ </body>
@@ -0,0 +1,3 @@
1
+ <div class="bsk-footer-back-to-top bsk-float-end">
2
+ <a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_back_to_top_target_href }}"> Back to top</a>
3
+ </div>
File without changes
@@ -0,0 +1,5 @@
1
+ <div class="bsk-footer-governance bsk-float-start">
2
+ The <a href="https://www.bas.ac.uk">British Antarctic Survey</a> (BAS) is part of <a href="https://www.ukri.org">UK Research and Innovation</a> (UKRI)
3
+ <div class="bsk-footer-ogl"><div class="bsk-ogl-symbol"><a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_footer.ogl.href }}" rel="license"><span class="bsk-ogl-symbol">Open Government Licence</span></a></div>
4
+ All content is available under the <a href="http://www.nationalarchives.gov.uk/doc/open-government-licence" rel="license">Open Government Licence {{ site.bas_style_kit_jekyll_theme.attributes.site_footer.ogl.text_version }}</a>, except where otherwise stated</div>
5
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="bsk-footer-is-something-wrong bsk-float-start">
2
+ <a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_feedback_href }}" target="_blank">Is something wrong with this page?</a>
3
+ </div>
@@ -0,0 +1,8 @@
1
+ <div class="bsk-footer-policy-links bsk-float-end">
2
+ <ul class="bsk-list-inline">
3
+ <li class="bsk-list-inline-item"><a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_footer.legal_policies.cookies_href }}"> Cookies</a></li>
4
+ <li class="bsk-list-inline-item"><a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_footer.legal_policies.copyright_href }}"> Copyright</a></li>
5
+ <li class="bsk-list-inline-item"><a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_footer.legal_policies.privacy_href }}"> Privacy</a></li>
6
+ </ul>
7
+ © {{site.time | date: "%Y"}} British Antarctic Survey
8
+ </div>
@@ -0,0 +1,4 @@
1
+ <meta charset="utf-8">
2
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
3
+ <meta http-equiv="x-ua-compatible" content='ie=edge'>
4
+ <!-- The above 3 meta tags *must* come first in the head -->
@@ -0,0 +1,9 @@
1
+ {% for style in site.data.bas-style-kit.bsk-css %}
2
+ <link rel="stylesheet" {% if style.type == 'remote' %}href="{{ style.href }}"{% elsif style.type == 'local' %}href="{{ style.href | prepend: site.baseurl }}"{% endif %} {% if style.integrity %}integrity="{{ style.integrity }}" crossorigin="anonymous"{% endif %}>
3
+ {% endfor %}
4
+ {% for style in site.bas_style_kit_jekyll_theme.attributes.site_styles %}
5
+ <link rel="stylesheet" {% if style.type == 'remote' %}href="{{ style.href }}"{% elsif style.type == 'local' %}href="{{ style.href | prepend: site.baseurl }}"{% endif %} {% if style.integrity %}integrity="{{ style.integrity }}" crossorigin="anonymous"{% endif %}>
6
+ {% endfor %}
7
+ {% for style in page.body_css_files %}
8
+ <link rel="stylesheet" {% if style.type == 'remote' %}href="{{ style.href }}"{% elsif style.type == 'local' %}href="{{ style.href | prepend: site.baseurl }}"{% endif %} {% if style.integrity %}integrity="{{ style.integrity }}" crossorigin="anonymous"{% endif %}>
9
+ {% endfor %}
@@ -0,0 +1,12 @@
1
+ <!-- Favicon and app icons -->
2
+ {% if site.bas_style_kit_jekyll_theme.attributes.head_favicon == 'default' %}
3
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/apple-touch-icon.png">
4
+ <link rel="icon" type="image/png" sizes="32x32" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/favicon-32x32.png">
5
+ <link rel="icon" type="image/png" sizes="16x16" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/favicon-16x16.png">
6
+ <link rel="manifest" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/site.webmanifest">
7
+ <link rel="mask-icon" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/safari-pinned-tab.svg" color="#222222">
8
+ <link rel="shortcut icon" href="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/favicon.ico">
9
+ <meta "name"="msapplication-TileColor" content="#222222">
10
+ <meta "name"="msapplication-config" content="https://cdn.web.bas.ac.uk/bas-style-kit/{{ site.data.bas-style-kit.bsk-vars.bsk_version }}/img/favicon/browserconfig.xml">
11
+ <meta "name"="theme-color" content="#222222">
12
+ {% endif %}
@@ -0,0 +1,4 @@
1
+ <!-- Recommended meta tags for SEO -->
2
+ {% if page.title %}<title>{{ page.title }}{% if site.bas_style_kit_jekyll_theme.attributes.head_title.appended %}{{ site.bas_style_kit_jekyll_theme.attributes.head_title.appended }}{% endif %}</title>
3
+ {% elsif site.bas_style_kit_jekyll_theme.attributes.head_title.default %}<title>{{ site.bas_style_kit_jekyll_theme.attributes.head_title.default }}</title>{% endif %}
4
+ {% if site.bas_style_kit_jekyll_theme.attributes.head_description %}<meta name="description" content="{{ site.bas_style_kit_jekyll_theme.attributes.head_description }}">{% endif %}
@@ -0,0 +1,6 @@
1
+ <head>
2
+ {% include bas-style-kit/bsk-head--core-meta.html %}
3
+ {% include bas-style-kit/bsk-head--seo-meta.html %}
4
+ {% include bas-style-kit/bsk-head--favicon.html %}
5
+ {% include bas-style-kit/bsk-head--core-styles.html %}
6
+ </head>
@@ -0,0 +1,9 @@
1
+ <div class="bsk-fix-alert-static-top-{{ site.bas_style_kit_jekyll_theme.attributes.container }}-container-wrapper">
2
+ <div class="{{ bsk_attributes_container_class }}">
3
+ <div class="bsk-alert bsk-alert-static-top bsk-alert-dismissible bsk-alert-solid bsk-alert-cookie-notice" data-bsk-role='cookie-notice'>
4
+ <button class="bsk-close" type="button" data-dismiss="alert" aria-label="Close">&times;</button>
5
+ This website uses cookies to help us make it better -
6
+ <a class="bsk-alert-link" href="{{ site.bas_style_kit_jekyll_theme.attributes.site_footer.legal_policies.cookies_href }}" target="_blank">find out more</a>
7
+ </div>
8
+ </div>
9
+ </div>
@@ -0,0 +1,15 @@
1
+ {% if jekyll.environment == 'production' %}
2
+ {% unless site.bas_style_kit_jekyll_theme.attributes.site_development_phase == 'live-stable' %}
3
+ <div class="{{ bsk_attributes_container_class }}">
4
+ <span class="bsk-text-uppercase bsk-label bsk-label-phase-{{ site.bas_style_kit_jekyll_theme.attributes.site_development_phase }}">{{ site.bas_style_kit_jekyll_theme.attributes.site_development_phase }}</span>
5
+ This is a new website – your <a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_feedback_href }}">feedback</a> will help us to improve it.
6
+ <hr class="bsk-hr-dashed" />
7
+ </div>
8
+ {% endunless %}
9
+ {% else %}
10
+ <div class="{{ bsk_attributes_container_class }}">
11
+ <span class="bsk-text-uppercase bsk-label bsk-label-experimental">Experimental</span>
12
+ This website is used for testing – your <a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_feedback_href }}">feedback</a> will help us to improve it.
13
+ <hr class="bsk-hr-dashed" />
14
+ </div>
15
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ <nav class="bsk-navbar bsk-navbar-expand-md bsk-navbar-dark bsk-bg-dark">
2
+ <div class="{{ bsk_attributes_container_class }}">
3
+ {% include bas-style-kit/bsk-nav--header.html %}
4
+ {% include bas-style-kit/bsk-nav--collapse.html %}
5
+ </div>
6
+ </nav>
@@ -0,0 +1,4 @@
1
+ <div class="bsk-collapse bsk-navbar-collapse" id="navbar-collapse">
2
+ {% include bas-style-kit/bsk-nav-collapse--primary-navigation.html %}
3
+ {% include bas-style-kit/bsk-nav-collapse--secondary-navigation.html %}
4
+ </div>
@@ -0,0 +1,4 @@
1
+
2
+ {% include bas-style-kit/bsk-nav-header--brand.html %}
3
+ {% include bas-style-kit/bsk-nav-header--collapse-trigger.html %}
4
+
@@ -0,0 +1,32 @@
1
+ {% if site.menus.site_navigation_primary %}
2
+ <ul class="bsk-nav bsk-navbar-nav">
3
+ {% for item in site.menus.site_navigation_primary %}
4
+ {% if item.children %}
5
+ {% assign is_active = false %}
6
+ {% for item in item.children %}
7
+ {% if page.url == item.url %}
8
+ {% assign is_active = true %}
9
+ {% endif %}
10
+ {% endfor %}
11
+ <li class="bsk-nav-item bsk-nav-item bsk-dropdown {% if is_active == true %}bsk-active{% endif %}">
12
+ <a class="bsk-dropdown-toggle bsk-nav-link" href="#" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
13
+ {{ item.title }} <span class="bsk-caret"></span>
14
+ </a>
15
+ <ul class="bsk-dropdown-menu">
16
+ {% for item in item.children %}
17
+ <li {% if page.url == item.url %}class="bsk-active"{% endif %}>
18
+ <!-- {% if page.url == item.url %}<span class="bsk-visually-hidden">(current)</span>{% endif %} -->
19
+ <a href="{{ item.url }}">{{ item.title }}</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
23
+ </li>
24
+ {% else %}
25
+ <li {% if page.url == item.url %}class="bsk-active"{% endif %}>
26
+ <!-- {% if page.url == item.url %}<span class="bsk-visually-hidden">(current)</span>{% endif %} -->
27
+ <a href="{{ item.url }}">{{ item.title }}</a>
28
+ </li>
29
+ {% endif %}
30
+ {% endfor %}
31
+ </ul>
32
+ {% endif %}
@@ -0,0 +1,20 @@
1
+ {% if site.menus.site_navigation_secondary %}
2
+ <ul class="bsk-nav bsk-navbar-nav bsk-ms-auto">
3
+ {% for item in site.menus.site_navigation_secondary %}
4
+ {% if item.children %}
5
+ <li class="bsk-nav-item bsk-dropdown">
6
+ <a class="bsk-dropdown-toggle" href="#" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
7
+ {{ item.title }} <span class="bsk-caret"></span>
8
+ </a>
9
+ <ul class="bsk-dropdown-menu">
10
+ {% for sub_item in item.children %}
11
+ <li><a href="{{ sub_item.url }}">{{ sub_item.title }}</a></li>
12
+ {% endfor %}
13
+ </ul>
14
+ </li>
15
+ {% else %}
16
+ <li><a href="{{ item.url }}">{{ item.title }}</a></li>
17
+ {% endif %}
18
+ {% endfor %}
19
+ </ul>
20
+ {% endif %}
@@ -0,0 +1,8 @@
1
+ <a class="bsk-navbar-brand{% if site.bas_style_kit_jekyll_theme.attributes.site_brand.img %}bsk-navbar-brand-image-{{ site.bas_style_kit_jekyll_theme.attributes.site_brand.img_size }}{% endif %}" href="{{ site.bas_style_kit_jekyll_theme.attributes.site_brand.href }}">
2
+ {% if site.bas_style_kit_jekyll_theme.attributes.site_brand.img %}
3
+ <img {% if site.bas_style_kit_jekyll_theme.attributes.site_brand.text %}class="bsk-fix-navbar-brand-img-txt"{% endif %} src="{{ site.bas_style_kit_jekyll_theme.attributes.site_brand.img }}">
4
+ {% endif %}
5
+ {% if site.bas_style_kit_jekyll_theme.attributes.site_brand.text %}
6
+ {{ site.bas_style_kit_jekyll_theme.attributes.site_brand.text }}
7
+ {% endif %}
8
+ </a>
@@ -0,0 +1,3 @@
1
+ <button class="bsk-navbar-toggler bsk-ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
2
+ <span class="bsk-navbar-toggler-icon"></span>
3
+ </button>
@@ -0,0 +1 @@
1
+ <head></head>
@@ -0,0 +1,85 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Version 1.0.4
4
+ https://github.com/allejo/jekyll-toc
5
+
6
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
7
+
8
+ Usage:
9
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
10
+
11
+ Parameters:
12
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
13
+
14
+ Optional Parameters:
15
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
16
+ * class (string) : '' - a CSS class assigned to the TOC
17
+ * id (string) : '' - an ID to assigned to the TOC
18
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
19
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
20
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
21
+ * item_class (string) : '' - add custom class for each list item; has support for '%level%' placeholder, which is the current heading level
22
+
23
+ Output:
24
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only generate the table of contents and will NOT output the markdown given to it
25
+ {% endcomment %}
26
+
27
+ {% capture my_toc %}{% endcapture %}
28
+ {% assign orderedList = include.ordered | default: false %}
29
+ {% assign minHeader = include.h_min | default: 1 %}
30
+ {% assign maxHeader = include.h_max | default: 6 %}
31
+ {% assign nodes = include.html | split: '<h' %}
32
+ {% assign firstHeader = true %}
33
+
34
+ {% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
35
+
36
+ {% for node in nodes %}
37
+ {% if node == "" %}
38
+ {% continue %}
39
+ {% endif %}
40
+
41
+ {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
42
+
43
+ {% if headerLevel < minHeader or headerLevel > maxHeader %}
44
+ {% continue %}
45
+ {% endif %}
46
+
47
+ {% if firstHeader %}
48
+ {% assign firstHeader = false %}
49
+ {% assign minHeader = headerLevel %}
50
+ {% endif %}
51
+
52
+ {% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
53
+ {% assign _workspace = node | split: '</h' %}
54
+
55
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
56
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
57
+ {% assign html_id = _idWorkspace[0] %}
58
+
59
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
60
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
61
+
62
+ {% assign space = '' %}
63
+ {% for i in (1..indentAmount) %}
64
+ {% assign space = space | prepend: ' ' %}
65
+ {% endfor %}
66
+
67
+ {% unless include.item_class == blank %}
68
+ {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
69
+ {% endunless %}
70
+
71
+ {% capture my_toc %}{{ my_toc }}
72
+ {{ space }}{{ listModifier }} {{ listItemClass }} [{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}](#{{ html_id }}){% endcapture %}
73
+
74
+ {% endfor %}
75
+
76
+ {% if include.class %}
77
+ {% capture my_toc %}{:.{{ include.class }}}
78
+ {{ my_toc | lstrip }}{% endcapture %}
79
+ {% endif %}
80
+
81
+ {% if include.id %}
82
+ {% capture my_toc %}{: #{{ include.id }}}
83
+ {{ my_toc | lstrip }}{% endcapture %}
84
+ {% endif %}
85
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: none
3
+ ---
4
+ {{ content }}
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: blank
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="en-GB">
6
+ {% include bas-style-kit/bsk-head.html %}
7
+ {% include bas-style-kit/bsk-body.html %}
8
+ </html>
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: bas-style-kit/bsk--standard
3
+ ---
4
+
5
+ <div class="bsk-row">
6
+ <div class="bsk-col-sm-12 bsk-col-md-9 bsk-col-xl-10 bsk-offset-md-3 bsk-col-offset-xl-2">
7
+ {% include bas-style-kit/bsk-body--page-header.html %}
8
+ </div>
9
+ </div>
10
+ <div class="bsk-row">
11
+ {% if page.bas_style_kit_jekyll_theme.feature_flags.page.toc == true %}
12
+ <div class="bsk-col-sm-12 bsk-col-md-3 bsk-col-lg-3 bsk-col-xl-2">
13
+ <aside class="bsk-sidebar bsk-sidebar-default">
14
+ <h2>Contents</h2>
15
+ {% include bas-style-kit/bsk-body--toc.html %}
16
+ </aside>
17
+ </div>
18
+ {% endif %}
19
+ <div class="bsk-col-sm-12 bsk-col-md-9 bsk-col-xl-10 {% unless page.bas_style_kit_jekyll_theme.feature_flags.page.toc == true %}bsk-col-offset-md-3 bsk-col-offset-xl-2{% endunless %}">
20
+ {{ content }}
21
+ </div>
22
+ </div>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: blank
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="en-GB">
6
+ {% include bas-style-kit/bsk-head.html %}
7
+ {% include bas-style-kit/bsk-body--standard.html %}
8
+ </html>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: blank
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="en-GB">
6
+ {% include bas-style-kit/head.html %}
7
+ {% include bas-style-kit/body.html %}
8
+ </html>
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: bas-style-kit/bsk--standard
3
+ main_content_classes: bsk-pattern-page-not-found
4
+ title: Page not found
5
+ ---
6
+
7
+ <h1 class="bsk-page-header">Page not found</h1>
8
+ <p>If you typed the web address, check it is correct.</p>
9
+ <p>If you pasted the web address, check you copied the entire address.</p>
10
+ <p>If the web address is correct or you selected a link or button, <a href="{{ site.bas_style_kit_jekyll_theme.attributes.site_feedback_href }}">contact us</a> to let us know.</p>