Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic-practice-pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
git
basic-practice-pages
Commits
051cc47c
Commit
051cc47c
authored
5 years ago
by
Elisabeth Guerard
Browse files
Options
Downloads
Patches
Plain Diff
addition parameter font awesome #22
parent
9fdb35a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_plugins/rblock.rb
+22
-5
22 additions, 5 deletions
_plugins/rblock.rb
frozen.md
+2
-2
2 additions, 2 deletions
frozen.md
with
24 additions
and
7 deletions
_plugins/rblock.rb
+
22
−
5
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
This diff is collapsed.
Click to expand it.
frozen.md
+
2
−
2
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 %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment