diff --git a/_bibliography/papers.bib b/_bibliography/papers.bib
index f6d8b6b..5ebc7b0 100644
--- a/_bibliography/papers.bib
+++ b/_bibliography/papers.bib
@@ -83,6 +83,22 @@
year={1905}
}
+@Article{einstein1905photoelectriceffect,
+ bibtex_show={true},
+ abbr={Ann. Phys.},
+ title="{{\"U}ber einen die Erzeugung und Verwandlung des Lichtes betreffenden heuristischen Gesichtspunkt}",
+ author={Albert Einstein},
+ abstract={This is the abstract text.},
+ journal={Ann. Phys.},
+ volume={322},
+ number={6},
+ pages={132--148},
+ year={1905},
+ doi={10.1002/andp.19053220607},
+ award={Albert Einstein receveid the **Nobel Prize in Physics** 1921 *for his services to Theoretical Physics, and especially for his discovery of the law of the photoelectric effect*},
+ award_name={Nobel Prize}
+}
+
@book{przibram1967letters,
bibtex_show={true},
title={Letters on wave mechanics},
diff --git a/_config.yml b/_config.yml
index 1293161..011a675 100644
--- a/_config.yml
+++ b/_config.yml
@@ -323,7 +323,7 @@ enable_publication_badges:
# Filter out certain bibtex entry keywords used internally from the bib output
filtered_bibtex_keywords:
- [abbr, abstract, altmetric, arxiv, bibtex_show, blog, code, html, pdf, poster, preview, selected, slides, supp, video, website]
+ [abbr, abstract, altmetric, arxiv, award, award_name, bibtex_show, blog, code, html, pdf, poster, preview, selected, slides, supp, video, website]
# 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.liquid b/_layouts/bib.liquid
index aca79fb..d5a3228 100644
--- a/_layouts/bib.liquid
+++ b/_layouts/bib.liquid
@@ -156,6 +156,9 @@
+ {% if entry.award %}
+
{{ entry.award_name ? entry.award_name : "Awarded" }}
+ {% endif %}
{% if entry.abstract %}
Abs
{% endif %}
@@ -271,6 +274,13 @@
{% endif %}
{% endif %}
+ {% if entry.award %}
+
+
+
{{ entry.award | markdownify }}
+
+ {% endif %}
+
{% if entry.abstract %}
diff --git a/_sass/_base.scss b/_sass/_base.scss
index ecac049..f36290a 100644
--- a/_sass/_base.scss
+++ b/_sass/_base.scss
@@ -769,6 +769,9 @@ footer.sticky-bottom {
border-color: var(--global-theme-color);
}
}
+ a.award.btn {
+ border-color: var(--global-highlight-color);
+ }
}
.badges {
@@ -826,6 +829,12 @@ footer.sticky-bottom {
border-color: var(--global-text-color);
}
}
+ div.award.hidden {
+ border: dashed 1px var(--global-bg-color);
+ }
+ div.award.hidden.open {
+ border-color: var(--global-highlight-color);
+ }
}
}
diff --git a/_sass/_themes.scss b/_sass/_themes.scss
index e6f94ca..3c15c23 100644
--- a/_sass/_themes.scss
+++ b/_sass/_themes.scss
@@ -16,6 +16,7 @@
--global-distill-app-color: #{$grey-color};
--global-divider-color: rgba(0, 0, 0, 0.1);
--global-card-bg-color: #{$white-color};
+ --global-highlight-color: #{$red-color-dark};
--global-tip-block: #42b983;
--global-tip-block-bg: #e2f5ec;
diff --git a/assets/js/common.js b/assets/js/common.js
index 1d4a210..bc9d136 100644
--- a/assets/js/common.js
+++ b/assets/js/common.js
@@ -1,12 +1,19 @@
$(document).ready(function () {
- // add toggle functionality to abstract and bibtex buttons
+ // add toggle functionality to abstract, award and bibtex buttons
$("a.abstract").click(function () {
$(this).parent().parent().find(".abstract.hidden").toggleClass("open");
+ $(this).parent().parent().find(".award.hidden.open").toggleClass("open");
+ $(this).parent().parent().find(".bibtex.hidden.open").toggleClass("open");
+ });
+ $("a.award").click(function () {
+ $(this).parent().parent().find(".abstract.hidden.open").toggleClass("open");
+ $(this).parent().parent().find(".award.hidden").toggleClass("open");
$(this).parent().parent().find(".bibtex.hidden.open").toggleClass("open");
});
$("a.bibtex").click(function () {
- $(this).parent().parent().find(".bibtex.hidden").toggleClass("open");
$(this).parent().parent().find(".abstract.hidden.open").toggleClass("open");
+ $(this).parent().parent().find(".award.hidden.open").toggleClass("open");
+ $(this).parent().parent().find(".bibtex.hidden").toggleClass("open");
});
$("a").removeClass("waves-effect waves-light");