jekyll-theme-lydde 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_config.yml +5 -0
- data/_includes/analytics.liquid +12 -0
- data/_includes/breadcrumb.liquid +31 -12
- data/_includes/footer.liquid +48 -44
- data/_includes/header.liquid +129 -100
- data/_includes/hero.liquid +39 -0
- data/_includes/scripts.liquid +2 -2
- data/_includes/seo.liquid +148 -0
- data/_includes/todo/hierachy.liquid +22 -0
- data/_layouts/default.html +45 -5
- data/_sass/bootstrap/{_buttons.scss → 5.3.2/_buttons.scss} +1 -1
- data/_sass/bootstrap/{_nav.scss → 5.3.2/_nav.scss} +2 -14
- data/_sass/bootstrap/{_reboot.scss → 5.3.2/_reboot.scss} +5 -4
- data/_sass/bootstrap/{_root.scss → 5.3.2/_root.scss} +3 -0
- data/_sass/bootstrap/{_utilities.scss → 5.3.2/_utilities.scss} +3 -3
- data/_sass/bootstrap/{_variables-dark.scss → 5.3.2/_variables-dark.scss} +3 -1
- data/_sass/bootstrap/{_variables.scss → 5.3.2/_variables.scss} +21 -17
- data/_sass/bootstrap/{forms → 5.3.2/forms}/_floating-labels.scss +2 -1
- data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-check.scss +2 -1
- data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_color-bg.scss +1 -2
- data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_vr.scss +1 -1
- data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_banner.scss +1 -1
- data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_grid.scss +1 -1
- data/_sass/website.scss +74 -7
- data/assets/resources/site/debug.json +5 -0
- data/assets/resources/site/humans.txt +14 -14
- data/assets/resources/site/{sitemap.md → sitemap.markdown} +1 -2
- data/assets/scripts/bootstrap/{bootstrap.bundle.js → 5.3.2/bootstrap.bundle.js} +16 -8
- data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.js.map +1 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.min.js +7 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.min.js.map +1 -0
- data/assets/scripts/bootstrap/{bootstrap.esm.js → 5.3.2/bootstrap.esm.js} +16 -8
- data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.js.map +1 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.min.js +7 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.min.js.map +1 -0
- data/assets/scripts/bootstrap/{bootstrap.js → 5.3.2/bootstrap.js} +16 -8
- data/assets/scripts/bootstrap/5.3.2/bootstrap.js.map +1 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.min.js +7 -0
- data/assets/scripts/bootstrap/5.3.2/bootstrap.min.js.map +1 -0
- data/assets/styles/main.scss +1 -1
- data/assets/videos/demo.mp4 +0 -0
- metadata +122 -115
- data/assets/scripts/bootstrap/bootstrap.bundle.js.map +0 -1
- data/assets/scripts/bootstrap/bootstrap.bundle.min.js +0 -7
- data/assets/scripts/bootstrap/bootstrap.bundle.min.js.map +0 -1
- data/assets/scripts/bootstrap/bootstrap.esm.js.map +0 -1
- data/assets/scripts/bootstrap/bootstrap.esm.min.js +0 -7
- data/assets/scripts/bootstrap/bootstrap.esm.min.js.map +0 -1
- data/assets/scripts/bootstrap/bootstrap.js.map +0 -1
- data/assets/scripts/bootstrap/bootstrap.min.js +0 -7
- data/assets/scripts/bootstrap/bootstrap.min.js.map +0 -1
- data/_sass/bootstrap/{_accordion.scss → 5.3.2/_accordion.scss} +0 -0
- data/_sass/bootstrap/{_alert.scss → 5.3.2/_alert.scss} +0 -0
- data/_sass/bootstrap/{_badge.scss → 5.3.2/_badge.scss} +0 -0
- data/_sass/bootstrap/{_breadcrumb.scss → 5.3.2/_breadcrumb.scss} +0 -0
- data/_sass/bootstrap/{_button-group.scss → 5.3.2/_button-group.scss} +0 -0
- data/_sass/bootstrap/{_card.scss → 5.3.2/_card.scss} +0 -0
- data/_sass/bootstrap/{_carousel.scss → 5.3.2/_carousel.scss} +0 -0
- data/_sass/bootstrap/{_close.scss → 5.3.2/_close.scss} +0 -0
- data/_sass/bootstrap/{_containers.scss → 5.3.2/_containers.scss} +0 -0
- data/_sass/bootstrap/{_dropdown.scss → 5.3.2/_dropdown.scss} +0 -0
- data/_sass/bootstrap/{_forms.scss → 5.3.2/_forms.scss} +0 -0
- data/_sass/bootstrap/{_functions.scss → 5.3.2/_functions.scss} +0 -0
- data/_sass/bootstrap/{_grid.scss → 5.3.2/_grid.scss} +0 -0
- data/_sass/bootstrap/{_helpers.scss → 5.3.2/_helpers.scss} +0 -0
- data/_sass/bootstrap/{_images.scss → 5.3.2/_images.scss} +0 -0
- data/_sass/bootstrap/{_list-group.scss → 5.3.2/_list-group.scss} +0 -0
- data/_sass/bootstrap/{_maps.scss → 5.3.2/_maps.scss} +0 -0
- data/_sass/bootstrap/{_mixins.scss → 5.3.2/_mixins.scss} +0 -0
- data/_sass/bootstrap/{_modal.scss → 5.3.2/_modal.scss} +0 -0
- data/_sass/bootstrap/{_navbar.scss → 5.3.2/_navbar.scss} +0 -0
- data/_sass/bootstrap/{_offcanvas.scss → 5.3.2/_offcanvas.scss} +0 -0
- data/_sass/bootstrap/{_pagination.scss → 5.3.2/_pagination.scss} +0 -0
- data/_sass/bootstrap/{_placeholders.scss → 5.3.2/_placeholders.scss} +0 -0
- data/_sass/bootstrap/{_popover.scss → 5.3.2/_popover.scss} +0 -0
- data/_sass/bootstrap/{_progress.scss → 5.3.2/_progress.scss} +0 -0
- data/_sass/bootstrap/{_spinners.scss → 5.3.2/_spinners.scss} +0 -0
- data/_sass/bootstrap/{_tables.scss → 5.3.2/_tables.scss} +0 -0
- data/_sass/bootstrap/{_toasts.scss → 5.3.2/_toasts.scss} +0 -0
- data/_sass/bootstrap/{_tooltip.scss → 5.3.2/_tooltip.scss} +0 -0
- data/_sass/bootstrap/{_transitions.scss → 5.3.2/_transitions.scss} +0 -0
- data/_sass/bootstrap/{_type.scss → 5.3.2/_type.scss} +0 -0
- data/_sass/bootstrap/{bootstrap-grid.scss → 5.3.2/bootstrap-grid.scss} +0 -0
- data/_sass/bootstrap/{bootstrap-reboot.scss → 5.3.2/bootstrap-reboot.scss} +0 -0
- data/_sass/bootstrap/{bootstrap-utilities.scss → 5.3.2/bootstrap-utilities.scss} +0 -0
- data/_sass/bootstrap/{bootstrap.scss → 5.3.2/bootstrap.scss} +0 -0
- data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-control.scss +1 -1
- data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-range.scss +3 -3
- data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-select.scss +1 -1
- /data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-text.scss +0 -0
- /data/_sass/bootstrap/{forms → 5.3.2/forms}/_input-group.scss +0 -0
- /data/_sass/bootstrap/{forms → 5.3.2/forms}/_labels.scss +0 -0
- /data/_sass/bootstrap/{forms → 5.3.2/forms}/_validation.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_clearfix.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_colored-links.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_focus-ring.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_icon-link.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_position.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_ratio.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_stacks.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_stretched-link.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_text-truncation.scss +0 -0
- /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_visually-hidden.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_alert.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_backdrop.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_border-radius.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_box-shadow.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_breakpoints.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_buttons.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_caret.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_clearfix.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_color-mode.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_color-scheme.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_container.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_deprecate.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_forms.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_gradients.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_image.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_list-group.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_lists.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_pagination.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_reset-text.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_resize.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_table-variants.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_text-truncate.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_transition.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_utilities.scss +0 -0
- /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_visually-hidden.scss +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/jasmine.js +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_color-modes.test.scss +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_media-query-color-mode-full.test.scss +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_utilities.test.scss +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/sass-true/register.js +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/sass-true/runner.js +0 -0
- /data/_sass/bootstrap/{tests → 5.3.2/tests}/utilities/_api.test.scss +0 -0
- /data/_sass/bootstrap/{utilities → 5.3.2/utilities}/_api.scss +0 -0
- /data/_sass/bootstrap/{vendor → 5.3.2/vendor}/_rfs.scss +0 -0
- /data/assets/resources/site/{404.md → 404.markdown} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a55e172d5a897d5688fa8f3bb94a935b0c03b8bde9dbde31c75457513343c87
|
4
|
+
data.tar.gz: 5099f6a9e8ff744d35167bf95d769f5cf33d3994e7d683eea3417175f06a1aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c72ab91bbbf9b206f81654b9c92d2d73a551d7a99bc461dffbc2c2da5a668192d6639e354fad677a144c75d300a776d71f54dc01bb234f45a322ca89a859ea8
|
7
|
+
data.tar.gz: 59bba63820abe7cf3f5b24544bc41f606c3fa682b55d4928d61ea270fa248f047bd881ad627cef91952543eab76d4f7f4f34728278b389c11e92d0628cb6c5ee
|
data/_config.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{%- assign analytics = site.data.settings.analytics | default: site.analytics -%}
|
2
|
+
{% if analytics %}
|
3
|
+
<!-- Global Google Site Tag -->
|
4
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analytics }}"></script>
|
5
|
+
<script>
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){dataLayer.push(arguments);}
|
8
|
+
gtag('js', new Date());
|
9
|
+
|
10
|
+
gtag('config', '{{ analytics }}');
|
11
|
+
</script>
|
12
|
+
{% endif %}
|
data/_includes/breadcrumb.liquid
CHANGED
@@ -1,20 +1,39 @@
|
|
1
|
-
|
1
|
+
{%- comment -%}
|
2
|
+
The breadcrumb component is used to show the current page's location in the site hierarchy.
|
3
|
+
It is based on Bootstrap's breadcrumb component.
|
4
|
+
Each crumb expose the page title (if exist)
|
5
|
+
{%- endcomment -%}
|
2
6
|
<nav
|
3
7
|
id="breadcrumb"
|
4
8
|
aria-label="breadcrumb">
|
5
|
-
<ol
|
6
|
-
|
7
|
-
<li class="breadcrumb-item">
|
9
|
+
<ol>
|
10
|
+
<li>
|
8
11
|
<a href="/">Home</a>
|
9
12
|
</li>
|
10
|
-
{
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
{%- comment -%}
|
14
|
+
Hierarchy-Based Breadcrumbs (a.k.a., Location-Based Breadcrumbs)
|
15
|
+
The most common type of breadcrumbs that tell users where they are in the site structure and how to get back to the homepage.
|
16
|
+
For example: Home > Resources > Page
|
17
|
+
{%- endcomment -%}
|
18
|
+
{%- assign crumbs = page.url | remove: '/index.html' | split: '/' -%}
|
19
|
+
{%- for crumb in crumbs offset: 1 -%}
|
20
|
+
{%- unless forloop.last -%}
|
21
|
+
<li>
|
22
|
+
{%- capture crumb_path -%}
|
23
|
+
{%- assign crumb_limit = forloop.index | plus: 1 -%}
|
24
|
+
{%- for crumb in crumbs limit: crumb_limit -%}{{ crumb | append: '/' }}{%- endfor -%}
|
25
|
+
{%- endcapture -%}
|
26
|
+
<a href="{{ crumb_path }}">
|
27
|
+
{%- assign aim = site.pages | where:"url", crumb_path | first -%}
|
28
|
+
{{ aim.title }}
|
29
|
+
</a>
|
16
30
|
</li>
|
17
|
-
|
18
|
-
{
|
31
|
+
{%- endunless -%}
|
32
|
+
{%- endfor -%}
|
33
|
+
{% comment %}
|
34
|
+
Attribute-Based Breadcrumbs
|
35
|
+
This is commonly used on ecommerce sites to show what attributes the user has clicked.
|
36
|
+
For example: Home > Shoes > Hiking > Womens
|
37
|
+
{% endcomment %}
|
19
38
|
</ol>
|
20
39
|
</nav>
|
data/_includes/footer.liquid
CHANGED
@@ -1,60 +1,64 @@
|
|
1
1
|
{%- assign company = authors.default.name | default: site.title | escape -%}
|
2
2
|
{%- assign menus = site.settings.menus.footer | default: site.data.settings.menus.footer -%}
|
3
|
-
{%- assign social = site.settings.social| default: site.data.settings.social -%}
|
3
|
+
{%- assign social = site.settings.social | default: site.data.settings.social -%}
|
4
4
|
|
5
5
|
{%- if page.footer != false -%}
|
6
|
-
<footer id="footer" class="border-top text-muted">
|
6
|
+
<footer id="footer" class="border-top text-muted">
|
7
7
|
<div class="container">
|
8
|
-
|
9
|
-
|
8
|
+
<!-- Footer Top -->
|
9
|
+
<div id="footer-top"></div>
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
<!-- Footer Main-->
|
12
|
+
{% if social or menus %}
|
13
13
|
<div id="footer-main" class="row pt-3 border-bottom">
|
14
|
-
|
14
|
+
{% if social %}
|
15
15
|
<!-- Social Media -->
|
16
16
|
<div id="social" class="col-sm-12 col-lg-6">
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
<h2 class="h5">Let's Connect</h2>
|
18
|
+
<p>Follow us on your favorite platform</p>
|
19
|
+
<div>
|
20
|
+
{% include social.liquid class = "nav pb-3" %}
|
21
|
+
</div>
|
22
22
|
</div>
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
23
|
+
{% endif %}
|
24
|
+
{% if menus %}
|
25
|
+
<!-- Links -->
|
26
|
+
{%- for menu in menus -%}
|
27
|
+
<div id="{{ menu.title | slugify }}" class="col-lg-3 col-sm-6">
|
28
|
+
<h2 class="h5">{{ menu.title }}</h2>
|
29
|
+
<div>
|
30
|
+
<ul class="nav flex-column pb-3">
|
31
|
+
{% for item in menu.links %}
|
32
|
+
<li class="nav-item mb-2">
|
33
|
+
<a
|
34
|
+
class="nav-link p-0 text-muted"
|
35
|
+
href="{{ item.link | absolute_url }}"
|
36
|
+
title="{{ menu.title }}: {{ item.title }}">{{ item.title }}</a>
|
37
|
+
</li>
|
38
|
+
{% endfor %}
|
39
|
+
</ul>
|
38
40
|
</div>
|
39
|
-
|
40
|
-
{%-
|
41
|
+
</div>
|
42
|
+
{%- endfor -%}
|
43
|
+
{%- endif -%}
|
41
44
|
</div>
|
42
|
-
|
45
|
+
{% endif %}
|
43
46
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
47
|
+
<!-- Footer Bottom: Website information -->
|
48
|
+
<div id="footer-bottom">
|
49
|
+
<div class="row py-3">
|
50
|
+
<div id="copyright" class="col-sm-6">
|
51
|
+
<p>© Copyright {{ "now" | date: "%Y" }}{% if company %}
|
52
|
+
- {{ company }}{%- endif -%}
|
53
|
+
</p>
|
54
|
+
</div>
|
55
|
+
<div id="disclaimer" class="col-sm-6 text-center text-lg-end">
|
56
|
+
<a href="https://lydde.com">
|
57
|
+
<img src="{{ '/assets/lydde.png' | absolute_url }}"alt="{%- if company -%}{{ company }} is {%- endif -%}a subsidiary of LYDDE Group">
|
58
|
+
</a>
|
59
|
+
</div>
|
57
60
|
</div>
|
61
|
+
</div>
|
58
62
|
</div>
|
59
|
-
</footer>
|
63
|
+
</footer>
|
60
64
|
{%- endif -%}
|
data/_includes/header.liquid
CHANGED
@@ -1,124 +1,153 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
The header is based on Bootstrap 5 Navbar component
|
3
|
+
The structure is composed of 3 parts:
|
4
|
+
- Header Top: Social Network
|
5
|
+
- Header Main: Site Menu
|
6
|
+
- Header Bottom: links
|
7
|
+
{%- endcomment -%}
|
1
8
|
{%- assign company = authors.default.name | site.title | default: 'Theme' | escape -%}
|
2
9
|
{%- assign menus = site.settings.menus.header | default: site.data.settings.menus.header -%}
|
3
10
|
{%- assign social = site.settings.social | default: site.data.settings.social -%}
|
4
11
|
|
5
12
|
{%- assign logo = site.logo | default: "/assets/logo.png" -%}
|
6
13
|
{%- for files in site.static_files -%}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
14
|
+
{%- if files.path == logo -%}
|
15
|
+
{%- assign logoExist = true -%}
|
16
|
+
{%- break -%}
|
17
|
+
{%- endif -%}
|
11
18
|
{%- endfor -%}
|
12
19
|
|
13
20
|
{%- if page.header != false -%}
|
14
21
|
<header id="header">
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
</div>
|
22
|
+
<div class="container">
|
23
|
+
|
24
|
+
<!-- Header Top: Social Network -->
|
25
|
+
{%- if social -%}
|
26
|
+
<div id="header-top">
|
27
|
+
<div class="d-lg-none spacer"> </div>
|
28
|
+
<div class="d-none d-lg-block">
|
29
|
+
<!-- Social Network -->
|
30
|
+
{% include social.liquid class = "nav justify-content-end" %}
|
25
31
|
</div>
|
26
|
-
|
32
|
+
</div>
|
33
|
+
{%- endif -%}
|
27
34
|
|
28
|
-
|
29
|
-
|
30
|
-
|
35
|
+
<!-- Header Main: Site Menu -->
|
36
|
+
<nav id="header-main" class="navbar navbar-expand-lg">
|
37
|
+
<div class="container-fluid">
|
38
|
+
<!-- Logo -->
|
39
|
+
<div id="logo">
|
40
|
+
<a
|
41
|
+
id="brand"
|
42
|
+
class="navbar-brand"
|
43
|
+
href="{{ '/' | absolute_url }}"
|
44
|
+
title="{{ company }}"
|
45
|
+
rel="author">
|
31
46
|
{%- if logoExist -%}
|
32
|
-
|
33
|
-
<div id="logo" class="navbar-brand">
|
34
|
-
<a id="brand" href="{{ '/'' | absolute_url }}" title="{{ company }}" rel="author">
|
35
|
-
<img src="{{ logo | absolute_url }}" alt="{{ company }}">
|
36
|
-
</a>
|
37
|
-
</div>
|
47
|
+
<img src="{{ logo | absolute_url }}" alt="{{ company }}" />
|
38
48
|
{%- else -%}
|
39
|
-
|
40
|
-
<a id="brand" href="{{ '/' | absolute_url }}" title="{{ company }}" rel="author" class="navbar-brand">{{ company }}</a>
|
49
|
+
{{ company }}
|
41
50
|
{%- endif -%}
|
51
|
+
</a>
|
52
|
+
</div>
|
42
53
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
<!-- Responsive Toggle Button -->
|
55
|
+
<button
|
56
|
+
class="navbar-toggler"
|
57
|
+
type="button"
|
58
|
+
data-bs-toggle="collapse"
|
59
|
+
data-bs-target="#navbarContent"
|
60
|
+
aria-controls="navbarContent"
|
61
|
+
aria-expanded="false"
|
62
|
+
aria-label="Toggle navigation menu">
|
63
|
+
<span class="navbar-toggler-icon"></span>
|
64
|
+
</button>
|
54
65
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
{% endfor %}
|
72
|
-
</ul>
|
73
|
-
</div>
|
74
|
-
<hr />
|
75
|
-
{% endfor %}
|
76
|
-
{%- else -%}
|
77
|
-
<!-- Default Navigation -->
|
78
|
-
<ul class="navbar-nav col-lg-6 justify-content-lg-center">
|
79
|
-
{%- assign paths = site.pages | map: "path" -%}
|
80
|
-
{%- for path in paths -%}
|
81
|
-
{%- assign item = site.pages | where: "path", path | first -%}
|
82
|
-
{%- if item.title and item.path contains "resources/pages" -%}
|
83
|
-
{%- assign resources = true -%}
|
84
|
-
{%- break -%}
|
66
|
+
<!-- Navigation -->
|
67
|
+
<div id="navbarContent" class="collapse navbar-collapse p-2 pt-5 p-lg-0">
|
68
|
+
{% comment %}
|
69
|
+
Display the menu from the configuration file (site or data) if it exists
|
70
|
+
Overwise, display the default menu based on the page hierarchy
|
71
|
+
{% endcomment %}
|
72
|
+
{%- if menus -%}
|
73
|
+
{% for menu in menus %}
|
74
|
+
<!-- Site -->
|
75
|
+
<div id="{{ menu.title | slugify }}" {% if menu.position == 'left' %}class="me-auto"{% endif %}>
|
76
|
+
<ul class="navbar-nav nav-pills">
|
77
|
+
{% for item in menu.links %}
|
78
|
+
<li class="nav-item">
|
79
|
+
<a class="nav-link px-3{%- if page.url == item.link -%} active{%- endif -%}" {%- if page.url == item.link -%}aria-current="page"{%- endif -%}href="{{ item.link | absolute_url }}"title="{{ item.title }}">
|
80
|
+
{%- if item.icon -%}
|
81
|
+
<i class="{{ item.icon }}"></i>
|
85
82
|
{%- endif -%}
|
86
|
-
|
83
|
+
{{ item.title | escape }}
|
84
|
+
</a>
|
85
|
+
</li>
|
86
|
+
{% endfor %}
|
87
|
+
</ul>
|
88
|
+
</div>
|
89
|
+
<hr/>
|
90
|
+
{% endfor %}
|
91
|
+
{%- else -%}
|
92
|
+
<!-- Default Navigation -->
|
93
|
+
<ul class="navbar-nav justify-content-lg-center">
|
94
|
+
{% comment %}
|
95
|
+
Extract all pages and sort them by path
|
96
|
+
{% endcomment %}
|
97
|
+
{%- assign paths = site.pages | map: "path" | sort -%}
|
98
|
+
{%- for path in paths -%}
|
99
|
+
{%- assign item = site.pages | where: "path", path | first -%}
|
100
|
+
{%- if item.title and item.path contains "resources/pages" -%}
|
101
|
+
{%- assign resources = true -%}
|
102
|
+
{%- break -%}
|
103
|
+
{%- endif -%}
|
104
|
+
{%- endfor -%}
|
87
105
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
{
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
106
|
+
{%- for path in paths -%}
|
107
|
+
{%- assign item = site.pages | where: "path", path | first -%}
|
108
|
+
{%- if resources == true -%}
|
109
|
+
{%- if item.title and item.path contains "resources/pages" -%}
|
110
|
+
<li>
|
111
|
+
<a
|
112
|
+
class="nav-link"
|
113
|
+
href="{{ item.url | absolute_url }}"
|
114
|
+
title="{{ item.title }}">{{ item.title }}</a>
|
115
|
+
</li>
|
116
|
+
{%- endif -%}
|
117
|
+
{%- else -%}
|
118
|
+
{% comment %}
|
119
|
+
Create a hiearchy of pages but exclude resources
|
120
|
+
{% endcomment %}
|
121
|
+
|
122
|
+
{%- unless item.path contains "resources" -%}
|
123
|
+
{%- if item.title and item.layout == "page" -%}
|
124
|
+
<li>
|
125
|
+
<a
|
126
|
+
class="nav-link"
|
127
|
+
href="{{ item.url | absolute_url }}"
|
128
|
+
title="{{ item.title }}">{{ item.title }}</a>
|
129
|
+
</li>
|
130
|
+
|
104
131
|
{%- endif -%}
|
105
|
-
|
106
|
-
</ul>
|
107
|
-
{%- endif -%}
|
108
|
-
{%- if social -%}
|
109
|
-
<hr />
|
110
|
-
<!-- Social Network -->
|
111
|
-
<div class="d-lg-none border-top">
|
112
|
-
<h4>Follow us</h4>
|
113
|
-
{% include social.html class="nav justify-content-center" %}
|
114
|
-
</div>
|
132
|
+
{%- endunless -%}
|
115
133
|
{%- endif -%}
|
116
|
-
|
134
|
+
{%- endfor -%}
|
135
|
+
</ul>
|
136
|
+
{%- endif -%}
|
137
|
+
{%- if social -%}
|
138
|
+
<hr/>
|
139
|
+
<!-- Social Network -->
|
140
|
+
<div class="d-lg-none border-top">
|
141
|
+
<h4>Follow us</h4>
|
142
|
+
{% include social.liquid class = "nav justify-content-center" %}
|
117
143
|
</div>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
144
|
+
{%- endif -%}
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
</nav>
|
148
|
+
|
149
|
+
<!-- Header Bottom -->
|
150
|
+
<div id="header-bottom"></div>
|
151
|
+
</div>
|
123
152
|
</header>
|
124
153
|
{%- endif -%}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
The Hero section is used to display a title, a description and a call to action.
|
3
|
+
It can also display a background image or a video.
|
4
|
+
|
5
|
+
TODO : include a carousel
|
6
|
+
{%- endcomment -%}
|
7
|
+
{%- unless page.hero == false -%}
|
8
|
+
<section id="hero" {% if layout.splash or page.splash %}class="vh-100"{% endif %}>
|
9
|
+
<!-- Background -->
|
10
|
+
{%- if page.trailer -%}
|
11
|
+
<video autoplay muted loop poster="{{ page.image | absolute_url }}" class="background">
|
12
|
+
<source src="{{ page.trailer | absolute_url }}" type="video/mp4">
|
13
|
+
</video>
|
14
|
+
{%- elsif page.image -%}
|
15
|
+
<picture>
|
16
|
+
<source srcset="{{ page.image | absolute_url }}">
|
17
|
+
<img src="{{ page.image | absolute_url }}" alt="{{ page.title | escape }}" class="background">
|
18
|
+
</picture>
|
19
|
+
{%- else -%}
|
20
|
+
<span class="background"> </span>
|
21
|
+
{%- endif -%}
|
22
|
+
<!-- Content -->
|
23
|
+
<div id="hero-content">
|
24
|
+
<div>
|
25
|
+
<div class="col">
|
26
|
+
<h1 class="display-1">{{ page.title | default: site.title | default: "Welcome to Symphony theme" | escape }}</h1>
|
27
|
+
<!-- Breadcrumbs -->
|
28
|
+
{%- include breadcrumb.liquid -%}
|
29
|
+
<p class="lead">{{ page.excerpt | default: site.description | default: "Review our documentation to fix issue" | strip_html | escape }}</p>
|
30
|
+
</div>
|
31
|
+
{%- if page.action -%}
|
32
|
+
<div class="col-4 text-center">
|
33
|
+
<a class="btn btn-primary btn-lg" href="{{ page.action.link }}" role="button" title="{{ page.action.title }}">{{ page.action.title }}</a>
|
34
|
+
</div>
|
35
|
+
{%- endif -%}
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
{%- endunless -%}
|
data/_includes/scripts.liquid
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
|
4
4
|
crossorigin="anonymous"
|
5
5
|
id="popper-script"></script>
|
6
|
-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.
|
7
|
-
integrity="sha384-
|
6
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
|
7
|
+
integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
|
8
8
|
crossorigin="anonymous"
|
9
9
|
id="bootstrap-script"></script>
|
10
10
|
|