elixir-toolkit-theme 4.1.0 → 4.2.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: b1c1682a74fb2275ac5f3577da52d962d447a8b5c68e02e13c4df2a247c58cb7
4
- data.tar.gz: b4122f2bbcaa48526640aaaa10716a2891cebd7b14680d65eac35ea37f248bf6
3
+ metadata.gz: 140b7c66e0c04dfbbe10dc5492792c43c88d6a871f74f73a48f317ba7bcb80d6
4
+ data.tar.gz: 1dbd0f382dc4e151582c1bee5bbc596be339281a62b8d90fab3baf2ab79d1695
5
5
  SHA512:
6
- metadata.gz: 965b45a98b7a5229f44ae9e088bc42ca911f4f2dbea16ba9cad066744899c2c6a636654219e38e30e210376e142983dea013074a88aa0bea82cbdb63406273fc
7
- data.tar.gz: 6516e650095475cda8a025e4d872c18761ce3b3e2dc85b9cfbda17acb83a590d917f56c9054ca1a3fa65430210b8df15e53e2eb9c6daa153cba6ac9732e73739
6
+ metadata.gz: 6d078fc983828cfd6744289648dd8f609d5364d8eb8eb80de04863879cb57840b73f988ed8500a9a0e14b3c3364b953552fe0182f396f2ffa75ac67af825f32b
7
+ data.tar.gz: 2563b4a109f9682e11bc96e550dd7c13e4ee5c6ad3404739d0f3ccf871cd995520a6d1914526a87fbda26890c01011f7803c15905f1f701ee6374863fad0f395
data/README.md CHANGED
@@ -37,7 +37,7 @@ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
37
37
  You can lock it onto a specific version using:
38
38
 
39
39
  ```yaml
40
- remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@4.0.0
40
+ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@4.1.0
41
41
  ```
42
42
 
43
43
  ### Using Ruby Gems (alternative)
@@ -50,7 +50,7 @@ gem "elixir-toolkit-theme"
50
50
  You can lock it onto a specific version like this:
51
51
 
52
52
  ```ruby
53
- gem "elixir-toolkit-theme", "~> 4.0.0"
53
+ gem "elixir-toolkit-theme", "~> 4.1.0"
54
54
  ```
55
55
 
56
56
  And add this line to your Jekyll site's `_config.yml`:
@@ -151,10 +151,9 @@ This will start the docker container and serve the website locally. Make sure th
151
151
 
152
152
  - [RDMkit](https://rdmkit.elixir-europe.org/) (CONVERGE)
153
153
  - [WorkflowHub](https://about.workflowhub.eu/) (EOSC-life project)
154
- - [RO-crate](https://www.researchobject.org/ro-crate-2024) (EOSC)
154
+ - [RO-crate](https://www.researchobject.org/ro-crate/) (EOSC)
155
155
  - [Infectious Diseases Toolkit](https://www.infectious-diseases-toolkit.org/) (BY-COVID)
156
156
  - [FAIRDOM](https://fair-dom.org/) (FAIRDOM community)
157
- - [ABB intranet page at PSB](https://intranet.psb.ugent.be/abb/) (VIB department)
158
157
  - [How-to-Guides](https://australianbiocommons.github.io/how-to-guides/) (Australian BioCommons)
159
158
  - [SPLASH](https://elixir-europe-training.github.io/ELIXIR-Training-SPLASH/) (ELIXIR Training platform)
160
159
  - [1+MG Framework](https://framework.onemilliongenomes.eu/) (GDI)
@@ -167,6 +166,9 @@ This will start the docker container and serve the website locally. Make sure th
167
166
  - [dHMp norge](https://dhp-stottepakke.github.io/pages/) (ELIXIR Norway)
168
167
  - [Learning-Library](https://patcapon39.github.io/Learning-Library/) (Australian BioCommons)
169
168
  - [ELIXIR-IT Training Platform](https://elixir-iib-training.github.io/site/training_courses) (ELIXIR IT)
169
+ - [FAIRDOM-SEEK Documentation](https://docs.seek4science.org/) (SEEK community)
170
+ - [FAIR Lesson Plan Handbook](https://elixir-europe-training.github.io/ELIXIR-TrP-FAIR-Converge/) (ELIXIR Training platform)
171
+ - [Data Steward Handbook](https://elixir-uk.github.io/elixir-ds-handbook) (ELIXIR RDM Community)
170
172
  - Want your instance here? [Open an issue](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/issues)
171
173
 
172
174
  ## Dependencies
@@ -0,0 +1,27 @@
1
+ <nav id="breadcrumb" aria-label="breadcrumb">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <ol class="breadcrumb">
4
+ {% if crumbs.size > 0 %}
5
+ <li class="breadcrumb-item mt-0">
6
+ <a href="{{ site.baseurl }}/"><i class="fa-solid fa-house fa-xs"></i></a>
7
+ </li>
8
+ {% endif %}
9
+ {% for crumb in crumbs offset: 1 %}
10
+ {% if forloop.last %}
11
+ <li class="breadcrumb-item last mt-0" aria-current="page">
12
+ {{ page.title }}
13
+ </li>
14
+ {% else %}
15
+ {% capture crumb_url %}{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: "/" }}{% endfor %}{% endcapture %}
16
+ {% assign crumb_title = crumb | replace:'-',' ' | replace:'_',' ' | remove:'.html' | capitalize %}
17
+ {% assign has_index = site.pages | where: "url", crumb_url | first %}
18
+ <li class="breadcrumb-item mt-0">
19
+ {% if has_index %}<a href="{{crumb_url}}">{% if has_index.title %}{{ has_index.title }}{% else %}{{ crumb_title }}{% endif %}</a>
20
+ {% else %}
21
+ {{ crumb_title }}
22
+ {% endif %}
23
+ </li>
24
+ {% endif %}
25
+ {% endfor %}
26
+ </ol>
27
+ </nav>
@@ -0,0 +1,19 @@
1
+ {% if page.page_citation and page.title %}
2
+ <h2>How to cite this page</h2>
3
+ <p>
4
+ {% if page.contributors %}
5
+ {{ page.contributors | join: ", " }},
6
+ {% endif %}
7
+ "<em>{{ page.title }}</em>".
8
+ {% if site.url %}
9
+ {{ site.url | remove: "https://www." | remove: "http://www." | remove: "https://" | remove: "http://" }}.
10
+ {% endif %}
11
+ {% assign page_url = page.url | absolute_url %}
12
+ <a href="{{ page_url }}">{{ page_url }}</a> <span id="current_date"></span>.
13
+ </p>
14
+ <script>
15
+ var current_date = new Date().toLocaleDateString('en-uk', { year:"numeric", month:"long", day:"numeric"})
16
+ document.getElementById("current_date").textContent = "(accessed " + current_date + ")";
17
+ </script>
18
+ {% endif %}
19
+
@@ -1,21 +1,30 @@
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 %}
1
+ {%- assign show_github_edit_button = site.theme_variables.github_buttons.edit_me | default: true %}
2
+ {%- assign show_github_history_button = site.theme_variables.github_buttons.history | default: true %}
3
+ {%- assign show_github_open_issue_button = site.theme_variables.github_buttons.open_issue | default: true %}
4
+
5
+ {%- if show_github_edit_button or show_github_history_button or show_github_open_issue_button %}
2
6
  <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="fa-solid 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="fa-solid fa-pencil-alt"></i></a>
7
+ {% if show_github_edit_button %}
8
+ {% assign repo_url = page.custom_repo_url | default: site.github.repository_url %}
9
+ {% if page.custom_editme %}
10
+ {% assign file_path = page.custom_editme %}
11
+ {% else %}
12
+ {% assign file_path = page.custom_file_path | default: page.path %}
13
+ {% endif %}
14
+ <a role="button" data-bs-toggle="tooltip"
15
+ title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}"
16
+ href="{{repo_url}}/blob/{{site.github.source.branch}}/{{file_path}}"
17
+ class="btn btn-sm hover-primary text-primary"><i class="fa-solid fa-pencil-alt"></i></a>
8
18
  {%- endif %}
19
+ {%- if show_github_open_issue_button %}
20
+ <a role="button" data-bs-toggle="tooltip" title="Report an issue"
21
+ href="{{repo_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 }}"
22
+ class="btn btn-sm hover-primary text-primary"><i class="fa-solid fa-exclamation"></i></a>
9
23
  {%- 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="fa-solid fa-exclamation"></i></a>
12
- {%- endif %}
13
- {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
14
- {%- if page.custom_editme %}
15
- <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.custom_editme}}" class="btn btn-sm hover-primary text-primary"><i class="fa-solid fa-history"></i></a>
16
- {%- else %}
17
- <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="fa-solid fa-history"></i></a>
18
- {%- endif %}
24
+ {%- if show_github_history_button %}
25
+ <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page"
26
+ href="{{repo_url}}/commits/{{site.github.source.branch}}/{{file_path}}"
27
+ class="btn btn-sm hover-primary text-primary"><i class="fa-solid fa-history"></i></a>
19
28
  {%- endif %}
20
29
  </div>
21
30
  {%- endif %}
@@ -39,6 +39,11 @@
39
39
  <thead>
40
40
  <tr class="text-nowrap">
41
41
  <th>Tool or resource
42
+ {%- if include.tag %}
43
+ <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated subset of (and not a comprehensive list of all) tools and resources on this topic - you'll typically find only the tools or resources referenced on this page.">
44
+ <i class="fa-solid fa-info-circle"></i>
45
+ </a>
46
+ {%- endif %}
42
47
  </th>
43
48
  <th>Description</th>
44
49
  <th>Related pages</th>
@@ -142,9 +147,6 @@
142
147
  <thead>
143
148
  <tr class="text-nowrap">
144
149
  <th>Tool or resource
145
- <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all tools or resources that exist for this topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
146
- <i class="fa-solid fa-info-circle"></i>
147
- </a>
148
150
  </th>
149
151
  <th>Description</th>
150
152
  <th>Related pages</th>
@@ -53,7 +53,22 @@
53
53
  {%- endif %}
54
54
  {%- if site.theme_variables.topnav.twitter %}
55
55
  <li class="nav-item">
56
- <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fa-brands fa-x-twitter me-2"></i>Twitter</a>
56
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fa-brands fa-x-twitter me-2"></i>X-Twitter</a>
57
+ </li>
58
+ {%- endif %}
59
+ {%- if site.theme_variables.topnav.bluesky %}
60
+ <li class="nav-item">
61
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.bluesky}}"><i class="fa-brands fa-bluesky me-2"></i>Bluesky</a>
62
+ </li>
63
+ {%- endif %}
64
+ {%- if site.theme_variables.topnav.fosstodon %}
65
+ <li class="nav-item">
66
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.fosstodon}}"><i class="fa-brands fa-mastodon me-2"></i>FOSStodon</a>
67
+ </li>
68
+ {%- endif %}
69
+ {%- if site.theme_variables.topnav.linkedin %}
70
+ <li class="nav-item">
71
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.linkedin}}"><i class="fa-brands fa-linkedin me-2"></i>LinkedIn</a>
57
72
  </li>
58
73
  {%- endif %}
59
74
  {%- if site.theme_variables.topnav.github or site.theme_variables.topnav.github == nil %}
@@ -4,7 +4,7 @@
4
4
  <thead>
5
5
  <tr class="text-nowrap">
6
6
  <th>Name
7
- <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all trainings that exist for a certain topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
7
+ <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated subset of (and not a comprehensive list of all) training resources on relevant topics - you'll typically find only training resources referenced in pages of this website.">
8
8
  <i class="fa-solid fa-info-circle"></i>
9
9
  </a>
10
10
  </th>
data/_layouts/page.html CHANGED
@@ -3,8 +3,11 @@ layout: default
3
3
  ---
4
4
  <main id="main" class="order-1{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
5
5
  <div id="intro">
6
+ {%- if site.theme_variables.breadcrumb %}
7
+ {% include breadcrumb.html %}
8
+ {%- endif %}
6
9
  {%- if page.title %}
7
- {%- if page.type %}
10
+ {%- if page.type and site.theme_variables.breadcrumb != true %}
8
11
  {%- assign subtitle = page.type | replace: "_", " " | capitalize %}
9
12
  <h1 class="has-subtitle order-1 order-md-0"><span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {{ page.title }}
10
13
  {%- else %}
@@ -34,12 +37,11 @@ layout: default
34
37
  {%- endif %}
35
38
  {% include affiliation-tiles-page.html %}
36
39
  {% include contributor-minitiles-page.html %}
40
+ {% include citation-page.html %}
37
41
  {%- if site.theme_variables.github_buttons.position == "bottom" %}
38
42
  <div id="github-buttons-wrapper" class="d-flex mt-5">
39
- {% include github-buttons.html %}
43
+ {% include github-buttons.html %}
40
44
  </div>
41
45
  {%- endif %}
42
46
  </div>
43
47
  </main>
44
-
45
-
data/assets/css/main.scss CHANGED
@@ -10,9 +10,14 @@ permalink: assets/css/main
10
10
  @import "bootstrap/functions";
11
11
  $popover-max-width: 12em;
12
12
  $enable-caret: false;
13
+ $breadcrumb-font-size: 0.85rem;
14
+ $breadcrumb-divider: '>';
15
+ $breadcrumb-margin-bottom: 0;
13
16
  $h3-font-size: 1rem * 1.6 !default;
14
17
  $h2-font-size: 1rem * 2.1 !default;
15
18
  $h1-font-size: 1rem * 3.3 !default;
19
+ $navbar-light-toggler-border-color: transparent;
20
+ $navbar-dark-toggler-border-color: transparent;
16
21
  $card-border-width: 0;
17
22
  $custom-container-max-widths: (
18
23
  xxxl: 1700px
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: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.9
33
+ version: 0.1.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.9
40
+ version: 0.1.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +79,9 @@ files:
79
79
  - _includes/affiliation-tiles-page.html
80
80
  - _includes/affiliation-tiles-selection.html
81
81
  - _includes/banner.html
82
+ - _includes/breadcrumb.html
82
83
  - _includes/callout.html
84
+ - _includes/citation-page.html
83
85
  - _includes/contributor-carousel-selection.html
84
86
  - _includes/contributor-minitiles-page.html
85
87
  - _includes/contributor-tiles-all.html