diff --git a/README.md b/README.md index 13b1f717ccae..370f759498c1 100644 --- a/README.md +++ b/README.md @@ -421,6 +421,7 @@ 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) You can implement your own buttons by editing the bib.html file. diff --git a/_bibliography/papers.bib b/_bibliography/papers.bib index 1c707bc58613..01c52133c47a 100644 --- a/_bibliography/papers.bib +++ b/_bibliography/papers.bib @@ -42,6 +42,7 @@ @article{PhysRev.47.777 url={http://link.aps.org/doi/10.1103/PhysRev.47.777}, html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777}, pdf={example_pdf.pdf}, + altmetric={248277}, selected={true} } diff --git a/_config.yml b/_config.yml index 2c4bf10417cd..19798897d835 100644 --- a/_config.yml +++ b/_config.yml @@ -254,7 +254,7 @@ scholar: query: "@*" # 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] +filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview, altmetric] # Maximum number of authors to be shown for each publication (more authors are visible on click) max_author_limit: 3 # leave blank to always show all authors diff --git a/_layouts/bib.html b/_layouts/bib.html index eb6520a2ea54..61da4b6a66ff 100644 --- a/_layouts/bib.html +++ b/_layouts/bib.html @@ -177,6 +177,9 @@ {%- if entry.website %} Website {%- endif %} + {%- if entry.altmetric %} +
+ {%- endif %} {% if entry.abstract -%}