Skip to content

Commit e1bcb15

Browse files
Increase OpenAlex to Google Scholar badge gap
Add a Google Scholar badge class and CSS variable for spacing after OpenAlex.
1 parent 4517b58 commit e1bcb15

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

_layouts/bib.liquid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@
347347
{% endif %}
348348
{% if site.enable_publication_badges.google_scholar and entry_has_google_scholar_badge %}
349349
<a
350+
class="google-scholar-badge"
350351
href="https://scholar.google.com/citations?view_op=view_citation&hl=en&user={{ site.scholar_userid }}&citation_for_view={{ site.scholar_userid }}:{{ entry.google_scholar_id }}"
351352
aria-label="Google Scholar link"
352353
role="button"

_sass/_publication-badges.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
--publication-badge-gap: 0.1rem;
1010
--dimensions-badge-scale: 0.92;
1111
--dimensions-badge-offset-y: 1px;
12+
--openalex-scholar-gap: 0.35rem;
1213

1314
align-items: center;
1415
gap: var(--publication-badge-gap);
@@ -27,6 +28,10 @@
2728
vertical-align: middle;
2829
}
2930
}
31+
32+
.openalex-badge + .google-scholar-badge {
33+
margin-left: var(--openalex-scholar-gap);
34+
}
3035
}
3136
}
3237
}

0 commit comments

Comments
 (0)