Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StrandLab2.net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Strand Lab
StrandLab2.net
Merge requests
!89
Altmetric.badge
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Altmetric.badge
altmetric.badge
into
develop
Overview
0
Commits
4
Pipelines
1
Changes
12
Merged
Gervaise Henry
requested to merge
altmetric.badge
into
develop
4 years ago
Overview
0
Commits
4
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
c395ff3e
Prev
Next
Show latest version
1 file
+
45
−
33
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
c395ff3e
Add altmetric badges
· c395ff3e
Gervaise H. Henry
authored
4 years ago
layouts/custom/publications.html
+
45
−
33
Options
@@ -6,31 +6,35 @@
</div>
<style>
@media
(
min-width
:
1000px
)
{
.column
{
float
:
left
;
}
.column
{
float
:
left
;
}
.right
{
width
:
100%
;
}
.split
{
width
:
50%
;
}
.row
:after
{
content
:
""
;
display
:
table
;
clear
:
both
;
}
@media
(
min-width
:
1000px
)
{
.left
{
width
:
20%
;
}
.mid
{
width
:
7
0%
;
width
:
6
0%
;
}
.right
{
width
:
10%
;
}
.badge
{
text-align
:
right
}
.row
:after
{
content
:
""
;
display
:
table
;
clear
:
both
;
width
:
20%
;
}
}
</style>
@@ -41,33 +45,41 @@
{{ range first 10 (.Pages.ByParam "odate" ).Reverse }}
<div
class=
"row"
>
<div
class=
"column left"
>
<img
src=
"images/{{.Params.ppic}}"
alt=
""
width=
"100px;"
style=
"border:5px double black; border-radius:20%;"
>
<img
src=
"images/{{.Params.ppic}}"
alt=
""
width=
"100px;"
style=
"border:5px double black; border-radius:20%;"
>
</div>
<div
class=
"column mid"
>
<h3>
{{.Params.pname}}
</h3>
{{ if not (eq .Params.ppubmed "") }}
<h4><i><a
href=
"https://www.ncbi.nlm.nih.gov/pubmed?term={{.Params.ppubmed}}"
target=
"_blank"
>
{{else}}
<h4><i><a
href=
"{{.Params.plink}}"
target=
"_blank"
>
{{end}}
{{.Params.pauthor}}, {{.Params.pjournal}},{{.Params.pdate}}
</a></i></h4>
</div>
<div
class=
"column right"
>
<br>
<span
class=
"__dimensions_badge_embed__"
data-pmid=
"{{.Params.ppubmed}}"
data-style=
"small_circle"
></span><script
async
src=
"https://badge.dimensions.ai/badge.js"
charset=
"utf-8"
></script>
<div
class=
"row"
>
<div
class=
"column split"
>
<span
class=
"__dimensions_badge_embed__"
data-pmid=
"{{.Params.ppubmed}}"
data-style=
"small_circle"
style=
"text-align: left;"
></span><script
async
src=
"https://badge.dimensions.ai/badge.js"
charset=
"utf-8"
></script>
</div>
<div
class=
"column split"
>
<div
class=
'altmetric-embed'
data-badge-type=
'donut'
data-doi=
"{{.Params.doi}}"
data-condensed=
"true"
data-badge-popover=
"left"
style=
"text-align: right;"
></div><script
type=
'text/javascript'
src=
'https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'
></script>
</div>
</div>
</div>
</div>
{{ if not (eq .Params.ppubmed "") }}
<h4><i><a
href=
"https://www.ncbi.nlm.nih.gov/pubmed?term={{.Params.ppubmed}}"
target=
"_blank"
>
{{else}}
<h4><i><a
href=
"{{.Params.plink}}"
target=
"_blank"
>
{{end}}
{{.Params.pauthor}}, {{.Params.pjournal}},{{.Params.pdate}}
</a></i></h4>
{{ range first 1 .Params.prepo }}
{{ if not (eq .title "") }}
<u>
Data Repository:
</u><br>
<div
class=
"row"
>
{{ range first 1 .Params.prepo }}
{{ if not (eq .title "") }}
<u>
Data Repository:
</u><br>
{{end}}
{{end}}
{{end
}}
{{ range .Params.prepo
}}
{{ if not (eq .title "") }}
<a
href=
"{{.loc}}"
target=
"_blank"
>
{{.title}}
</a><br>
{{ range .Params.prepo
}}
{{ if not (eq .title "")
}}
<a
href=
"{{.loc}}"
target=
"_blank"
>
{{.title}}
</a><br>
{{end}}
{{end}}
{{end}}
</div>
<hr><br>
{{end}}
</div>