Commit Graph

767 Commits

Author SHA1 Message Date
Corentin Sautier
9b6decceb1
Fix no github_users titling in repositories.md (#2647)
Inverted order of title and {% if site.data.repositories.github_users
%}, so that if there is no github_users, the "GitHub users" title does
not appear.
2024-08-20 11:50:00 -03:00
Corentin Sautier
03f429f901
Update _config.yml to add a filtered bibtex keyword (#2648)
Added the google_scholar_id to filtered keywords
2024-08-20 11:44:25 -03:00
hdocmsu
853adefc9a
Adding own github-page to README.md (#2645)
Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
2024-08-19 11:32:51 -03:00
Ming SUN
1e66e8c30d
Update README.md (#2644)
add Ming's website page

Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
2024-08-19 11:30:29 -03:00
Riasat Sheikh
dfc7453ea0
[Feature] InspireHEP social and citation count badge (#2638)
[INSPIRE](http://inspirehep.net/) is a trusted community hub that
facilitates the sharing and discovery of accurate scholarly information
in high energy physics. By integrating the social and citation count
badge, al-folio users within this community will gain significant
benefits.

In continuation of #2634, I am creating this pull request.

## Details

### Social Icon
- Add your INSPIRE author ID in the `config.yml` under `inspirehep_id`.

### Citation Count
- Enable this feature by setting `inspirehep` to `true` under
`enable_publication_badges` in your `config.yml` file.
- In your bibliography file (e.g., `papers.bib`), add `inspirehep_id =
{the literature's recid}` under the citation of a literature source.
2024-08-19 00:03:01 -03:00
Beryl Sui
3ff7579a74
added personal website for Beryl Sui (#2628)
Thank you for this amazing template :)
2024-08-08 10:33:12 -03:00
George
04ab383c4b
Fixed prettier complaints on FAQ.md 2024-08-07 13:46:07 -03:00
Rachel
5c5c81cda8
[Bug-fix] Make custom blockquote font coloring consistent (#2622)
Currently, the tip, warning, and danger custom blockquote's font color
is not customized when the text is styled as bold, italics, or a list
item. As a result, the text is slightly less attractive in light mode
and almost illegible in dark mode.

## Screenshot: Current

<img width="400" alt="current-darkmode"
src="https://github.com/user-attachments/assets/1cdd5861-76a2-45bd-a948-99cf35f9c87e">

## Screenshot: Proposed

<img width="400" alt="proposed-darkmode"
src="https://github.com/user-attachments/assets/03fbd4d3-e3f5-498a-bef6-153e1ad55289">
2024-08-07 12:43:48 -03:00
George
610f42bf61
Update Prettier information on FAQ.md 2024-08-07 12:40:32 -03:00
Alon Kellner
3be24f6b04
Alon Kellner portfolio link (#2627)
I used al-folio's fork
[multi-language-al-folio](https://github.com/george-gca/multi-language-al-folio)
to create my portfolio, I love it :)
2024-08-07 12:20:30 -03:00
Rachel
1d4ce5a313
[bug-fix] Add padding to default markdown table cells (#2617)
Default, meaning `pretty_table: false`

## Sample code

```md
|   First Column   |  Second Column  |  Third Column  |
|------------------|-----------------|----------------|
| Sed in.          | Sed non.        | Morbi egestas. |
| Donec facilisis. | Suspendisse eu. | Nulla porta.   |
| Praesent a.      | Interdum et.    | Sed nec.       |
```

### Current result 

<img width="369" alt="current-default"
src="https://github.com/user-attachments/assets/7dc74cfd-ed60-46eb-a1c1-bf3df74bac59">

### Proposed result

<img width="378" alt="updated-default"
src="https://github.com/user-attachments/assets/2bf83fb5-f7b1-4d4b-88aa-e55d3420aeaf">
2024-08-04 15:32:46 -03:00
George
e46a7941b2
Updated dependencies (#2613)
Fix https://github.com/alshedivat/al-folio/security/dependabot/4

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-08-02 10:44:22 -03:00
George
e14f5723f2
Added customizing css to CUSTOMIZE.md (#2602)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-07-25 14:01:57 -03:00
Salman Faroz
e7da32f0e4
Lighthouse Badger token as secret (#2589)
In the
[FAQ](https://github.com/alshedivat/al-folio/blob/master/FAQ.md#my-webpage-works-locally-but-after-deploying-it-is-not-displayed-correctly-css-and-js-are-not-loaded-properly-how-do-i-fix-that),
it is mentioned to "add it as a secret". However, the Lighthouse Badger
documentation specifies using an environment variable. I've updated this
to use secrets instead, as it is more secure and appropriate for using a
Personal Access Token (PAT).

#### Personal Access Token (fine-grained) Permissions:
- **contents**: access: read and write
- **metadata**: access: read-only

#### Personal Access Token (classic) Permissions:
- **repo**


[refer](https://github.com/MyActionWay/lighthouse-badger-workflows#lighthouse-badger-easyyml:~:text=and%20permissions%20required-,PAT%20(fine%2Dgrained)%3A%20repository%20permissions,-contents%20%3D%3E%20access%3A%20read)

For more information, refer to the [GitHub documentation on using
secrets in GitHub
Actions](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
2024-07-25 12:07:22 -03:00
Simmo Saan
b5247d9eca
Remove github-metadata post (#2599)
The jekyll-github-metadata plugin was removed in PR #668, so this no
longer works. Clearly broken here:
https://alshedivat.github.io/al-folio/blog/2020/github-metadata/.
2024-07-25 12:05:03 -03:00
tonideleo
2db33ea99f
Add user link to user community (#2592) 2024-07-22 11:55:07 -03:00
George
fc15dd6cc8
Fixed prettier complaints on FAQ 2024-07-21 20:48:32 -03:00
George
2ebbb801e3
Expliciting how to handle wrong theme for site in FAQ.md 2024-07-21 17:13:10 -03:00
George
71006683cd
Added example of site with css and js not loaded 2024-07-21 17:03:58 -03:00
George
c3ac17294c
Improved FAQ readability 2024-07-21 16:19:33 -03:00
Tadashi
015a47787e
Fix typo in entry associated to award button (#2583) 2024-07-17 18:13:47 -03:00
George
75ab2823bb
Updated dependencies (#2582)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-07-17 00:03:11 -03:00
George
d9ea1b3dd3
Updated to font awesome 6.6.0 (#2581)
Updated to [FontAwesome
6.6.0](https://github.com/FortAwesome/Font-Awesome/releases/tag/6.6.0)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-07-16 23:48:20 -03:00
Furkan Akkurt
aef552f043
Remove 'version's as it's obsolete; Update docker-compose files (#2574) 2024-07-16 22:52:06 -03:00
George
8ffd34c9b4
Fixed error in bibsearch.js 2024-07-13 14:05:20 -03:00
George
49ada3eac1
Update collections permalinks in _config.yml 2024-07-12 22:06:43 -03:00
CheariX
83e8a64de1
fix: search_enabled -> bib_search (#2560)
In #2523, I did a copy&paste error with
07d6e619cc

I used the global `search_enabled` config key instead of the correct
`bib_search` key.

This PR fixed it.
2024-07-12 17:00:48 -03:00
Scott Lee Chua
c4f20b889e
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.
2024-07-11 13:46:37 -03:00
George
d904c52149
Fixed search for multiline news 2024-07-11 11:09:46 -03:00
George
607ff6af44
Fixed spacing between {{}} in bib.liquid 2024-07-10 15:20:39 -03:00
George
d019fc0f18
Fixed mathjax hash
Changed to "not" minified version of mathjax since it is already minified
2024-07-10 15:01:28 -03:00
George
e7d5c2f36a
Fixed title search and truncating if larger than 13 words (#2561)
Fixes #2459

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-07-10 14:40:56 -03:00
George
cb0375c128
Aggregated search code inside search.liquid (#2558)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-07-10 13:05:43 -03:00
Scott Lee Chua
0e0ee215f6
Fix search in Distill style post (#2555)
Fixes issue #2554: search function is out of order in a distill style
post.
2024-07-10 12:48:03 -03:00
George
16cee9c719
Avoid broken links check for video blog post 2024-07-09 12:44:13 -03:00
Simmo Saan
f8335998e2
Fix space before some bib commas (#2552)
These somehow appeared when upgrading from v0.11.0 to v0.12.0.
2024-07-09 12:43:26 -03:00
CheariX
0a40a22739
feat: simple filtering / searching on bibliography (#2523)
This PR adds a simple filter/search functionality to the bibliography.

It can be used in two ways:

1. Simply enter a search term in the input box.
2. Send a search term via the `location.hash`, e.g.,
https://alshedivat.github.io/al-folio/publications/#mechanics

**Notes:**

- The search box is optional. It can be simply removed if anyone does
not like it.
- Searching via `hash` works without the search box. My idea is to use
this functionality to index all BibTeX entries via the `ctrl-k` search
and link them via their BibTeX key.
- Searching via `hash` could also be used to set static links on the
current page, e.g., to filter specific co-authors, venues, etc.
- I don't know much about the design of the input field. I simply reused
the newsletter box style.
- Entering a search term in the box does exact matching. No fuzzy
search, no AND/OR logic. I kept it very simple. Maybe anyone else wants
to improve it in the future.
- The search looks in all data in the BibTeX entry that is parsed via
`bib.liquid`. E.g., it is possible to search for BibTeX keys, titles,
authors, years, venues, abstracts, or whatever `bib.liquid` prints.
- I used a 300ms delay before starting to search on the input box.
- Entering search terms in the box does not update the location hash
(things could get complex otherwise due to automatically updating each
other...)
- If the filter does not find any match in a specific year, the year is
also made invisible.

**Screenshot**
<img width="935" alt="screenshot"
src="https://github.com/alshedivat/al-folio/assets/1998723/447003e2-c623-4de9-b2c5-2357117a7743">

Looking for feedback.
2024-07-08 16:51:22 -03:00
Amir Pourmand
ad8104b40f
Add linux x86-64 to Gemfile.lock (#2549)
Fixes #2544 

Generated via:
```
bundle lock --add-platform x86_64-linux
```
2024-07-07 18:54:37 -03:00
Maruan
369f0b74c9
Update README.md 2024-07-06 20:22:54 -07:00
Tiago Lobão
f4a6e184a9
Fix repo card heigth for different repo descriptions (#2525)
Hello! I had this minor issue on my website and I saw few other people
using this template and having the same issue.

**Brief**
if two repo's in the same row has different number of lines for the
descriptions, heights of the cards will not be the same if we don't
force the number of lines to be displayed.

**Solution**
By looking at [This
issue](https://github.com/anuraghazra/github-readme-stats/issues/2900) I
could see that they solved it by adding an new option,
`description_lines_count`. This was used on the API request in order to
fix the issue.

---

## Issue reproduced:


![before](https://github.com/alshedivat/al-folio/assets/15076325/238931f5-8a0e-45c5-a9bb-e9c6e4c0f04b)

---

## Issue fixed after the commit:


![after](https://github.com/alshedivat/al-folio/assets/15076325/a0e79cdf-fd6a-4765-b21f-279540ae88fe)
2024-06-24 11:53:47 -03:00
ariseus
fefa2470b4
Fix Altmetric badge not correctly set when Altmetric id is provided (#2522)
To reproduce the bug:

```bibtex
@inproceedings{Vaswani2017AttentionIA,
  title     = {Attention is All you Need},
  author    = {Ashish Vaswani and Noam M. Shazeer and Niki Parmar and Jakob Uszkoreit and Llion Jones and Aidan N. Gomez and Lukasz Kaiser and Illia Polosukhin},
  booktitle = {Neural Information Processing Systems},
  year      = {2017},
  doi       = {10.48550/arXiv.1706.03762},
  altmetric = {21021191}
}
```

The bug is
1. It seems to be some weird property of the liquid template that [line
252-254](8d82670ff1/_layouts/bib.liquid (L252-L254))
doesn't work at all. According to [this
post](https://stackoverflow.com/questions/59887447/liquid-how-to-assign-the-output-of-an-operator-to-a-variable)
and [this issue](https://github.com/Shopify/liquid/issues/236), liquid
doesn't support assign the output of operator to a variable nor a
ternary operator. So based on my console log, the value of
`entry_has_altmetric_badge` is always a string value of
`entry.altmetric` when altmetric is provided in bibtex.
```liquid
{% assign entry_has_altmetric_badge = entry.altmetric or entry.doi or  entry.eprint or entry.pmid or entry.isbn %}
{% assign entry_has_dimensions_badge = entry.dimensions or entry.doi or entry.pmid %}
{% assign entry_has_google_scholar_badge = entry.google_scholar_id %}
{% if entry_has_altmetric_badge or entry_has_dimensions_badge or entry_has_google_scholar_badge %}
  <div class="badges">
  {% if site.enable_publication_badges.altmetric and entry_has_altmetric_badge %}
    <span
...
```
Note that this could be problematic that a string in liquid is always
evaluated as true as long as it is defined regardless if it is "" or
"false".
[reference](https://shopify.github.io/liquid/basics/truthy-and-falsy/)
2. when altmetric is defined in bibtex, now the order of set attribute
to badge is eprint > doi > altmetric id > pmid > ISBN, and the badge
doesn't work when an arxiv doi is provided.

I think the expected behavior should be
1. as documented in CUSTOMIZE.md, only render the badge when the entry
is set to either "true" or the altmetric id. (It could also implement to
always render the badge whenever doi or other related attribute is set,
and set altmetric to "false" to disable it)
```md
- `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)
```
2. if the almetric id is set, use it first.
2024-06-20 12:40:34 -03:00
Andrew Boyer
cd020affa6
Update CUSTOMIZE.md for Newsletter support (#2521)
In reference to https://github.com/alshedivat/al-folio/pull/2517 and
https://github.com/alshedivat/al-folio/pull/2517#issuecomment-2179244937
2024-06-20 00:21:22 -03:00
George
8d82670ff1
Changes to deploy-docker-tag.yml now trigger action 2024-06-19 17:17:29 -03:00
George
acdc9ff57e
Changes to deploy-image.yml now trigger action 2024-06-19 17:16:11 -03:00
George
fb67d309c9
Changes to docker-slim.yml now trigger action 2024-06-19 17:15:26 -03:00
George
1569966cf6
Bib changes now trigger build action 2024-06-19 17:13:39 -03:00
ariseus
fbad870c9c
Add example use of annotation and superscripts in bibtex (#2520)
![image](https://github.com/alshedivat/al-folio/assets/33930674/e3018225-df99-4ebf-be18-5811f34fcf4b)

![image](https://github.com/alshedivat/al-folio/assets/33930674/afc6150e-0272-4180-bc5e-4ffbf5079239)

![image](https://github.com/alshedivat/al-folio/assets/33930674/40f88a17-4fba-4423-ab16-62fd37d7c574)

![image](https://github.com/alshedivat/al-folio/assets/33930674/c5cfe480-5df7-4f27-87c7-4883af1471ca)
2024-06-19 17:10:22 -03:00
George
b723e7d917
Fixed docker-slim.yml issue 2024-06-19 15:01:27 -03:00
Andrew Boyer
0ac9e447ca
Added support for a newsletter (#2517)
In reference to idea:
https://github.com/alshedivat/al-folio/discussions/2097
In reference to request:
https://github.com/alshedivat/al-folio/issues/923#issuecomment-2171924663

Added support to integrate a [loops.so](https://loops.so/) mailing list
into the site.

To use, you need to enable `newsletter` in `_config.yml`. You also must
specify a loops endpoint (although I think any mailing list endpoint can
work), which you can get when you set up a mailing list on loops. More
documentation on loops: [here](https://loops.so/docs/forms/custom-form).

Once that is enabled, the behavior is different depending on how you
specified your footer to behave in `_config.yml`. If `footer_fixed:
true`, then the sign up will appear at the bottom of the about page, as
well as at the bottom of blog posts, if you enable `related_posts`.

If `footer_fixed: false`, then the newsletter signup will be in the
footer (on every page), like it is in on [my
website](https://asboyer.com).

I'm not attached to the placement of the signup, and you can choose to
include it wherever you want with `{% include scripts/newsletter.liquid
%}`. Also if you include positional variables into that, you can choose
how you center the signup. So `{% include scripts/newsletter.liquid
left=true %}` positions the signup bar to the left.

Here are some screenshots below:
## Dark version

![image](https://github.com/alshedivat/al-folio/assets/52665298/af7fdb81-6e5f-47a9-958b-4cb93bba9e8f)

## Light version

![image](https://github.com/alshedivat/al-folio/assets/52665298/927f8bc5-b481-448b-ae5e-6f5b1c613243)
I think the input field color should probably change to maybe be light
for both themes? What do you think? I think the dark background looks
cool, but I don't usually see that done like that on other sites.

## Footer fixed

![image](https://github.com/alshedivat/al-folio/assets/52665298/c52f3dc1-0e45-400e-8b71-eeb00d00cb01)


![image](https://github.com/alshedivat/al-folio/assets/52665298/678a2d45-88ab-4d9a-b8cc-9fc6db26d744)

## Footer not fixed

![image](https://github.com/alshedivat/al-folio/assets/52665298/fd2c0228-2bce-4335-ac3c-5cb20a3307e2)


![image](https://github.com/alshedivat/al-folio/assets/52665298/f594b4f2-67e0-4f2b-a3e8-febd579aaf19)
To clarify, if footer isn't fixed, the email signup will appear on every
page.

---------

Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
2024-06-19 14:49:19 -03:00
ariseus
a25df79188
Support superscripts in bibtex author names (#2512)
Implements #2511
2024-06-19 14:34:54 -03:00