Skip to content

Commit d7ba60e

Browse files
authored
Merge pull request #25 from ELIXIR-Belgium/image-styling
image improvements
2 parents 5a439ec + f9d0288 commit d7ba60e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

assets/css/main.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ main {
4949
ul li {
5050
margin: 10px 0px;
5151
}
52+
53+
img {
54+
@extend .img-fluid;
55+
@extend .figure-img;
56+
}
5257
}
5358

5459
.ff-body {

pages/documentation/markdown_cheat_sheet.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ faircookbook:
5656
* `related_pages`: List here the `page_id` of {{site.title}} pages that you want to display as Related pages, grouped by section.
5757

5858
If you want pages from the specific section (Your tasks, Your domain, Tool assembly) to be shown here as Related pages, list their `page_id`. If you want to list multiple related pages, make sure to put them in a list like this: [page_id1, page_id2]. The specific sections allowed in each page are specified in each page template. Please, do not add extra sections in the metadata of the page.
59+
5960
```yml
6061
related_pages:
6162
- your_tasks: [page_id1, page_id2]
@@ -64,6 +65,7 @@ faircookbook:
6465
```
6566
6667
* `training`: List here training material relevant for the page. We recommend to add your training material in TeSS. However, you can also list here training material that is not yet present in TeSS.
68+
6769
```yml
6870
training:
6971
- name: Training in TeSS
@@ -76,7 +78,9 @@ faircookbook:
7678
registry_url: https://tess.elixir-europe.org
7779
url: https://tess.elixir-europe.org/search?q=data%20analysis
7880
```
81+
7982
* `faircookbook`: List here all the links towards FAIR Cookbook recipes.
83+
8084
```yml
8185
faircookbook:
8286
- name: Data licenses
@@ -189,6 +193,7 @@ This image is inserted in the markdown using following snippet:
189193
```
190194
{% endraw %}
191195

196+
192197
Make sure that you add the image to the `images` directory and give it an understanding filename. Adapt the snippet so it points towards you image (only the filename is needed). In the case of the example, the image exampleImage.png is loaded. Supported attributes are:
193198

194199
* `click`: if true, the image will be clickable -> the image will be loaded in another tab
@@ -197,6 +202,22 @@ Make sure that you add the image to the `images` directory and give it an unders
197202
* `caption`: Text that will appear under the image
198203
* `inline`: if true this image can be used in a list
199204

205+
206+
or using following markdown syntax:
207+
{% raw %}
208+
```
209+
![ELIXIR logo](https://elixir-belgium.github.io/jekyll-bootstrap-theme/images/infrastructures/ELIXIR-logo.svg)
210+
![ELIXIR logo](https://elixir-belgium.github.io/jekyll-bootstrap-theme/images/infrastructures/ELIXIR-logo.svg){: height="200px" width="200px"}
211+
```
212+
{% endraw %}
213+
214+
gives:
215+
216+
![ELIXIR logo](https://elixir-belgium.github.io/jekyll-bootstrap-theme/images/infrastructures/ELIXIR-logo.svg)
217+
![ELIXIR logo](https://elixir-belgium.github.io/jekyll-bootstrap-theme/images/infrastructures/ELIXIR-logo.svg){: height="200px" width="200px"}
218+
219+
220+
200221
## Icons
201222

202223
Go to the [Font Awesome library](https://fontawesome.com/) to see the available icons.

0 commit comments

Comments
 (0)