Skip to content
Snippets Groups Projects
Commit 051cc47c authored by Elisabeth Guerard's avatar Elisabeth Guerard
Browse files

addition parameter font awesome #22

parent 9fdb35a7
No related branches found
No related tags found
No related merge requests found
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
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment