new_site/assets/js
CheariX 876d287cc8
Feature: added "award" for publications (#2324)
This PR adds an "award" button to publications.
It takes the `award` value from the bibtex entry and displays(incl.
Markdown rendering) the text in a box similarly to abstract and bibtex.

User can set the entry `award_name` to configure the value. See example
config with `award_name: Nobel Prize`.

The color of the award box can be configured in `_base.scss`.

Note, there is a similar PR #2175, it I saw to issues with:

1. There was no progress
2. The award button just prints the text directly in the button,
similarly to `award_name`. Long award names could clutter the webpage.
3. IMHO, it brokes the current al-folio design, since butons do have a
fixed size/text. However, variable prize names are also possible with
this PR.
***
Pictures:

Default. Text are hidden:

<img width="708" alt="grafik"
src="https://github.com/alshedivat/al-folio/assets/1998723/1221c82c-c384-4297-807e-39385e2ce4fd">

Additional info is shown when the button is clicked. Markdown supported.

<img width="684" alt="grafik"
src="https://github.com/alshedivat/al-folio/assets/1998723/2354aeee-12b0-4d32-b194-5d2ea80d8363">

Only one text box shown at the same time, like it is with "ABS" and
"BIB":
<img width="691" alt="grafik"
src="https://github.com/alshedivat/al-folio/assets/1998723/d3937bb9-d9c2-47ac-b819-b92aec3d916a">

***

Feedback welcome.

You can also check [my
website](https://christianmainka.de/publications/awarded), which was the
base for this PR.
2024-04-07 17:37:02 -03:00
..
distillpub format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
bootstrap-toc.min.js Fix prettier (#2062) 2024-01-10 11:21:58 -03:00
bootstrap.bundle.min.js Fix prettier (#2062) 2024-01-10 11:21:58 -03:00
bootstrap.bundle.min.js.map Added support to PurgeCSS (#1562) 2023-09-28 14:22:42 -03:00
common.js Feature: added "award" for publications (#2324) 2024-04-07 17:37:02 -03:00
copy_code.js Support for diff2html (#2133) 2024-01-28 12:45:20 -03:00
jupyter_new_tab.js Add functionality to open external links in jupyter notebooks in new tab (#2233) 2024-02-27 12:25:16 -03:00
masonry.js format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
mdb.min.js Fix prettier (#2062) 2024-01-10 11:21:58 -03:00
mdb.min.js.map Added support to PurgeCSS (#1562) 2023-09-28 14:22:42 -03:00
no_defer.js Remove bootstrap-table from archive tables (#2306) 2024-04-03 15:35:18 -03:00
theme.js Added "follow system" option to theme toggle (#2261) 2024-03-13 22:42:46 -03:00
zoom.js format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00