Commit Graph

44 Commits

Author SHA1 Message Date
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 8889e36b43
Fixed weird bib btn behavior (#1776)
Fixes #1774 by reverting mdb usage to cdn. Weirdly enough, when using
from local file it triggers a ripple effect when using `btn` class. It
states in the [official
docs](https://mdbootstrap.com/docs/standard/methods/ripple/) that:

> By default, ripple is added to every button (via .btn class)

Using [this
solution](https://mdbootstrap.com/support/standard/disable-waves-ripple-effect/)
only make this flicking happens faster. Also this does seem to be [an
issue](https://mdbootstrap.com/support/standard/how-to-disable-ripple-effect/)
still in the [latest
version](https://github.com/mdbootstrap/mdb-ui-kit/issues/1505) (even
though we are using an older one).

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-09-28 17:43:35 -03:00
George 64cf57fab3
Added support to PurgeCSS (#1562)
Tackled #1329 with [PurgeCSS](https://purgecss.com/).

Being talking with @varuniyer about using
[jekyll-uncss](https://github.com/episource/jekyll-uncss) to reduce css
file sizes by ditching unused classes. This approach have 3 main
problems:

1 - have some limitations as pointed
[here](https://github.com/alshedivat/al-folio/issues/1329#issuecomment-1546517327)
2 - last update to
[jekyll-uncss](https://github.com/episource/jekyll-uncss) was about 3
years ago, so it might have a few issues
3 - [uncss](https://github.com/uncss/uncss) haven't seem a new release
in a while, currently [lacking
maintenance](https://github.com/uncss/uncss/issues/459), and using some
deprecated libraries as seem here:

```
npm install -g uncss
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
```

I thought about giving PurgeCSS a go, since it has been more [actively
maintaned](https://github.com/FullHuman/purgecss), but
[jekyll-purgecss](https://github.com/mhanberg/jekyll-purgecss) haven't.

For this, I needed to change to use some local libraries instead of
getting them via CDN. The good news is that it is quite effective in
reducing css file sizes. Comparing dir sizes with `du -hs
_site/assets/css/`:

| current | minify | PurgeCSS | PurgeCSS + minify |
| ------- | ------ | -------- | ----------------- |
| 1,1M    | 988K   | 456K     | 420K              |

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-09-28 14:22:42 -03:00
George 312cbdb4c5
Cache busting for _sass and individual files (#1557)
Addressing #1395 but with a different solution from #1478, using
semantic versioning based on implementation found
[here](https://distresssignal.org/busting-css-cache-with-jekyll-md5-hash).

Implemented a way of calculating the hash for both a single file or
directory. This way we can calculate the hash for when there is a change
in the `_sass` dir, for example, or in the contents of a single file.

Examples of generated outputs of the plugin:
```
/al-folio/assets/css/main.css?d41d8cd98f00b204e9800998ecf8427e
/al-folio/assets/js/theme.js?96d6b3e1c3604aca8b6134c7afdd5db6
/al-folio/assets/js/dark_mode.js?9b17307bb950ffa2e34be0227f53558f
/al-folio/assets/js/no_defer.js?d633890033921b33e0ceb13d22340a9c
/al-folio/assets/js/common.js?acdb9690d7641b2f8d40529018c71a01
/al-folio/assets/js/copy_code.js?c9d9dd48933de3831b3ee5ec9c209cac
/al-folio/assets/img/prof_pic.jpg?974957d202f671e4fa6700c04e68deae
```

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-07-30 00:14:23 -03:00
George 8f960bbae6
Fix table color (#1424)
Fix table color when dark mode is default.

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-05-14 22:10:29 -03:00
George 0c0303b185
Moved bootstrap table css to head.html (#1387)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-05-01 14:10:33 -03: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
Rohan Deb Sarkar cfdde2426d
Update favicon emoji length limit (#1099)
Since, a image file will always contain a dot and a three letter
extension at least (ex: `.jpg`, `.png`, `.jpeg`, etc). Therefore we can
safely set the limit up to 4.

fixes #1096
2023-01-10 19:33:41 +05:30
Carlos Morales 951ae92858
Fix default highlighting (#931)
The default setting `media="none"` disables code highlighting. This
works OK when we have `enable_darkmode: true` in `config.yml` as the
code handling the dark/light theme switching takes care of setting
`media=""` for the preferred theme.
However, setting `enable_darkmode: false` prevents importing `theme.js`
which in turn prevents said change thus the default highlighting stays
disabled.
Setting `media=""` by default enables the default highlighting when
`enable_darkmode` is false.

Fixes #929
2022-10-10 22:13:59 +05:30
Maruan Al-Shedivat 53eef90be2 Fix #565 2022-02-20 08:28:52 -08:00
Amir Pourmand 07a2e0577e
Add custom favicon if needed (#386) 2022-02-19 23:49:47 -05:00
Viraj Thakkar 77b60dc395
Theme and responsiveness fixes (#509)
* Dark themed cards

* Responsiveness fixes

* added dark stylesheet option

* highlight theme toggle

* added highlight function

* added highlight themes to assets/css

* offline highlight implementation

* Fixes for masonry

* Revert "added highlight themes to assets/css"

This reverts commit ee7cb7675671430697f3a38bd5a56405179e6dd9.

* Update `code syntax highlighting` to use jsdelivr CDN

* Project card responsiveness fixes

* added personal website to readme

veedata.github.io

* Reverted responsiveness chnages

* Minor adjustments

Co-authored-by: rohandebsarkar <rohandebsarkar@gmail.com>
Co-authored-by: Maruan Al-Shedivat <maruan@genesistherapeutics.ai>
2022-02-19 20:46:45 -05:00
Rohan Deb Sarkar 0c2e6574c9
Update library versions (bootstap, jquery, fontawesome, academicicons, masonry, mdbootstrap) (#521) 2022-01-13 17:50:50 -05:00
José M. Requena Plens b950fc3fdb
Better SEO, OpenGraph, schema.org and clean generated code (#481) 2021-12-31 11:46:42 -05:00
Rohan Deb Sarkar 7f10dc3ec9
Lighthouse enhancements (#445) 2021-11-21 15:05:46 -05:00
Maruan Al-Shedivat d500e084f5 Remove theming dependence on jquery 2021-10-30 19:53:39 -04:00
Amir Pourmand 9c36be1320
Optimize Website Load Time (#435)
* Place js files after body tag

* Add Analytics to the end of script

* Minor nits and fixes

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
2021-10-30 16:26:37 -04:00
Maruan 5a65595918
Revert "Change gitcdn link (#234)" (#364)
This reverts commit 0e4df831af.
2021-08-16 13:16:26 -04:00
Maruan 585a188b24
Fix the blog page title (#331) 2021-07-04 20:22:43 -04:00
Maruan 1318c805fe
Adds support for image zoom (#296)
* Add image zoom

* Minor improvements
2021-05-30 19:38:24 -04:00
jkmacc-LANL 0e4df831af
Change gitcdn link (#234)
gitcdn.link was quite slow.  Use alternate link at gitcdn.xyz.
2021-04-02 22:19:30 -04:00
Maruan f2156d1c7b
Switch favicon to emoji (#217) 2021-03-11 16:30:31 -05:00
Roger Iyengar 218291bceb
Fix titles and headings (#204)
* Update head.html

* Update header.html

* Update head.html

* Update header.html

* Update about.html

Co-authored-by: Maruan <alshedivat@users.noreply.github.com>
2021-03-04 09:54:38 -05:00
JD 40921e4f54
Issue 180 - Distill Bugfix (#182)
* dark_mode.js was not being loaded on distill blog pages.
* Moved dark_mode.js and jquery.html to head.html to simplify/standardize dark mode/theming for other pages.
2021-01-14 14:45:47 -05:00
Dinesh Natesan 3cdd0f6f1b
Add webpage + add panelbear analytics (#176)
* Add webpage to academic pages list

* adding panelbear analytics
2021-01-07 09:47:38 -05:00
zt-chen 2781e2eb4e
Move GA script to head.html (#140) 2020-11-30 10:00:47 -05:00
JD e30a46bbfa
Issue 105 : Dark Mode + Theming #118 (#119)
* Dark Mode + Theming

* Themes scss file created with default color scheme and dark color scheme.

* Logic for managing dark mode toggle added.

* Modified existing scss/html to work with theme toggling.

* Fixed hover issues

* Added enable_darkmode to configs.  

* Added the requested option of disabling/enabling dark mode via config files.
2020-10-04 20:32:47 -04:00
Maruan Al-Shedivat dacac74d31 Fix issues with loading scripts (#117) 2020-09-26 12:26:28 -04:00
Maruan Al-Shedivat adfbe18e64 Switch to MathJax 3.x. Fixes #115. 2020-09-22 22:26:13 -04:00
Maruan Al-Shedivat 619bb2df74 Minor fixes 2020-09-03 18:49:23 -04:00
Maruan Al-Shedivat 05748528a7 Upgrade project grid 2020-05-03 01:28:30 -04:00
Maruan Al-Shedivat 35f4c65990 Merge branch 'master' into dev 2020-05-02 19:21:30 -04:00
Maruan Al-Shedivat 6fda5af2b0 Add distill post styles and template 2020-05-02 19:14:27 -04:00
Maruan Al-Shedivat edc854aa3a First step toward moving to Bootstrap. 2020-05-01 18:36:18 -04:00
George Oikonomou 29e99ebc7b Enable preview images on social media (#66)
* Enable preview images on social media

This commit adds support for serving Open Graph meta tags inside the HTML head. When enabled, links to the page on social media will display a preview.

NB: twitter behaves somewhat differently and may require twitter card meta tags in addition to Open Graph.

https://ogp.me/

* Remove trailing whitespaces

* Support page-specific open graph social media previews

* Document open graph support in the readme

* Improve open graph support
2019-11-04 18:41:10 -05:00
Maruan Al-Shedivat 20e8a83fcd Refresh and update styles 2017-01-31 10:05:44 -05:00
Maruan Al-Shedivat 5865c9f246 Fix issues with fonts and urls. 2016-07-05 15:27:53 -04:00
Maruan Al-Shedivat 275236d0f8 Fix paths. 2016-07-05 05:06:21 -04:00
Maruan Al-Shedivat 3345ee8317 Fix js includes and config. 2016-07-05 04:40:03 -04:00
Maruan Al-Shedivat 4b73664d56 Add the news collection with emoji support. Restructure assets. 2015-10-22 18:09:12 -04:00
Maruan Al-Shedivat 8a3e818873 Extract social and news as separate includes. Overall slight improvements. 2015-10-22 10:50:19 -04:00
Maruan Al-Shedivat e3dfbf67c7 Add math support through kramdown and katex. Light style improvements. 2015-10-20 12:05:37 -04:00
Maruan Al-Shedivat 1e8dff52bc Basic modifications of the *folio theme 2015-10-19 17:38:04 -04:00