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.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +5 -0
  3. data/_includes/analytics.liquid +12 -0
  4. data/_includes/breadcrumb.liquid +31 -12
  5. data/_includes/footer.liquid +48 -44
  6. data/_includes/header.liquid +129 -100
  7. data/_includes/hero.liquid +39 -0
  8. data/_includes/scripts.liquid +2 -2
  9. data/_includes/seo.liquid +148 -0
  10. data/_includes/todo/hierachy.liquid +22 -0
  11. data/_layouts/default.html +45 -5
  12. data/_sass/bootstrap/{_buttons.scss → 5.3.2/_buttons.scss} +1 -1
  13. data/_sass/bootstrap/{_nav.scss → 5.3.2/_nav.scss} +2 -14
  14. data/_sass/bootstrap/{_reboot.scss → 5.3.2/_reboot.scss} +5 -4
  15. data/_sass/bootstrap/{_root.scss → 5.3.2/_root.scss} +3 -0
  16. data/_sass/bootstrap/{_utilities.scss → 5.3.2/_utilities.scss} +3 -3
  17. data/_sass/bootstrap/{_variables-dark.scss → 5.3.2/_variables-dark.scss} +3 -1
  18. data/_sass/bootstrap/{_variables.scss → 5.3.2/_variables.scss} +21 -17
  19. data/_sass/bootstrap/{forms → 5.3.2/forms}/_floating-labels.scss +2 -1
  20. data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-check.scss +2 -1
  21. data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_color-bg.scss +1 -2
  22. data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_vr.scss +1 -1
  23. data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_banner.scss +1 -1
  24. data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_grid.scss +1 -1
  25. data/_sass/website.scss +74 -7
  26. data/assets/resources/site/debug.json +5 -0
  27. data/assets/resources/site/humans.txt +14 -14
  28. data/assets/resources/site/{sitemap.md → sitemap.markdown} +1 -2
  29. data/assets/scripts/bootstrap/{bootstrap.bundle.js → 5.3.2/bootstrap.bundle.js} +16 -8
  30. data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.js.map +1 -0
  31. data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.min.js +7 -0
  32. data/assets/scripts/bootstrap/5.3.2/bootstrap.bundle.min.js.map +1 -0
  33. data/assets/scripts/bootstrap/{bootstrap.esm.js → 5.3.2/bootstrap.esm.js} +16 -8
  34. data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.js.map +1 -0
  35. data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.min.js +7 -0
  36. data/assets/scripts/bootstrap/5.3.2/bootstrap.esm.min.js.map +1 -0
  37. data/assets/scripts/bootstrap/{bootstrap.js → 5.3.2/bootstrap.js} +16 -8
  38. data/assets/scripts/bootstrap/5.3.2/bootstrap.js.map +1 -0
  39. data/assets/scripts/bootstrap/5.3.2/bootstrap.min.js +7 -0
  40. data/assets/scripts/bootstrap/5.3.2/bootstrap.min.js.map +1 -0
  41. data/assets/styles/main.scss +1 -1
  42. data/assets/videos/demo.mp4 +0 -0
  43. metadata +122 -115
  44. data/assets/scripts/bootstrap/bootstrap.bundle.js.map +0 -1
  45. data/assets/scripts/bootstrap/bootstrap.bundle.min.js +0 -7
  46. data/assets/scripts/bootstrap/bootstrap.bundle.min.js.map +0 -1
  47. data/assets/scripts/bootstrap/bootstrap.esm.js.map +0 -1
  48. data/assets/scripts/bootstrap/bootstrap.esm.min.js +0 -7
  49. data/assets/scripts/bootstrap/bootstrap.esm.min.js.map +0 -1
  50. data/assets/scripts/bootstrap/bootstrap.js.map +0 -1
  51. data/assets/scripts/bootstrap/bootstrap.min.js +0 -7
  52. data/assets/scripts/bootstrap/bootstrap.min.js.map +0 -1
  53. data/_sass/bootstrap/{_accordion.scss → 5.3.2/_accordion.scss} +0 -0
  54. data/_sass/bootstrap/{_alert.scss → 5.3.2/_alert.scss} +0 -0
  55. data/_sass/bootstrap/{_badge.scss → 5.3.2/_badge.scss} +0 -0
  56. data/_sass/bootstrap/{_breadcrumb.scss → 5.3.2/_breadcrumb.scss} +0 -0
  57. data/_sass/bootstrap/{_button-group.scss → 5.3.2/_button-group.scss} +0 -0
  58. data/_sass/bootstrap/{_card.scss → 5.3.2/_card.scss} +0 -0
  59. data/_sass/bootstrap/{_carousel.scss → 5.3.2/_carousel.scss} +0 -0
  60. data/_sass/bootstrap/{_close.scss → 5.3.2/_close.scss} +0 -0
  61. data/_sass/bootstrap/{_containers.scss → 5.3.2/_containers.scss} +0 -0
  62. data/_sass/bootstrap/{_dropdown.scss → 5.3.2/_dropdown.scss} +0 -0
  63. data/_sass/bootstrap/{_forms.scss → 5.3.2/_forms.scss} +0 -0
  64. data/_sass/bootstrap/{_functions.scss → 5.3.2/_functions.scss} +0 -0
  65. data/_sass/bootstrap/{_grid.scss → 5.3.2/_grid.scss} +0 -0
  66. data/_sass/bootstrap/{_helpers.scss → 5.3.2/_helpers.scss} +0 -0
  67. data/_sass/bootstrap/{_images.scss → 5.3.2/_images.scss} +0 -0
  68. data/_sass/bootstrap/{_list-group.scss → 5.3.2/_list-group.scss} +0 -0
  69. data/_sass/bootstrap/{_maps.scss → 5.3.2/_maps.scss} +0 -0
  70. data/_sass/bootstrap/{_mixins.scss → 5.3.2/_mixins.scss} +0 -0
  71. data/_sass/bootstrap/{_modal.scss → 5.3.2/_modal.scss} +0 -0
  72. data/_sass/bootstrap/{_navbar.scss → 5.3.2/_navbar.scss} +0 -0
  73. data/_sass/bootstrap/{_offcanvas.scss → 5.3.2/_offcanvas.scss} +0 -0
  74. data/_sass/bootstrap/{_pagination.scss → 5.3.2/_pagination.scss} +0 -0
  75. data/_sass/bootstrap/{_placeholders.scss → 5.3.2/_placeholders.scss} +0 -0
  76. data/_sass/bootstrap/{_popover.scss → 5.3.2/_popover.scss} +0 -0
  77. data/_sass/bootstrap/{_progress.scss → 5.3.2/_progress.scss} +0 -0
  78. data/_sass/bootstrap/{_spinners.scss → 5.3.2/_spinners.scss} +0 -0
  79. data/_sass/bootstrap/{_tables.scss → 5.3.2/_tables.scss} +0 -0
  80. data/_sass/bootstrap/{_toasts.scss → 5.3.2/_toasts.scss} +0 -0
  81. data/_sass/bootstrap/{_tooltip.scss → 5.3.2/_tooltip.scss} +0 -0
  82. data/_sass/bootstrap/{_transitions.scss → 5.3.2/_transitions.scss} +0 -0
  83. data/_sass/bootstrap/{_type.scss → 5.3.2/_type.scss} +0 -0
  84. data/_sass/bootstrap/{bootstrap-grid.scss → 5.3.2/bootstrap-grid.scss} +0 -0
  85. data/_sass/bootstrap/{bootstrap-reboot.scss → 5.3.2/bootstrap-reboot.scss} +0 -0
  86. data/_sass/bootstrap/{bootstrap-utilities.scss → 5.3.2/bootstrap-utilities.scss} +0 -0
  87. data/_sass/bootstrap/{bootstrap.scss → 5.3.2/bootstrap.scss} +0 -0
  88. data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-control.scss +1 -1
  89. data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-range.scss +3 -3
  90. data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-select.scss +1 -1
  91. /data/_sass/bootstrap/{forms → 5.3.2/forms}/_form-text.scss +0 -0
  92. /data/_sass/bootstrap/{forms → 5.3.2/forms}/_input-group.scss +0 -0
  93. /data/_sass/bootstrap/{forms → 5.3.2/forms}/_labels.scss +0 -0
  94. /data/_sass/bootstrap/{forms → 5.3.2/forms}/_validation.scss +0 -0
  95. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_clearfix.scss +0 -0
  96. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_colored-links.scss +0 -0
  97. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_focus-ring.scss +0 -0
  98. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_icon-link.scss +0 -0
  99. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_position.scss +0 -0
  100. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_ratio.scss +0 -0
  101. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_stacks.scss +0 -0
  102. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_stretched-link.scss +0 -0
  103. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_text-truncation.scss +0 -0
  104. /data/_sass/bootstrap/{helpers → 5.3.2/helpers}/_visually-hidden.scss +0 -0
  105. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_alert.scss +0 -0
  106. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_backdrop.scss +0 -0
  107. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_border-radius.scss +0 -0
  108. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_box-shadow.scss +0 -0
  109. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_breakpoints.scss +0 -0
  110. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_buttons.scss +0 -0
  111. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_caret.scss +0 -0
  112. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_clearfix.scss +0 -0
  113. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_color-mode.scss +0 -0
  114. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_color-scheme.scss +0 -0
  115. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_container.scss +0 -0
  116. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_deprecate.scss +0 -0
  117. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_forms.scss +0 -0
  118. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_gradients.scss +0 -0
  119. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_image.scss +0 -0
  120. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_list-group.scss +0 -0
  121. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_lists.scss +0 -0
  122. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_pagination.scss +0 -0
  123. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_reset-text.scss +0 -0
  124. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_resize.scss +0 -0
  125. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_table-variants.scss +0 -0
  126. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_text-truncate.scss +0 -0
  127. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_transition.scss +0 -0
  128. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_utilities.scss +0 -0
  129. /data/_sass/bootstrap/{mixins → 5.3.2/mixins}/_visually-hidden.scss +0 -0
  130. /data/_sass/bootstrap/{tests → 5.3.2/tests}/jasmine.js +0 -0
  131. /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_color-modes.test.scss +0 -0
  132. /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_media-query-color-mode-full.test.scss +0 -0
  133. /data/_sass/bootstrap/{tests → 5.3.2/tests}/mixins/_utilities.test.scss +0 -0
  134. /data/_sass/bootstrap/{tests → 5.3.2/tests}/sass-true/register.js +0 -0
  135. /data/_sass/bootstrap/{tests → 5.3.2/tests}/sass-true/runner.js +0 -0
  136. /data/_sass/bootstrap/{tests → 5.3.2/tests}/utilities/_api.test.scss +0 -0
  137. /data/_sass/bootstrap/{utilities → 5.3.2/utilities}/_api.scss +0 -0
  138. /data/_sass/bootstrap/{vendor → 5.3.2/vendor}/_rfs.scss +0 -0
  139. /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: b5acb4489dace934aa621833ce0dcb418f94b41acd90ea52a373264ce8f84fe4
4
- data.tar.gz: 76395e9ca1649bf7662648abbf57c6c4752a34943e184e85c3ff45352ab76892
3
+ metadata.gz: 7a55e172d5a897d5688fa8f3bb94a935b0c03b8bde9dbde31c75457513343c87
4
+ data.tar.gz: 5099f6a9e8ff744d35167bf95d769f5cf33d3994e7d683eea3417175f06a1aa1
5
5
  SHA512:
6
- metadata.gz: ad05588d31ddfd810bc2654a0bfaeb41454044eb12917245c1ba6ba74b6a3a27fecd7c91aff59660a61cab1dbe6068fd35716009cca03a533e95efd23a691d99
7
- data.tar.gz: 8c330c085ed38bd44b7d57b964f810604697bcc6d73ee592980b3c4f5d61a24439c80943c956f3bf9c2244025a8b262ff7735f2954f1f3222ad5dcb6ced56968
6
+ metadata.gz: 6c72ab91bbbf9b206f81654b9c92d2d73a551d7a99bc461dffbc2c2da5a668192d6639e354fad677a144c75d300a776d71f54dc01bb234f45a322ca89a859ea8
7
+ data.tar.gz: 59bba63820abe7cf3f5b24544bc41f606c3fa682b55d4928d61ea270fa248f047bd881ad627cef91952543eab76d4f7f4f34728278b389c11e92d0628cb6c5ee
data/_config.yml ADDED
@@ -0,0 +1,5 @@
1
+ settings:
2
+ - analytics: XXXXX
3
+ - demo: xxxx
4
+
5
+ analytics: XXXXX
@@ -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 %}
@@ -1,20 +1,39 @@
1
- <!-- Breadcrumb -->
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 class="breadcrumb">
6
- {% assign crumbs = page.url | remove: '/index.html' | split: '/' %}
7
- <li class="breadcrumb-item">
9
+ <ol>
10
+ <li>
8
11
  <a href="/">Home</a>
9
12
  </li>
10
- {% for crumb in crumbs offset: 1 %}
11
- {% if forloop.last %}
12
- <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
13
- {% else %}
14
- <li class="breadcrumb-item">
15
- <a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace: '-', ' ' | remove: '.html' | capitalize }}</a>
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
- {% endif %}
18
- {% endfor %}
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>
@@ -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
- <!-- Footer Top -->
9
- <div id="footer-top"></div>
8
+ <!-- Footer Top -->
9
+ <div id="footer-top"></div>
10
10
 
11
- <!-- Footer Main-->
12
- {% if social or menus %}
11
+ <!-- Footer Main-->
12
+ {% if social or menus %}
13
13
  <div id="footer-main" class="row pt-3 border-bottom">
14
- {% if social %}
14
+ {% if social %}
15
15
  <!-- Social Media -->
16
16
  <div id="social" class="col-sm-12 col-lg-6">
17
- <h2 class="h5">Let's Connect</h2>
18
- <p>Follow us on your favorite platform</p>
19
- <div>
20
- {% include social.html class="nav pb-3" %}
21
- </div>
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
- {% 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 class="nav-link p-0 text-muted" href="{{ item.link | absolute_url }}" title="{{ menu.title }}: {{ item.title }}">{{ item.title }}</a>
34
- </li>
35
- {% endfor %}
36
- </ul>
37
- </div>
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
- {%- endfor -%}
40
- {%- endif -%}
41
+ </div>
42
+ {%- endfor -%}
43
+ {%- endif -%}
41
44
  </div>
42
- {% endif %}
45
+ {% endif %}
43
46
 
44
- <!-- Footer Bottom: Website information -->
45
- <div id="footer-bottom">
46
- <div class="row py-3">
47
- <div id="copyright" class="col-sm-6">
48
- <p>&copy; Copyright {{ "now" | date: "%Y" }}{%- if company -%} - {{ company }}{%- endif -%}</p>
49
- </div>
50
- <div id="disclaimer" class="col-sm-6 text-center text-lg-end">
51
- <a href="https://lydde.com">
52
- <img src="{{ '/assets/lydde.png' | absolute_url }}"
53
- alt="{%- if company -%}{{ company }} is {%- endif -%}a subsidiary of LYDDE Group">
54
- </a>
55
- </div>
56
- </div>
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>&copy; 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 -%}
@@ -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
- {%- if files.path == logo -%}
8
- {%- assign logoExist = true -%}
9
- {%- break -%}
10
- {%- endif -%}
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
- <div class="container">
16
-
17
- <!-- Header Top: Social Network -->
18
- {%- if social -%}
19
- <div id="header-top">
20
- <div class="d-lg-none spacer">&nbsp;</div>
21
- <div class="d-none d-lg-block">
22
- <!-- Social Network -->
23
- {% include social.html class="nav justify-content-end" %}
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">&nbsp;</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
- {%- endif -%}
32
+ </div>
33
+ {%- endif -%}
27
34
 
28
- <!-- Header Main: Site Menu -->
29
- <nav id="header-main" class="navbar navbar-expand-lg">
30
- <div class="container-fluid">
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
- <!-- Logo -->
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
- <!-- Brand -->
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
- <!-- Responsive Toggle Button -->
44
- <button
45
- class="navbar-toggler"
46
- type="button"
47
- data-bs-toggle="collapse"
48
- data-bs-target="#navbarContent"
49
- aria-controls="navbarContent"
50
- aria-expanded="false"
51
- aria-label="Toggle navigation menu">
52
- <span class="navbar-toggler-icon"></span>
53
- </button>
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
- <!-- Navigation -->
56
- <div id="navbarContent" class="collapse navbar-collapse p-2 pt-5 p-lg-0">
57
- {%- if menus -%}
58
- {% for menu in menus %}
59
- <!-- Site -->
60
- <div id="{{ menu.title | slugify }}" {% if menu.position == 'left' %}class="me-auto"{% endif %}>
61
- <ul class="navbar-nav nav-pills">
62
- {% for item in menu.links %}
63
- <li class="nav-item">
64
- <a class="nav-link px-3{%- if page.url == item.link -%} active{%- endif -%}"
65
- {%- if page.url == item.link -%}aria-current="page"{%- endif -%}
66
- href="{{ item.link | absolute_url }}"
67
- title="{{ item.title }}">
68
- {%- if item.icon -%}<i class="{{ item.icon }}"></i>{%- endif -%}{{ item.title | escape }}
69
- </a>
70
- </li>
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
- {%- endfor -%}
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
- {%- for path in paths -%}
89
- {%- assign item = site.pages | where: "path", path | first -%}
90
- {%- if resources == true -%}
91
- {%- if item.title and item.path contains "resources/pages" -%}
92
- <li>
93
- <a class="nav-link" href="{{ item.url | absolute_url }}" title="{{ item.title }}">{{item.title}}</a>
94
- </li>
95
- {%- endif -%}
96
- {%- else -%}
97
- {%- unless item.path contains "resources" -%}
98
- {%- if item.title and item.layout == "page" -%}
99
- <li>
100
- <a class="nav-link" href="{{ item.url | absolute_url }}" title="{{ item.title }}">{{item.title}}</a>
101
- </li>
102
- {%- endif -%}
103
- {%- endunless -%}
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
- {%- endfor -%}
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
- </div>
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
- </nav>
119
-
120
- <!-- Header Bottom -->
121
- <div id="header-bottom"></div>
122
- </div>
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">&nbsp;</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 -%}
@@ -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.0/dist/js/bootstrap.min.js"
7
- integrity="sha384-fbbOQedDUMZZ5KreZpsbe1LCZPVmfTnH7ois6mU1QK+m14rQ1l2bGBq41eYeM/fS"
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