elixir-toolkit-theme 1.17.0 → 1.18.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 +4 -4
- data/README.md +6 -3
- data/_includes/events.html +3 -3
- data/_includes/head.html +0 -1
- data/_includes/image.html +1 -1
- data/_includes/news.html +4 -4
- data/assets/css/main.scss +5 -6
- data/assets/js/main.js +27 -16
- metadata +2 -3
- data/assets/js/jquery.cookie.min.js +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 702636aa170b2e75631a12f0d9be59517201ed939f85f05ad55995605eebfdd0
|
4
|
+
data.tar.gz: 3b65284656f88bd3ef65100136314bf63b8b26673e6f0209a2fe03e021fb935b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '007482963824a42c21fed1785de053c989aaf7d3a1c09f5524d29ff3a63051dbb6678765d743c8b707908a4eda36288f375743797b8926871d34fd2e80e377d0'
|
7
|
+
data.tar.gz: c7e480e1f14b95d2be8f990fbc15bb79663049cfe46e95b69135fac6ab7a19471c83f70649ec184a7e4992d47246902efcaa87729bee9d8635a90107f9fef394
|
data/README.md
CHANGED
@@ -23,13 +23,16 @@ Its key features:
|
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
26
|
-
### via GitHub Pages remote theme
|
26
|
+
### via GitHub Pages remote theme (installation free!)
|
27
27
|
|
28
|
-
The
|
28
|
+
The quickest way to use the elixir-toolkit-theme is to use the GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file:
|
29
29
|
|
30
30
|
```yaml
|
31
31
|
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
|
32
32
|
```
|
33
|
+
|
34
|
+
It also allows you to use a specific version of the theme by add `@X.X.X` to make sure your website keeps working iif breaking changes get introduced.
|
35
|
+
|
33
36
|
### via RubyGems:
|
34
37
|
|
35
38
|
Alternatively you can install it as a Ruby Gem (preferred way if you use GitLab).
|
@@ -96,7 +99,7 @@ docker run -it --rm -p [::1]:4000:4000 -v $PWD:/srv/jekyll jekyll/jekyll:latest
|
|
96
99
|
|
97
100
|
This will start the docker container and serve the website locally. Make sure the `.\_site` is not yet created to avoid permission errors.
|
98
101
|
|
99
|
-
## This theme is known to be used in
|
102
|
+
## This theme is known to be used in
|
100
103
|
|
101
104
|
- [RDMkit](https://rdmkit.elixir-europe.org/)
|
102
105
|
- [WorkflowHub project](https://about.workflowhub.eu/)
|
data/_includes/events.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="events {{include.event_type}}s">
|
2
|
-
{%- if include.title ==
|
2
|
+
{%- if include.title == true%}
|
3
3
|
<h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
|
4
4
|
{%- endif %}
|
5
5
|
{%- assign events = site.data.events %}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{%- endif %}
|
17
17
|
{%- if event.description %}
|
18
18
|
{%- assign word_count = event.description | split: " " | size %}
|
19
|
-
{%- if include.truncate ==
|
19
|
+
{%- if include.truncate == true and word_count > 40 %}
|
20
20
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
21
21
|
View description
|
22
22
|
</a>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
{%- assign count = count | plus: 1 %}
|
33
33
|
{%- endfor %}
|
34
34
|
</ul>
|
35
|
-
{%- if include.caption ==
|
35
|
+
{%- if include.caption == true%}
|
36
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>
|
data/_includes/head.html
CHANGED
@@ -54,7 +54,6 @@
|
|
54
54
|
<script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
|
55
55
|
<script src="{{ 'assets/js/toc.js' | relative_url }}"></script>
|
56
56
|
<script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
|
57
|
-
<script src="{{ 'assets/js/jquery.cookie.min.js' | relative_url }}"></script>
|
58
57
|
<script src="{{ 'assets/js/main.js' | relative_url }}"></script>
|
59
58
|
<script src="{{ 'assets/js/search.js' | relative_url }}"></script>
|
60
59
|
{%- if page.datatable == true %}
|
data/_includes/image.html
CHANGED
data/_includes/news.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="news">
|
2
|
-
{%- if include.title ==
|
2
|
+
{%- if include.title == true %}
|
3
3
|
<h2>Whats new?</h2>
|
4
4
|
{%- endif %}
|
5
|
-
{%- assign news = site.data.news | sort: "date"%}
|
5
|
+
{%- assign news = site.data.news | sort: "date" %}
|
6
6
|
{%- assign count = 0 %}
|
7
7
|
<ul class="list-unstyled mt-3">
|
8
8
|
{%- for new in news reversed%}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fa-solid fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p>
|
12
12
|
{%- if new.description %}
|
13
13
|
{%- assign word_count = new.description | split: " " | size %}
|
14
|
-
{%- if include.truncate ==
|
14
|
+
{%- if include.truncate == true and word_count > 40 %}
|
15
15
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
16
16
|
View description
|
17
17
|
</a>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
{%- endif %}
|
31
31
|
{%- endfor %}
|
32
32
|
</ul>
|
33
|
-
{%- if include.caption ==
|
33
|
+
{%- if include.caption == true %}
|
34
34
|
<small>For more news please visit our <a href="{{ '/news' | relative_url }}">news page</a>.</small>
|
35
35
|
{%- endif %}
|
36
36
|
</div>
|
data/assets/css/main.scss
CHANGED
@@ -58,6 +58,11 @@ main {
|
|
58
58
|
ol li,
|
59
59
|
ul li {
|
60
60
|
margin: 10px 0px;
|
61
|
+
|
62
|
+
&::marker {
|
63
|
+
color: $primary;
|
64
|
+
font-weight: 600;
|
65
|
+
}
|
61
66
|
}
|
62
67
|
|
63
68
|
img {
|
@@ -95,12 +100,6 @@ blockquote {
|
|
95
100
|
background: $primary;
|
96
101
|
}
|
97
102
|
|
98
|
-
/*-----Color list marker-----*/
|
99
|
-
|
100
|
-
ul li::marker {
|
101
|
-
color: $primary;
|
102
|
-
}
|
103
|
-
|
104
103
|
/*-----Emoji styling-----*/
|
105
104
|
|
106
105
|
main img.emoji {
|
data/assets/js/main.js
CHANGED
@@ -76,24 +76,24 @@ $(function () {
|
|
76
76
|
* Back to top button
|
77
77
|
*/
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
79
|
+
var toggleHeight = $(window).outerHeight() / 2;
|
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
94
|
document.body.scrollTop = 0; // For Safari
|
95
95
|
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
96
|
-
|
96
|
+
}
|
97
97
|
|
98
98
|
|
99
99
|
/**
|
@@ -127,3 +127,14 @@ function show_past_events() {
|
|
127
127
|
elements.show();
|
128
128
|
};
|
129
129
|
|
130
|
+
/**
|
131
|
+
* Making tables responsive
|
132
|
+
*/
|
133
|
+
$(document).ready(function () {
|
134
|
+
$('table').each(function (i, obj) {
|
135
|
+
if (!$(obj).parents('.table-responsive').length) {
|
136
|
+
$(obj).wrap('<div class="table-responsive mt-4 mb-5"/>');
|
137
|
+
}
|
138
|
+
});
|
139
|
+
|
140
|
+
});
|
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.
|
4
|
+
version: 1.18.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-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -468,7 +468,6 @@ files:
|
|
468
468
|
- assets/js/bootstrap.bundle.min.js
|
469
469
|
- assets/js/bootstrap.bundle.min.js.map
|
470
470
|
- assets/js/dataTables.bootstrap5.min.js
|
471
|
-
- assets/js/jquery.cookie.min.js
|
472
471
|
- assets/js/jquery.dataTables.min.js
|
473
472
|
- assets/js/jquery.min.js
|
474
473
|
- assets/js/jquery.min.map
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Cookie Plugin v1.3.1
|
3
|
-
* https://github.com/carhartl/jquery-cookie
|
4
|
-
*
|
5
|
-
* Copyright 2013 Klaus Hartl
|
6
|
-
* Released under the MIT license
|
7
|
-
*/
|
8
|
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
|