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
Commits
c395ff3e
Commit
c395ff3e
authored
4 years ago
by
Gervaise H. Henry
Browse files
Options
Downloads
Patches
Plain Diff
Add altmetric badges
parent
0f9aa1d9
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!90
Develop
,
!89
Altmetric.badge
Pipeline
#7961
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
layouts/custom/publications.html
+45
-33
45 additions, 33 deletions
layouts/custom/publications.html
with
45 additions
and
33 deletions
layouts/custom/publications.html
+
45
−
33
View file @
c395ff3e
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment