diff --git a/README.md b/README.md index a5ef05a..ad322d0 100644 --- a/README.md +++ b/README.md @@ -418,7 +418,8 @@ There are several custom bibtex keywords that you can use to affect how the entr - `poster`: Adds a "Poster" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory) - `slides`: Adds a "Slides" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory) - `website`: Adds a "Website" button redirecting to the specified link -- `altmetric`: Adds an [Altmetric](https://www.altmetric.com/) badge (Note: only add the altmetric identifier here - the link is generated automatically) +- `altmetric`: Adds an [Altmetric](https://www.altmetric.com/) badge (Note: if DOI is provided just use `true`, otherwise only add the altmetric identifier here - the link is generated automatically) +- `dimensions`: Adds an [Dimensions](https://www.dimensions.ai/) badge (Note: if DOI or PMID is provided just use `true`, otherwise only add the dimensions identifier here - the link is generated automatically) You can implement your own buttons by editing the bib.html file. diff --git a/_bibliography/papers.bib b/_bibliography/papers.bib index 01c5213..975613e 100644 --- a/_bibliography/papers.bib +++ b/_bibliography/papers.bib @@ -43,6 +43,7 @@ html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777}, pdf={example_pdf.pdf}, altmetric={248277}, + dimensions={true}, selected={true} } diff --git a/_config.yml b/_config.yml index 9b1602e..dd2e009 100644 --- a/_config.yml +++ b/_config.yml @@ -273,6 +273,10 @@ scholar: query: "@*" +badges: # Display different badges for your pulications + altmetric_badge: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/) + dimensions_badge: true # Dimensions badge (https://badge.dimensions.ai/) + # Filter out certain bibtex entry keywords used internally from the bib output filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview, altmetric] diff --git a/_includes/scripts/badges.html b/_includes/scripts/badges.html new file mode 100644 index 0000000..b8a3ccd --- /dev/null +++ b/_includes/scripts/badges.html @@ -0,0 +1,6 @@ +{%- if site.badges.altmetric_badge %} + +{%- endif %} +{%- if site.badges.dimensions_badge %} + +{%- endif %} diff --git a/_layouts/bib.html b/_layouts/bib.html index acbd980..718570a 100644 --- a/_layouts/bib.html +++ b/_layouts/bib.html @@ -180,10 +180,17 @@ {%- if entry.website %} Website {%- endif %} - {%- if entry.altmetric %} -
+ + {% if site.badges %} +