Commit Graph

64 Commits

Author SHA1 Message Date
George 1c416dbae8
Added support for jekyll-tabs (#2380)
Added support for [jekyll-tabs](https://github.com/Ovski4/jekyll-tabs),
implemented #1977.

Light:


![image](https://github.com/alshedivat/al-folio/assets/31376482/a3efdd92-1c0b-4ce7-8b34-2b052b75351b)

Dark:


![image](https://github.com/alshedivat/al-folio/assets/31376482/d0fb7091-8776-4838-8e70-c07435463e0a)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-02 14:34:48 -03:00
George ba53f89965
Added support for Google Typograms (#2379)
Google [Typograms](https://github.com/google/typograms/) is a
lightweight image format (text/typogram) useful for defining simple
diagrams in technical documentation.


![image](https://github.com/alshedivat/al-folio/assets/31376482/715ba10b-c75d-492b-8869-4ec83d380e50)


![image](https://github.com/alshedivat/al-folio/assets/31376482/935f6ef8-1977-41d0-8797-d226594b82a9)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-04-30 11:26:56 -03:00
George 37d75d039e
Added post citation (#2377)
Basically adds suggestions of how to cite a post, as suggested in #2374.


![image](https://github.com/alshedivat/al-folio/assets/31376482/756eb88a-35c9-435a-b79e-70d11aa489cb)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-04-29 14:28:06 -03:00
Tao Deng a29e24a46b
add last updated date to posts (#2341)
This PR is related to #2309. I added an optional `last_updated` field.
This new field represents the timestamp for when the post was last
updated. Consequently, the existing `date` metadata should now be
interpreted as the creation date of the post.

The formatting for displaying these dates has been standardized as
follows:

```text
Created: July 11, 2023   |   Last Updated: April 14, 2024
```

For a practical implementation example, please refer to [this
post](https://torydeng.github.io/blog/2023/deploying-server/) on my
website, where I have applied these changes.

---

Any feedback is wellcome.
2024-04-24 12:19:36 -03:00
George d6a08c8ca3
Added `pseudocode.js` support (#2344)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-04-15 11:21:42 -03:00
Maksym Zub b607e580ad
Fixed broken latex in _posts/2015-10-20-math.md (#2219)
Latex math is currently broken in
[_posts/2015-10-20-math.md](https://alshedivat.github.io/al-folio/blog/2015/math/)
. Fixed it by replacing starts with underscore

---------

Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
2024-02-22 14:43:42 -03:00
George 6e215a1cdc
Lighthouse fixes (#2199)
Our score went down a little bit after the last few changes. Avoiding
lazy loading some images (as introduced in #2183), since [it is strongly
recommended to omit hero images and other images or iframes that are
likely to appear above the fold from being
lazy-loaded](https://web.dev/articles/browser-level-lazy-loading-for-cmss#avoid_lazy_loading_above-the-fold_elements).
Also added missing `alt` to google scholar field.

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-02-14 14:37:32 -03:00
Dr. David Krassnig 0b84a1237d
Added/Improved Formatting for Checkboxes (#2191)
A proposed solution for #2190. Padding is added such that I considered
it aesthetically pleasing and the bullet points in front of the check
marks were removed.

---------

Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
2024-02-14 13:30:26 -03:00
George 06bc36762d
Move libs versions to config (#2139)
Moved libs versions and hashes to `_config.yml`.

Fixes #2067.

Deferring everything possible to keep pages loads fast.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-28 19:10:42 -03:00
George ef847825fd
Support for diff2html (#2133)
Added support to display diff code in a prettier way with
[diff2html](https://diff2html.xyz/).


![image](https://github.com/alshedivat/al-folio/assets/31376482/5f93b09c-3850-499a-999b-cb0ae13fddae)

It displays code like [in this
example](https://diff2html.xyz/demo.html).

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-28 12:45:20 -03:00
George 8e93db5b67
Advanced image viewers (#2132)
Image slider with [Swiper](https://swiperjs.com/).


![image](https://github.com/alshedivat/al-folio/assets/31376482/9068823c-571a-4d31-8e95-755a40a15ec9)

Image comparison slider with
[img-comparison-slider](https://img-comparison-slider.sneas.io/).


![image](https://github.com/alshedivat/al-folio/assets/31376482/97812477-c13b-43b1-8f0b-cb098462de3c)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-28 12:42:17 -03:00
George 53fb0116de
Added leaflet reference to 2024-01-26-geojson-map.md 2024-01-27 18:54:39 -03:00
George f6bb6b5dcb
Vega lite support (#2131)
Added support for [vega lite](https://vega.github.io/vega-lite/) charts.


![image](https://github.com/alshedivat/al-folio/assets/31376482/789c14d3-93b6-4d3f-94a6-7cec1f0f0b59)


![image](https://github.com/alshedivat/al-folio/assets/31376482/17f9021c-08c4-4922-9f97-1046b146a965)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-27 11:14:02 -03:00
George 1492cb9c4e
GeoJSON support (#2130)
Added support for GeoJSON maps.


![image](https://github.com/alshedivat/al-folio/assets/31376482/48e91158-a717-4d01-b6d7-47d45f0580e4)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-27 11:06:49 -03:00
George 4f6fe1a2cf
Added Echarts support (#2129)
Since I added support for chart.js and while doing so found some other
wonderful charting libraries, I thought, why not give support to some
more? So adding support to [Apache
Echarts](https://echarts.apache.org/en/index.html).


![image](https://github.com/alshedivat/al-folio/assets/31376482/088f0932-524f-4fcd-a34b-b132f569a675)


![image](https://github.com/alshedivat/al-folio/assets/31376482/36bfe4f8-a9d1-4b6d-a912-fb40ba3b5337)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-27 10:34:44 -03:00
George a7d6b37d8f
Added support for Chart.js (#2126)
Solved #460.


![image](https://github.com/alshedivat/al-folio/assets/31376482/ce65dbe2-031e-4208-b374-08ec89beaaca)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-26 02:16:14 -03:00
George 71f054c82e
Fix broken links (#2077)
Added GitHub action to check for broken links in repo before commit,
ignoring files with liquid tags since these were not yet processed and
also README since some sites created from this template doesn't have
valid urls anymore. Fixed some broken links in repo.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-15 11:09:45 -03:00
Yifan Jiang 0a737aa022
Fix custom blockquotes (#2071)
Fixed issue #2066. Removed `>` in front of `{: .block-tip }` which was
introduced by prettier in the example post.
2024-01-15 01:55:46 -05:00
Maruan beb6f27d59
format code with prettier.io (#2048)
summary:
- adds prettier formatter configuration
- formats the entire repo using prettier, ignoring minified files
(`*.min.css`) and heavy generated html
- changes extensions of all `.html` files to `.liquid`, which is more
correct and necessary for prettier to work correctly
- replaces "%-" and "-%" with just "%" — manual liquid formatting using
minus signs is superfluous since we are compressing and minifying the
code anyway
- adds CI action for running prettier check on PR and pushes to master
2024-01-10 00:10:51 -05:00
George e3997d0f6c
Added citation examples, simplified citation code (#2056)
Since the citation file and other stuff is already defined in
`_config.yml`, removed them when calling `{% bibliography %}`. Also
realized that `jekyll-scholar` helps in displaying only the papers cited
in page, changed to use that.

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-08 14:35:42 -03:00
George 92ac10ad82
Changed mermaid support in template (#1992)
Fix #1609

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
Co-authored-by: Maruan Al-Shedivat <maruan@genesistherapeutics.ai>
2024-01-02 18:35:57 -03:00
George 199718610e
Implemented support for tikzjax (#1990)
Implemented #1976.

Signed-off-by: George Araújo <george.gcac@gmail.com>
2023-12-12 22:56:14 -03:00
George 3d0b362d19
Support for bibliography in blog posts and projects (#1553)
Implemented #1193

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-07-12 14:07:33 -03:00
George e8617623d5
Added support for jupyter dark mode (#1538)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-07-05 23:12:57 -03:00
George ab2f72baaa
Added support for jupyter notebooks #417 (#1511)
Implemented #417.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
Co-authored-by: Amir Pourmand <pourmand1376@gmail.com>
2023-07-05 12:43:59 -03:00
George ad9135fc7b
Added support for featured blog posts (#1498)
Implementing #1440. Still not sure if the year should be shown there or
not. Also, I limited to be displayed at least 2 at most 3 elements on
the row of featured blog posts, since when having only 1 featured post
the card would occupy the whole row (and it looks weird). What do you
think @alshedivat? Also, idk how to force the cards to have the same
height. I think it would look nicer, but my lack of web dev skills made
a difference here.

Some current screenshots:


![image](https://github.com/alshedivat/al-folio/assets/31376482/11b280dd-70b6-4bc4-84b6-987aa6412d55)


![image](https://github.com/alshedivat/al-folio/assets/31376482/d94aac41-246d-4b4e-afd0-161aab5a9b88)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
Co-authored-by: Maruan <alshedivat@users.noreply.github.com>
2023-06-29 11:11:07 -03:00
George 597b5751a3
Audio and Video support (#1367)
Since #1253 has been hanging there for a while, I decided to part from
it and add audio and video support.

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-05-15 12:31:27 -03:00
George 6335474075
Custom blockquotes (#1419)
Added some custom blockquotes `tip`, `warning`, and `danger` as seen in
[jekyll-gitbook](https://sighingnow.github.io/jekyll-gitbook/jekyll/2022-06-30-tips_warnings_dangers.html),
and a blog post showcasing them.

Light look:

![image](https://github.com/alshedivat/al-folio/assets/31376482/8441bd56-a1a6-41c0-951f-2a2efa20c16c)

Dark look:

![image](https://github.com/alshedivat/al-folio/assets/31376482/a916218a-176e-40d0-ad87-6acc9eedf8e3)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-05-15 12:30:53 -03:00
danickblouin fedf6d1965
Fixed typo in blog post (#1411) 2023-05-12 17:50:57 -03:00
George d98eafb424
Added thumbnail support for blog posts (#1371)
Implemented #425 based on given code.


![image](https://user-images.githubusercontent.com/31376482/234644266-07c1aebd-6a83-482f-8ac2-846fe5c0653d.png)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-05-01 13:27:33 -03:00
George 641a36405f
Added support for Bootstrap table (#1283)
Added support for [Bootstrap Table](https://bootstrap-table.com/).
Haven't checked the impact on website loading, but I believe [this kind
of table](https://examples.bootstrap-table.com/#welcomes/from-data.html)
is way more useful for blog posts and projects pages.
2023-04-30 23:10:30 -04:00
George bbf1758636
Toc sidebar (#1366)
Implemented #966.


![image](https://user-images.githubusercontent.com/31376482/234411523-b02087d9-a437-4f77-9f54-de5eef122439.png)

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-04-27 12:46:29 -03:00
George 67e5fcd1e3
Added support for table of contents in blog posts (#1278)
![image](https://user-images.githubusercontent.com/31376482/226411600-e5619108-3842-4c44-b582-61fcc94a1b0c.png)

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2023-04-24 22:44:24 -03:00
gaspardbb 8aaf0df552
Implemented details tag for distill blog (#1321) 2023-04-08 09:43:36 -04:00
George bacddc7821
Implemented copy code button feature (#1267)
Implemented support for copy code button in code blocks (#1262), also updated blog post about code to reflect it.
2023-03-19 17:17:34 -04:00
George 8ccc284008
Added related posts section (#1168) 2023-02-19 21:26:48 -05:00
Maruan 37ccb2e434
Add interactive plotly example to distill post (#1027) 2022-12-20 18:09:32 -05:00
Maruan b9f1fc84f2
Add support for giscus comments (#1028)
adds support for comments on posts using https://giscus.app/
2022-12-11 22:33:09 -05:00
Maruan 30e51bc900
Update 2018-12-22-distill.md 2022-08-27 22:37:32 -04:00
Jiashu Xu c37abc44bc
enable blog to redirect to asset (#550) 2022-02-19 22:41:13 -05:00
Maruan b715177d13
Correctly slugify distill TOC (#519)
* Correctly slugify distill TOC

* Add special character to demo distill post's TOC
2022-01-03 08:50:53 -05:00
Julian Lehrer 7f532552e4
Update 2015-10-20-math.md (#514)
Typo
2021-12-23 07:36:48 -05:00
Rohan Deb Sarkar 0e3cff9137
Use WebP responsive images (#498)
This PR replaces the jekyll-responsive-images with jekyll-imagemagick for responsive WebP images.

WebP images are much smaller compared to PNG and JPEG, faster to load and most of the modern browsers recommend it.

More information about WebP images: https://developers.google.com/speed/webp
2021-12-22 03:13:52 -05:00
Maruan a0cfbbd1d3
Add TOC to distill blog posts (#470) 2021-11-21 17:18:23 -05:00
Dinesh Natesan 1c52125635
Added Jekyll-Archives (for tags, categories) and Jekyll site-map (#346)
* Add webpage to academic pages list

* adding panelbear analytics

* added categories for projects and horizontal mode display for projects

* rewrote the code to ensure it works properly with current project definitions

* Style adjustments

* added blockquote format, jekyll-archives, tag, year archive pages, and reading time.

* added archive meta to blog posts list and individual posts.

* added sitemap

* stylistic modifications to jekyll-archive addition

* Minor fixes

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
2021-10-30 16:58:42 -04:00
Maruan 174024e76c
Add support for responsive images (#439) 2021-10-30 16:26:55 -04:00
Maruan cd4b382799
Add jekyll-diagrams (#333)
* Add mermaid support via jekyll-diagrams

* Add mermaid install to deploy workflow
2021-10-03 21:26:29 -04:00
Amir Pourmand 6b0bf87846
add jekyll target blank plugin (#404)
* add jekyll target blank

* Remove manual target blank from everywhere

* Update README.md

* Set ruby version to 3.0.2 in the deploy script

Co-authored-by: Maruan Al-Shedivat <maruan@genesistherapeutics.ai>
2021-10-03 21:16:05 -04:00
Maruan 9c8bd1a945
Correctly update medium-zoom background when switching theme (#332) 2021-07-05 14:18:41 -04:00
Ivan Puhachov a5508c734b
Fix distill darkmode (#299)
* updating distill post to show fixes done

* fix for colors in numerated lists and tables

* fixing blockquotes

* fixing colors in math, footnotes, references, hover boxes, code highlights

* Add example distill overrides

* reverted back changes in distill template.v2.js

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
2021-07-04 20:27:39 -04:00