Skip to content

Commit c4f20b8

Browse files
authored
Make publication badges always visible (#2565)
## The issue Currently Altmetric and Dimension publication badge elements have non-obvious attributes that hide badges when some conditions are not met ,e.g.: ``` data-hide-no-mentions="true" data-hide-less-than="15" ``` resulting in seemingly strange behavior where badges are enabled in `config.yml` but don't show up consistently, as reported in #2443 : Altmetric badges don't display for some pubs. ## This PR - removes these hidden nondisplay conditions in favor of more predictable website behavior; - adds documentation links to point users interested in customizing badge behavior to the right resources.
1 parent d904c52 commit c4f20b8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ scholar:
337337
group_order: descending
338338

339339
# Display different badges withs stats for your publications
340+
# Customize badge behavior in _layouts/bib.liquid
340341
enable_publication_badges:
341-
altmetric: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/)
342-
dimensions: true # Dimensions badge (https://badge.dimensions.ai/)
342+
altmetric: true # Altmetric badge (Customization options: https://badge-docs.altmetric.com/index.html)
343+
dimensions: true # Dimensions badge (Customization options: https://badge.dimensions.ai/)
343344
google_scholar: true # Google Scholar badge (https://scholar.google.com/intl/en/scholar/citations.html)
344345

345346
# Filter out certain bibtex entry keywords used internally from the bib output

_layouts/bib.liquid

-3
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@
268268
{% if site.enable_publication_badges.altmetric and entry_has_altmetric_badge %}
269269
<span
270270
class="altmetric-embed"
271-
data-hide-no-mentions="true"
272-
data-hide-less-than="15"
273271
data-badge-type="2"
274272
data-badge-popover="right"
275273
{% if entry.altmetric != blank and entry.altmetric != 'true' %}
@@ -297,7 +295,6 @@
297295
{% else %}
298296
data-pmid="{{ entry.pmid }}"
299297
{% endif %}
300-
data-hide-zero-citations="true"
301298
data-style="small_rectangle"
302299
data-legend="hover-right"
303300
style="margin-bottom: 3px;"

0 commit comments

Comments
 (0)