elixir-toolkit-theme 1.9.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 207a325fa96fa5023481284b6824ea600dcb234c26016b44bd330f30fc3e7f20
4
- data.tar.gz: f8680ad1cac04568b0cb696885342e4fa241f4978e48f02ee2d17915bdf49f15
3
+ metadata.gz: 4fe5e9440e3e34682666b6d049cf15eb286c6e61146aadd3c033f0455525176e
4
+ data.tar.gz: 91f7d940d74aa3f6400fc11057dd6294bb41f227102cbff06b7184c7f5b1fb48
5
5
  SHA512:
6
- metadata.gz: 3ad726b98582e9e2d16c0d287b9462a007b7af076fcc2f311b7cfa607366cae37c581e5d19b799886a2b8e6dfb36dd1395116b9a0ed01e8461d514eeace15b00
7
- data.tar.gz: 89a708688970bdd2d99e91b1164496958f007ff968afa2600457108ce55383d679f269009ec3e15ca6ad379fcd33479f95562c365bcd88aa1f1b0859a67416fb
6
+ metadata.gz: 8852094035cbd6f5e5f0fdf9faae34ff652a89ffe8a65088bcb173534cf557eb9d39b88b1cb34c6e8a8bc3c2d6688719fc0f46e085d0da6b33c6fe3a6d747af4
7
+ data.tar.gz: ee765a134f076c02f0410f3a42b82de1eeb090c4b1e903bc31981fdce26c1c669dab0ddebdbe3eeb8513aea988f37c78d36ffc85a7ca48b045548238afbdc159
data/README.md CHANGED
@@ -99,6 +99,7 @@ This will start the docker container and serve the website locally. Make sure th
99
99
  ## This theme is known to be used in:
100
100
 
101
101
  - [RDMkit](https://rdmkit.elixir-europe.org/)
102
+ - [WorkflowHub project](https://about.workflowhub.eu/)
102
103
  - [RDMGuide](https://rdm.elixir-belgium.org/)
103
104
  - [Infectious Diseases Toolkit](https://www.infectious-diseases-toolkit.org/)
104
105
  - [Applied Bioinformatics and Biostatistics intranet page](https://intranet.psb.ugent.be/abb/)
@@ -8,6 +8,9 @@
8
8
  </div>
9
9
  {%- elsif column.type == "links" %}
10
10
  <div class="col-lg-{{column.width}} col-sm-6">
11
+ {%- if column.title != nil %}
12
+ <span class="footer-title">{{column.title}}</span>
13
+ {%- endif %}
11
14
  <ul class="mb-0">
12
15
  {%- for link in column.children %}
13
16
  {%- if link.url != nil and link.external_url == nil%}
@@ -0,0 +1,17 @@
1
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.edit_me == nil or site.theme_variables.github_buttons.open_issue == nil or site.theme_variables.github_buttons.history == nil %}
2
+ <div id="edit-me" class="btn-group">
3
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.edit_me == nil %}
4
+ {%- if page.custom-editme %}
5
+ <a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.custom-editme}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
6
+ {%- else %}
7
+ <a role="button" data-bs-toggle="tooltip" title="Propose changes to this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
8
+ {%- endif %}
9
+ {%- endif %}
10
+ {%- if site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.open_issue == nil %}
11
+ <a role="button" data-bs-toggle="tooltip" title="Report an issue" href="{{site.github.repository_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-exclamation"></i></a>
12
+ {%- endif %}
13
+ {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
14
+ <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page" href="{{site.github.repository_url}}/commits/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-history"></i></a>
15
+ {%- endif %}
16
+ </div>
17
+ {%- endif %}
data/_includes/toc.html CHANGED
@@ -1,8 +1,8 @@
1
1
  <script>
2
2
  $(document).ready(function () {
3
- $('#toc').toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: 'h2' , title: '' });
3
+ $('#toc').toc({ minimumHeaders: {{site.theme_variables.toc.min_headers | default: 2 }}, listType: 'ul', noBackToTopLinks: true, showSpeed: 0, headers: '{{site.theme_variables.toc.headers | default: 'main h2' }}' , title: '', classes:{toc:'p-3 rounded my-4'} });
4
4
  });
5
5
  </script>
6
6
  <div class="col-12 col-sm-7 col-xl-5">
7
- <div id="toc" class="p-3 rounded my-4"></div>
7
+ <div id="toc"></div>
8
8
  </div>
@@ -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="me-3 img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-3">{{site.topnav_title}}</span>{% endif %}</a>
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>
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>
@@ -45,9 +45,16 @@
45
45
  {%- if topnav.subitems.size > 1 %}
46
46
  <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0 nav-break"></li>
47
47
  {%- endif %}
48
+ {%- if site.theme_variables.topnav.twitter %}
49
+ <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0">
50
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fab fa-twitter me-2"></i>Twitter</a>
51
+ </li>
52
+ {%- endif %}
53
+ {%- if site.theme_variables.topnav.github or site.theme_variables.topnav.github == nil %}
48
54
  <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0">
49
55
  <a class="nav-link ps-2 d-flex align-items-center" href="{{site.github.repository_url}}"><i class="fab fa-github me-2"></i>{{site.theme_variables.git_host | default: 'GitHub' }}</a>
50
56
  </li>
57
+ {%- endif %}
51
58
  <!--start search-->
52
59
  <li class="nav-item ms-0 ms-lg-3 my-2 my-lg-0">
53
60
  <div class="position-relative">
data/_layouts/page.html CHANGED
@@ -9,22 +9,8 @@ layout: default
9
9
  {%- else %}
10
10
  <h1>{{ page.title }}
11
11
  {%- endif %}
12
- {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.edit_me == nil or site.theme_variables.github_buttons.open_issue == nil or site.theme_variables.github_buttons.history == nil %}
13
- <div class="btn-group">
14
- {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.edit_me == nil %}
15
- {%- if page.custom-editme %}
16
- <a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.custom-editme}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
17
- {%- else %}
18
- <a role="button" data-bs-toggle="tooltip" title="Propose changes to this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
19
- {%- endif %}
20
- {%- endif %}
21
- {%- if site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.open_issue == nil %}
22
- <a role="button" data-bs-toggle="tooltip" title="Report an issue" href="{{site.github.repository_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-exclamation"></i></a>
23
- {%- endif %}
24
- {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
25
- <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page" href="{{site.github.repository_url}}/commits/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-history"></i></a>
26
- {%- endif %}
27
- </div>
12
+ {%- if site.theme_variables.github_buttons.position == "top" or site.theme_variables.github_buttons.position == nil %}
13
+ {% include github-buttons.html %}
28
14
  {%- endif %}
29
15
  </h1>
30
16
  {%- endif %}
@@ -42,5 +28,10 @@ layout: default
42
28
  {% include resource-table-all.html tag=page.page_id %}
43
29
  {%- endif %}
44
30
  {% include contributor-minitiles-page.html %}
31
+ {%- if site.theme_variables.github_buttons.position == "bottom" %}
32
+ <div id="github-buttons-wrapper" class="d-flex mt-5">
33
+ {% include github-buttons.html %}
34
+ </div>
35
+ {%- endif %}
45
36
  </main>
46
37
 
data/assets/js/toc.js CHANGED
@@ -11,7 +11,8 @@
11
11
  showSpeed: 'slow', // set to 0 to deactivate effect
12
12
  classes: { list: '',
13
13
  item: '',
14
- link: ''
14
+ link: '',
15
+ toc: ''
15
16
  }
16
17
  },
17
18
  settings = $.extend(defaults, options);
@@ -44,6 +45,8 @@
44
45
  settings.showEffect = 'none';
45
46
  }
46
47
 
48
+ $(this).addClass(settings.classes.toc)
49
+
47
50
  var render = {
48
51
  show: function() { output.hide().html(html).show(settings.showSpeed); },
49
52
  slideDown: function() { output.hide().html(html).slideDown(settings.showSpeed); },
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.9.0
4
+ version: 1.11.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-21 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -71,6 +71,7 @@ files:
71
71
  - _includes/cookie-popup.html
72
72
  - _includes/events.html
73
73
  - _includes/footer.html
74
+ - _includes/github-buttons.html
74
75
  - _includes/head.html
75
76
  - _includes/image.html
76
77
  - _includes/more-information-tiles.html