elixir-toolkit-theme 1.12.0 → 1.13.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd7c840ddd6bc288ebc91fe2668c8eb61bbf41e3b8e5e6ce363efe8277226e88
4
- data.tar.gz: 35542051eee4a4791172916ef213d618cc6307327c9d69c416134df87ad02790
3
+ metadata.gz: af01a19ca393effa2ffbedd956647a477769b045da4fc2ae5493494f389ba480
4
+ data.tar.gz: 7d24d9eff95e370fd1c7d623b1e30c50452bc779d0145b45633aa02dc50cb2b7
5
5
  SHA512:
6
- metadata.gz: 8ed10a4573f13c03b45cb8aece155b215efe339f984aa413885506d9fa4ae9fafb3dd40159f018760c5d0919c74913858082616a721fa07d3440f0ff9f815e0d
7
- data.tar.gz: cf2710ff17423374936decb1be36b798019e02d7cebf82a35964cb2f9649078b74e55e6fa32811b5368ba2603f0b5863558fa54eda4ae830ee2930c16a589dd8
6
+ metadata.gz: f6e7ecd5827ee352c36e4eca4055b5461a9906d9d74fed13ecc3a920d776d8f119d3728629a3c4b03f4f0d568edb81ae54e344ac199c21b7623449452bba3392
7
+ data.tar.gz: cb05a2d704b22bd2dc9a7d6dc794f3594d666bbb0ed5fab8df4c76a056c21b5a94522e74c81ce9132a524ce627b118694e23d73f39127561f1871d6a9b7102ff
@@ -2,7 +2,7 @@
2
2
  <!-- START Bootstrap-Cookie-Alert -->
3
3
  <div class="alert text-center cookiealert rounded-0" role="alert">
4
4
  We use cookies to ensure you get the best experience on our website. Read our
5
- <a class="fw-bold" href="{{ '/privacy.html' | relative_url}}">privacy policy</a> to find out more.
5
+ <a class="fw-bold" href="{{ '/privacy' | relative_url}}">privacy policy</a> to find out more.
6
6
  <button type="button" id="acceptcookies" class="btn btn-primary ms-2">
7
7
  Got it!
8
8
  </button>
@@ -33,7 +33,7 @@
33
33
  {%- endfor %}
34
34
  </ul>
35
35
  {%- if include.caption == "true" %}
36
- <small>An overview of all our events can be fount on the <a href="/events.html">events page</a>.</small>
36
+ <small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
37
37
  {%- endif %}
38
38
  </div>
39
39
  <script>
data/_includes/news.html CHANGED
@@ -31,6 +31,6 @@
31
31
  {%- endfor %}
32
32
  </ul>
33
33
  {%- if include.caption == "true" %}
34
- <small>For more news please visit our <a href="/news.html">news page</a>.</small>
34
+ <small>For more news please visit our <a href="/news">news page</a>.</small>
35
35
  {%- endif %}
36
36
  </div>
@@ -1,11 +1,11 @@
1
1
  {%- assign sidebar = site.data.sidebars[page.sidebar] %}
2
- {%- capture reusing -%}{%- if page.url == "/reusing.html" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
3
- {%- capture preserving -%}{%- if page.url == "/preserving.html" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
4
- {%- capture analysing -%}{%- if page.url == "/analysing.html" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
5
- {%- capture processing -%}{%- if page.url == "/processing.html" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
6
- {%- capture planning -%}{%- if page.url == "/planning.html" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
7
- {%- capture collecting -%}{%- if page.url == "/collecting.html" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
8
- {%- capture sharing -%}{%- if page.url == "/sharing.html" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
2
+ {%- capture reusing -%}{%- if page.url == "/reusing" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
3
+ {%- capture preserving -%}{%- if page.url == "/preserving" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
4
+ {%- capture analysing -%}{%- if page.url == "/analysing" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
5
+ {%- capture processing -%}{%- if page.url == "/processing" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
6
+ {%- capture planning -%}{%- if page.url == "/planning" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
7
+ {%- capture collecting -%}{%- if page.url == "/collecting" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
8
+ {%- capture sharing -%}{%- if page.url == "/sharing" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
9
9
  <button class="btn text-start d-lg-none collapsed sidebar-collapse w-100 mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#side-nav" aria-controls="side-nav" aria-expanded="true" aria-label="Toggle navigation">
10
10
  {{ page.sidebar | capitalize | replace: "_", " " }} menu <i title="navbar-toggler" class="fa fa-bars ms-2"></i>
11
11
  </button>
@@ -4,7 +4,7 @@
4
4
  <a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
5
5
  <nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
6
6
  <div class="container">
7
- <a class="navbar-brand" href="{{ 'index.html' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
7
+ <a class="navbar-brand" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
8
8
  <button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
9
9
  <i title="navbar-toggler" class="fa fa-bars"></i>
10
10
  </button>
@@ -19,6 +19,11 @@
19
19
  </div>
20
20
  </div>
21
21
  </div>
22
+ {%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}
23
+ <button id="back-to-top" class="btn btn-primary" type="button" aria-hidden="true" onclick="topFunction()">
24
+ <i class="fa fa-arrow-up"></i><span class="ms-2 d-none d-sm-inline">Back to top</span>
25
+ </button>
26
+ {%- endif %}
22
27
  {% include footer.html %}
23
28
  {% include cookie-popup.html %}
24
29
  </body>
data/assets/css/main.scss CHANGED
@@ -443,6 +443,22 @@ footer {
443
443
  }
444
444
  }
445
445
 
446
+ /*-----Back to top-----*/
447
+ #back-to-top {
448
+ transition: 0.3s ease-in-out;
449
+ position: fixed;
450
+ bottom: -50px;
451
+ right: $spacer;
452
+ opacity: 0;
453
+ overflow: hidden;
454
+ z-index: 1000;
455
+
456
+ &.visible {
457
+ bottom: $spacer;
458
+ opacity: 1;
459
+ }
460
+ }
461
+
446
462
  /*-----Contributors cards-----*/
447
463
 
448
464
  .contributor-cards {
data/assets/js/main.js CHANGED
@@ -73,16 +73,27 @@ $(function () {
73
73
  })
74
74
 
75
75
  /**
76
- * Toggle button texts
76
+ * Back to top button
77
77
  */
78
- jQuery(function ($) {
79
- $('.toggle-text[data-bs-toggle="collapse"]').on('click', function () {
80
- $(this)
81
- .data('text-original', $(this).text())
82
- .text($(this).data('text-alt'))
83
- .data('text-alt', $(this).data('text-original'));
84
- });
85
- });
78
+
79
+ var toggleHeight = $(window).outerHeight() / 3;
80
+
81
+ $(window).scroll(function () {
82
+ if ($(window).scrollTop() > toggleHeight) {
83
+ //Adds active class to make button visible
84
+ $("#back-to-top").addClass("visible");
85
+
86
+ } else {
87
+ //Removes active class to make button visible
88
+ $("#back-to-top").removeClass("visible");
89
+ }
90
+ });
91
+
92
+ //Scrolls the user to the top of the page again
93
+ function topFunction() {
94
+ document.body.scrollTop = 0; // For Safari
95
+ document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
96
+ }
86
97
 
87
98
 
88
99
  /**
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll