Skip to content

Commit bf06407

Browse files
authored
Merge pull request #69 from bedroesb/johan-tets
showcase include
2 parents 2470a0c + ae9d33c commit bf06407

File tree

6 files changed

+27
-25
lines changed

6 files changed

+27
-25
lines changed

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

_data/tiles.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
- title: "Production instance"
2-
url: https://workflowhub.eu/
3-
- title: "Sandbox instance"
4-
url: https://dev.workflowhub.eu/
5-
- title: "Source code"
6-
url: https://github.com/seek4science/seek
7-
- title: "Documentation"
8-
url: docs/
9-
- title: "Outreach and Publications"
10-
url: project/outreach
11-
- title: "Roadmap"
12-
url: project/roadmap
1+
landingpage:
2+
- title: "Production instance"
3+
url: https://workflowhub.eu/
4+
- title: "Sandbox instance"
5+
url: https://dev.workflowhub.eu/
6+
- title: "Source code"
7+
url: https://github.com/seek4science/seek
8+
- title: "Documentation"
9+
url: docs/
10+
- title: "Outreach and Publications"
11+
url: project/outreach

_includes/tiles-simple.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-2 gx-4 my-4 navigation-tiles">
2-
{%- for item in site.data.tiles %}
2+
{%- if include.yaml %}
3+
{%- assign tiles = site.data.tiles[include.target] %}
4+
{% else %}
5+
{%- assign tiles = page[include.target] %}
6+
{%- endif %}
7+
{%- for item in tiles %}
38
{%- if item.title %}
49
<div class="col d-grid">
5-
<a role="button" class="btn btn-secondary text-light font-size-sm py-4 fs-3" href="{{ item.url | relative_url }}">{{item.title}}</a>
10+
<a role="button" class="btn font-size-sm py-4 fs-3" href="{{ item.url | relative_url }}">{{item.title}}</a>
611
</div>
712
{%- endif %}
813
{%- endfor %}

_sass/_custom_classes.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
/*-----From https://github.com/elixir-europe/infectious-diseases-toolkit/blob/main/_sass/_custom_classes.scss-----*/
33

44
.navigation-tiles {
5-
.card {
6-
background-color: $light;
7-
color: $dark;
8-
}
9-
.card:hover {
10-
box-shadow: $box-shadow;
11-
background-color: $primary;
12-
}
135

146
.card-body {
157
h3 {

_sass/_custom_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ $topnav-title-color: $primary;
44
$topnav-brand-height: 80px;
55

66
/*-----Section navigation tiles-----*/
7-
$nav-card-bg: $primary;
7+
$nav-card-bg: $light;
88
$nav-card-color: $dark;
99
$nav-card-bg-hover: $primary;
1010
$nav-card-color-hover: $white;
11+

index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ permalink: /
55
# There are special sidebar rules for the index page in layouts/default.html
66
hide_sidebar: true
77
sidebar: true
8+
9+
test2:
10+
- title: "Roadmap"
11+
url: project/roadmap
12+
813
---
914

1015
## About
@@ -49,7 +54,7 @@ For any kind of questions, or suggestions on using WorkflowHub, feel free to joi
4954

5055
## Project resources
5156

52-
{% include tiles-simple.html col = "2" %}
57+
{% include tiles-simple.html col = "2" yaml=true target="landingpage" %}
5358

5459
* **Tutorial videos:**
5560
* [Make your workflows findable and citable](https://www.youtube.com/watch?v=2kGKxaPuQN8) ([slides](https://doi.org/10.5281/zenodo.7787488))
@@ -58,6 +63,7 @@ For any kind of questions, or suggestions on using WorkflowHub, feel free to joi
5863

5964
## Get involved
6065

66+
{% include tiles-simple.html col = "2" target="test2" %}
6167

6268
### Community
6369

0 commit comments

Comments
 (0)