Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
051cc47c
Commit
051cc47c
authored
Jun 07, 2019
by
Elisabeth Guerard
Browse files
addition parameter font awesome #22
parent
9fdb35a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
_plugins/rblock.rb
View file @
051cc47c
module
Jekyll
module
Tags
class
RblockTag
<
Liquid
::
Block
def
split_params
(
params
)
params
.
split
(
"|"
).
map
(
&
:strip
)
end
def
initialize
(
tag_name
,
block_options
,
liquid_options
)
super
@title
=
block_options
.
strip
args
=
split_params
(
block_options
)
@title
=
args
[
0
]
if
args
.
length
>
1
@icon
=
args
[
1
]
else
#default icon
@icon
=
"fas fa-code"
end
end
def
render
(
context
)
...
...
@@ -20,18 +32,23 @@ module Jekyll
# generate collapsible card HTML
output
=
<<~
EOS
<div class="rblock">
<h3>
#{
@title
}
</h3>
<h3>
<i class="
#{
@icon
}
"></i>
#{
@title
}
</h3>
<hr>
<p>
#{
content
}
</p>
</div>
EOS
output
output
end
end
end
end
Liquid
::
Template
.
register_tag
(
'rblock'
,
Jekyll
::
Tags
::
RblockTag
)
\ No newline at end of file
Liquid
::
Template
.
register_tag
(
'rblock'
,
Jekyll
::
Tags
::
RblockTag
)
\ No newline at end of file
frozen.md
View file @
051cc47c
...
...
@@ -15,7 +15,7 @@ Lisa M Smits†, Lydia Reinhardt†, Peter Reinhardt, Michael Glatza, Anna S Mon
{% rgridblock a-unique-id %}
{% rblock Raw data %}
{% rblock
Raw data
| fas fa-file-download
%}
The complete
**Dataset**
is available
[
here
](
https://webdav-r3lab.uni.lu/public/data/modeling-parkinsons-disease-in-midbrain-like-organoids/
)
.
{% endrblock %}
...
...
@@ -26,7 +26,7 @@ The source code used to make the publication is available on [Github](https://gi
{% rblock microarray data %}
{%
rblock microarray data
| fas fa-globe
%}
Data is accessible through
[
NCBI GEO
](
https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE127967
)
website.
{% endrblock %}
{% endrgridblock %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment