Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from head repo #2

Merged
merged 277 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
60209cf
Implemented latest posts on about page (#1307)
george-gca Apr 8, 2023
8aaf0df
Implemented details tag for distill blog (#1321)
gaspardbb Apr 8, 2023
9351f3a
Fix publication button spacing (#1322)
alshedivat Apr 8, 2023
bf62dc3
docs: add george-gca as a contributor for code (#1323)
allcontributors[bot] Apr 8, 2023
8c8f20c
Update README.md
alshedivat Apr 9, 2023
ee3f2b9
Add star to academic portfolios (#1333)
Apr 23, 2023
67e5fcd
Added support for table of contents in blog posts (#1278)
george-gca Apr 25, 2023
2b725c1
Fix typo (#1356)
furkanakkurt1335 Apr 25, 2023
9ef19fa
added one more researcher (#1353)
yukimasano Apr 25, 2023
6e38b1b
Fix copy code button position (#1348)
YifanJiang233 Apr 25, 2023
4703651
Scopus integration (#1364)
raffaem Apr 25, 2023
2a9b89d
Removed blog header-bar when title and description are empty (#1370)
george-gca Apr 26, 2023
2f035fa
Increased allowed max size of news and latest posts in about (#1369)
george-gca Apr 27, 2023
39d1f5e
Fixed hard-coded bib files in templates (#1373)
Lodour Apr 27, 2023
e8c5450
Fixed bug when using latex in title and description (#1361)
george-gca Apr 27, 2023
0b109a2
Fixed news limit (#1359)
george-gca Apr 27, 2023
bbf1758
Toc sidebar (#1366)
george-gca Apr 27, 2023
6f91146
Toc sidebar color fix (#1375)
george-gca Apr 27, 2023
a68c5e9
Reduced a little font-size in toc sidebar (#1376)
george-gca Apr 27, 2023
1ce61cc
added star to academic examples (#1377)
Hashe037 Apr 28, 2023
641a364
Added support for Bootstrap table (#1283)
george-gca May 1, 2023
b8771ef
add star to academic examples (#1380)
wang-boyu May 1, 2023
ecfb9aa
Add an academic example (#1381)
bajinsheng May 1, 2023
d98eafb
Added thumbnail support for blog posts (#1371)
george-gca May 1, 2023
0c0303b
Moved bootstrap table css to head.html (#1387)
george-gca May 1, 2023
dd1ec87
Fixed bootstrap table css (#1388)
george-gca May 1, 2023
c1112d7
Update README.md (#1389)
sfanzon May 2, 2023
1c0560f
Including Lattes CV in Socials (#1404)
damascenodiego May 8, 2023
6fd714c
README upgrade (#1394)
raffaem May 9, 2023
c5ec8d8
Fix typo ; Update _config.yml (#1418)
furkanakkurt1335 May 12, 2023
fedf6d1
Fixed typo in blog post (#1411)
danickblouin May 12, 2023
d037850
add star to academic examples (#1423)
chenqingqing May 15, 2023
8f960bb
Fix table color (#1424)
george-gca May 15, 2023
6335474
Custom blockquotes (#1419)
george-gca May 15, 2023
597b575
Audio and Video support (#1367)
george-gca May 15, 2023
31afb9a
add academic personal webpage example (#1431)
kaikaiyao May 20, 2023
14ca148
add star to academic examples (#1439)
alchemz May 22, 2023
6e01a61
Added star for samadamday.com in the README (#1443)
SamAdamDay May 23, 2023
45f66f0
Update README personal page stars (#1467)
fanpu Jun 11, 2023
2f58bb9
Update ruby to 3.2.2 in deploy.yml (#1459)
ebohnenb Jun 11, 2023
983762c
Add star to academic examples (#1445)
lucasresck Jun 11, 2023
3083172
Fixes "General Information" section of CV in dark mode (#1432)
jkschin Jun 11, 2023
9e146a0
Make latest post redirect if the blog post redirects (#1451)
jesse-wei Jun 11, 2023
51ece44
update fontawesome version (#1485)
furkanakkurt1335 Jun 12, 2023
aeee609
correct spotify title (#1484)
furkanakkurt1335 Jun 12, 2023
4d95551
add functionality to display categories, like tags, in blog home page…
furkanakkurt1335 Jun 19, 2023
6eebb65
fixes #1497 (#1505)
niebles Jun 24, 2023
1a612c6
Removed need for years in bibliography page (#1500)
george-gca Jun 25, 2023
ad9135f
Added support for featured blog posts (#1498)
george-gca Jun 29, 2023
8f3ecfa
Added two more examples (#1517)
kid-a Jun 29, 2023
4bbf13b
Update Docker Images to support M1 Mac (#1486)
pourmand1376 Jun 30, 2023
e1b93cf
Created GitHub action to update site pagespeed svg (#1529)
george-gca Jul 2, 2023
99c81fc
Updated Pagespeed results
actions-user Jul 2, 2023
567b731
Revert "Created GitHub action to update site pagespeed svg" (#1530)
george-gca Jul 2, 2023
554ab34
Updated README FAQ section (#1532)
george-gca Jul 3, 2023
ab2f72b
Added support for jupyter notebooks #417 (#1511)
george-gca Jul 5, 2023
e861762
Added support for jupyter dark mode (#1538)
george-gca Jul 6, 2023
c8ebb5c
Create .dockerignore
pourmand1376 Jul 11, 2023
84b6dfa
Added anmspro.github.io in academics (#1549)
anmspro Jul 12, 2023
cd5138b
CV Restyled (#1339)
jmrplens Jul 12, 2023
40505f4
Add jsonresume support (#1547)
arunoruto Jul 12, 2023
c201949
Publication image zoom (#1554)
george-gca Jul 12, 2023
3d0b362
Support for bibliography in blog posts and projects (#1553)
george-gca Jul 12, 2023
42ad10a
Remove repeated layout template of cv.html (#1555)
yahaha-233 Jul 13, 2023
bbbb139
Made some small changes to code (#1558)
george-gca Jul 13, 2023
bdf7bbc
Change analytics script from Panelbear to Cronitor (#1561)
yahaha-233 Jul 15, 2023
f968d1d
Added metadata info when blog post (#1573)
george-gca Jul 17, 2023
8785864
Added Zotero socials (#1572)
DavidKrassnig Jul 17, 2023
50f5620
Added missing socials to metadata (#1575)
george-gca Jul 17, 2023
4504d96
Update Dockerfile (#1581)
pourmand1376 Jul 18, 2023
2d4ad85
Zotero ID Bugfix (#1580)
DavidKrassnig Jul 18, 2023
b2989ea
Update Tag Deploys to Support M1 Macbooks (#1522)
pourmand1376 Jul 19, 2023
c824d12
Al folio main giscus pages (#1596)
DavidKrassnig Jul 23, 2023
7238998
incorrect max-height in figure.html (#1593)
NakuraMino Jul 30, 2023
312cbdb
Cache busting for _sass and individual files (#1557)
george-gca Jul 30, 2023
1206429
Added jupyter to README (#1637)
george-gca Aug 6, 2023
920cb69
add star to academic examples (#1647)
danberlyne Aug 16, 2023
16a1943
Update README to make Docker Recommended way (#1523)
pourmand1376 Aug 20, 2023
c1857fc
Update README.md (#1657)
filippomazzoli Aug 20, 2023
4d3c53d
Update README.md (#1661)
Alescontrela Aug 22, 2023
f83d09c
Add all contributors section to README.md
alshedivat Aug 22, 2023
b6b18b4
Fix _variables.scss filename in README (#1683)
raffaem Aug 28, 2023
40af12b
Add website (#1674)
raffaem Aug 28, 2023
cbf32e3
Don't display badge if startDate is empty (#1682)
raffaem Aug 28, 2023
3cf7ffa
Add a star. (#1695)
kyleaoman Sep 2, 2023
81b89c8
Add star to README.md (#1684)
cbueth Sep 2, 2023
5a96b75
Add a star (#1705)
Decwest Sep 6, 2023
482f436
Add a star (#1723)
jedbur Sep 12, 2023
53ad434
Fix regex to limit keyword scope to fields (#1629)
gzwongkk Sep 17, 2023
8883c9d
Moved ToC Menu to Sidebar (#1582)
DavidKrassnig Sep 17, 2023
cba3ad2
add WeChat to socials (#1730)
johanneshoerner Sep 17, 2023
ae48df4
Update README.md (#1748)
Henrium Sep 20, 2023
2194a52
Adding a page (*) in README.md (#1755)
kudhru Sep 21, 2023
c24ed74
Update README (#1754)
mbarbetti Sep 21, 2023
be4be01
Added a star (#1764)
niko-zvt Sep 26, 2023
b663e9e
Fixing bootstrap dark-table top border (#1763)
lancewilhelm Sep 28, 2023
64cf57f
Added support to PurgeCSS (#1562)
george-gca Sep 28, 2023
45d349f
Added support for multiple profiles in about page (#1243)
george-gca Sep 28, 2023
8889e36
Fixed weird bib btn behavior (#1776)
george-gca Sep 28, 2023
d11df46
Added description to profiles page (#1777)
george-gca Sep 28, 2023
c8d28df
Create .github/release.yml
alshedivat Oct 2, 2023
84810b3
Update README.md
alshedivat Oct 2, 2023
d74943f
Update README.md
alshedivat Oct 2, 2023
ea7e6a3
Update README.md
alshedivat Oct 2, 2023
b838eff
Optimize Dockerfile (#1700)
pourmand1376 Oct 2, 2023
67c3251
Fix Docker Problem (#1785)
pourmand1376 Oct 2, 2023
2897382
Update README.md (#1789)
MartinBulla Oct 4, 2023
8893d48
Update giscus setup via github action (#1792)
alshedivat Oct 5, 2023
da661b1
Remove by year grouping from selected publications (#1796)
alshedivat Oct 5, 2023
51d367c
Make publication thumbnails optional + fix small layout bugs (#1797)
alshedivat Oct 5, 2023
dc3289d
Fix a small bug in giscus template
alshedivat Oct 5, 2023
c0bc95c
Add Reload to Docker (Automatic Reload of Changes to _config.yaml) (#…
pourmand1376 Oct 7, 2023
3ebb90f
Add DockerSlim (#1699)
pourmand1376 Oct 7, 2023
8e6f5da
Update Dockerfile
pourmand1376 Oct 7, 2023
a21bd49
fix reference disappearing for distill blog in absence of author (#1804)
YifanJiang233 Oct 8, 2023
422a72b
Added my website in the list (#1834)
giordanoDaloisio Oct 16, 2023
b44528a
Update README.md (#1837)
pourmand1376 Oct 16, 2023
a348bee
Update README.md (#1856)
monk1337 Oct 20, 2023
3248145
Added shubhashisroydipta.com to README.md (#1816)
dipta007 Oct 25, 2023
7eb1ccc
fix inconsistent alignment for latest posts (#1832)
YifanJiang233 Oct 26, 2023
85f2590
Add my website (#1859)
abhinav-mehta Oct 26, 2023
981835b
Update README.md (#1938)
astanziola Nov 14, 2023
aacf458
Adding my site. Thanks! (#1945)
ghltshubh Nov 22, 2023
13c277e
Update Font Awesome url (#1943)
rstein66 Nov 22, 2023
77e9137
Update README.md (#1901)
javkhlantugs Nov 22, 2023
a7c2f75
ENH image zooming in distill posts (#1826)
Charlie-XIAO Nov 22, 2023
136e8bf
Better Readme (#1806)
pourmand1376 Nov 22, 2023
f5cdbdd
Update cv.html (#1820)
pablodiegoo Nov 22, 2023
6b5c94f
Update resume.json (#1821)
pablodiegoo Nov 22, 2023
6eab5bf
Fixes #1952 (#1955)
george-gca Nov 23, 2023
f92d60f
Fixes #1584 (#1971)
george-gca Dec 1, 2023
6130018
Update cv.md (#1973)
civita Dec 5, 2023
1997186
Implemented support for tikzjax (#1990)
george-gca Dec 13, 2023
f9b8d45
Fixed redirect post access from blog archive (#1994)
george-gca Dec 14, 2023
36e6ff8
Ensure the zoomed image is in front of toc sidebar (#1998)
george-gca Dec 15, 2023
1fa3feb
Updated README to explictly tell how to proceed on fresh install (#1993)
george-gca Dec 18, 2023
a1a9250
check for active children in submenus (#1869)
Tianmaru Dec 25, 2023
6119d06
added ability to switch off pagination on the blog page (#1909)
AbstractGeek Dec 25, 2023
0795059
Now blog can be reorganized in header (#1996)
george-gca Dec 25, 2023
45bb74e
Added video button to bib entries (#2008)
fabawi Dec 25, 2023
70d9ca9
bring back `repo_id` and `category_id` in `giscus` section (#1892)
alerezaaa Dec 25, 2023
fb294e3
Responsive image fix (#2014)
nWestie Dec 26, 2023
f05fb7b
fix live-reloading in docker (#2022)
wayne-tsai Dec 28, 2023
da5065f
Remove imagemagick strip (#2028)
nWestie Dec 30, 2023
86ada06
Changed trophies layout to better suit different screen sizes (#2038)
george-gca Jan 2, 2024
92ac10a
Changed mermaid support in template (#1992)
george-gca Jan 2, 2024
4a55cd1
Upgrading the README file (#2034)
george-gca Jan 3, 2024
7b0ca12
Added information about using wsl on Windows (#2040)
george-gca Jan 3, 2024
feb9c9e
Removed background from template example
george-gca Jan 4, 2024
e3997d0
Added citation examples, simplified citation code (#2056)
george-gca Jan 8, 2024
4ea7f5b
Add direct link to `use this template`
george-gca Jan 9, 2024
60a09ed
Normalizing coauthor names before search (#2057)
george-gca Jan 9, 2024
beb6f27
format code with prettier.io (#2048)
alshedivat Jan 10, 2024
7e8ca8f
Add .git-blame-ignore-revs
alshedivat Jan 10, 2024
7c279b1
Move news and 404 to pages (#2060)
alshedivat Jan 10, 2024
2d34024
Fix prettier (#2062)
george-gca Jan 10, 2024
982a5fe
Update .git-blame-ignore-revs
alshedivat Jan 10, 2024
aabe1e5
Fixed small typo (#2064)
Sam-Bieberich Jan 11, 2024
568e9cc
Added additional user to README.md (#2063)
Sam-Bieberich Jan 11, 2024
1a20536
Fixed missing changes to liquid file
george-gca Jan 11, 2024
cc83a12
Fixed FAQ link in CONTRIBUTING.md
george-gca Jan 11, 2024
5459ef1
Changed file paths in bug_report.md
george-gca Jan 11, 2024
0a737aa
Fix custom blockquotes (#2071)
YifanJiang233 Jan 15, 2024
71f054c
Fix broken links (#2077)
george-gca Jan 15, 2024
30f3c14
Link checks on deploy (#2079)
george-gca Jan 15, 2024
1775a9a
Axe accessibility test support (#2080)
george-gca Jan 15, 2024
f669b23
Fixed role main in default.liquid
george-gca Jan 15, 2024
cfe13d6
Added missing separator in README
george-gca Jan 16, 2024
c519061
Update contributing on README.md
george-gca Jan 16, 2024
3aa3133
Added star history to README.md
george-gca Jan 16, 2024
a843b3c
Updated toc on README.md
george-gca Jan 16, 2024
8d8298a
Update INSTALL.md version of al-folio
george-gca Jan 16, 2024
1d4a8c7
Adding star (#2095)
afraniomelo Jan 18, 2024
04f7b04
Changed conditions of running GitHub actions (#2082)
george-gca Jan 19, 2024
6700000
Downgrade ruby version (#2098)
george-gca Jan 19, 2024
7c617d8
Update INSTALL.md (#2091)
pourmand1376 Jan 19, 2024
711af76
Fixed dark mode not working after purgecss
george-gca Jan 20, 2024
30f7ab0
Added one more researcher using al-folio (#2105)
JonaRuthardt Jan 21, 2024
65c5c8a
Added acknowledge section to feature_request.md
george-gca Jan 22, 2024
3927200
Added diff tools to INSTALL.md
george-gca Jan 22, 2024
8af6b73
Prettier check now generates a diff comment on PR (#2085)
george-gca Jan 22, 2024
7ed8f49
Update prettier-on-pr.yml permissions
george-gca Jan 22, 2024
27d2fa0
Changed how prettier comments on PR works (#2112)
george-gca Jan 22, 2024
bbaae0a
Fixed prettier actions (#2113)
george-gca Jan 22, 2024
db0a92b
Moved prettier comment on PR to its own action (#2114)
george-gca Jan 22, 2024
b83a0e3
Added Lighthouse test GitHub action (#2084)
george-gca Jan 23, 2024
0510031
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Jan 23, 2024
25eac65
Fixed lighthouse html viewer links
george-gca Jan 23, 2024
10507a8
Added anchor to category sections (#2006)
fabawi Jan 23, 2024
8dd678c
Added lighthouse_results to .prettierignore
george-gca Jan 23, 2024
ec9571a
Improved issues templates (#2110)
george-gca Jan 23, 2024
b0b19a1
Removed 0 from bug report
george-gca Jan 23, 2024
2fa8141
Updated links in 1_bug_report.yml
george-gca Jan 23, 2024
6fcc283
Updated links in 2_feature_request.yml
george-gca Jan 23, 2024
fc23860
Updated links in issue template config.yml
george-gca Jan 23, 2024
7d861cb
Fixed url in config.yml
george-gca Jan 23, 2024
c99a453
Fixed urls in 2_feature_request.yml
george-gca Jan 23, 2024
0c08237
Fixed urls in 1_bug_report.yml
george-gca Jan 23, 2024
7638547
Updated checkout step in lighthouse-badger.yml
george-gca Jan 23, 2024
1d84621
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Jan 23, 2024
a7d6b37
Added support for Chart.js (#2126)
george-gca Jan 26, 2024
3ec0ff4
Added integrity check to mermaid.js
george-gca Jan 27, 2024
4f6fe1a
Added Echarts support (#2129)
george-gca Jan 27, 2024
1492cb9
GeoJSON support (#2130)
george-gca Jan 27, 2024
f6bb6b5
Vega lite support (#2131)
george-gca Jan 27, 2024
53fb011
Added leaflet reference to 2024-01-26-geojson-map.md
george-gca Jan 27, 2024
f69d99a
Closing #2122 (#2135)
george-gca Jan 28, 2024
2492ab3
Workflow fix (#2136)
george-gca Jan 28, 2024
8e93db5
Advanced image viewers (#2132)
george-gca Jan 28, 2024
ef84782
Support for diff2html (#2133)
george-gca Jan 28, 2024
06bc367
Move libs versions to config (#2139)
george-gca Jan 28, 2024
43a3dd9
Update FAQ.md with Prettier info
george-gca Jan 28, 2024
1935a2a
Avoid deploying site when changes are in README files
george-gca Jan 28, 2024
3c80fdb
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Jan 28, 2024
2356aea
Removing lighthouse results from deploy trigger
george-gca Jan 28, 2024
5337984
Removing lighthouse_results from broken-links trigger
george-gca Jan 28, 2024
f3d3efa
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Jan 28, 2024
fa5b411
Adding display swap to Google Fonts
george-gca Jan 28, 2024
e977319
Added link to jekyll docs about post file naming
george-gca Jan 29, 2024
18f7307
Fixed axe workflow (#2149)
george-gca Jan 30, 2024
ae0c1a6
improved redirect mapping (#2157)
asboyer Feb 4, 2024
c39df67
Updated FAQ with old repository information (#2161)
george-gca Feb 5, 2024
4cf657e
Added jekyll-diagrams error to FAQ (#2162)
george-gca Feb 5, 2024
1ce5865
center footer text by default (#2165)
eolesinski Feb 6, 2024
7c2e1c2
Fix Image Dimension Styles for Better Responsiveness (#2166)
ZL-Asica Feb 7, 2024
ef647a6
Update README.md (#2182)
ZL-Asica Feb 11, 2024
007b504
Update README.md (#2187)
Stavros Feb 11, 2024
a0bcaaf
Added support for google scholar citations (#2193)
george-gca Feb 13, 2024
b4e4232
Fixed bug when number has , on scholar citations
george-gca Feb 13, 2024
9794c62
Add academic community example (#2195)
slymane Feb 13, 2024
0f0feb1
Fixed related publications appearing in toc (#2196)
george-gca Feb 13, 2024
26fad31
remove the space in names of "site" (#2188)
furkanakkurt1335 Feb 14, 2024
2a056fe
Implement Default Lazy Loading for Images with Configurable Option (#…
ZL-Asica Feb 14, 2024
40b22ff
fix author spacing (#2197)
eolesinski Feb 14, 2024
f067edc
Changed lazy loading in figure.liquid
george-gca Feb 14, 2024
5df7a6a
Changed lazy loading in _config.yml
george-gca Feb 14, 2024
0b84a12
Added/Improved Formatting for Checkboxes (#2191)
DavidKrassnig Feb 14, 2024
b316653
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Feb 14, 2024
6e215a1
Lighthouse fixes (#2199)
george-gca Feb 14, 2024
e430a89
Lighthouse-Badger[bot]: Results Added
github-actions[bot] Feb 14, 2024
9f4d6d2
Fixed coauthors examples in CUSTOMIZE
george-gca Feb 19, 2024
b607e58
Fixed broken latex in _posts/2015-10-20-math.md (#2219)
kroist Feb 22, 2024
70ad4ce
Emphasized more how the name of the repository must be
george-gca Feb 26, 2024
c1f1684
Add functionality to open external links in jupyter notebooks in new …
mscherrmann Feb 27, 2024
8cacee6
Update INSTALL.md (#2237)
SasikaA073 Feb 29, 2024
4dd3d6f
Updated information about lsi
george-gca Mar 1, 2024
82e7325
Correct config variable for enabling latest_posts on about page (#2243)
slapcat Mar 3, 2024
21bc463
Replace `polyfill.io` (#2241)
SukkaW Mar 4, 2024
a3a02d9
Add option for local HTML files (#2245)
slapcat Mar 4, 2024
ed2ac96
Delete reports directory
george-gca Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support for diff2html (alshedivat#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>
  • Loading branch information
george-gca authored Jan 28, 2024
commit ef847825fda76f7f6b823f08b2d36d8dbbf427f9
19 changes: 18 additions & 1 deletion _includes/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
>

<!-- Bootstrap Table -->
<link defer rel="stylesheet" href="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }}/dist/bootstrap-table.min.css">
{% if page.pretty_table %}
<link defer rel="stylesheet" href="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }}/dist/bootstrap-table.min.css">
{% endif %}

<!-- Fonts & Icons -->
<link rel="stylesheet" href="{{ '/assets/css/academicons.min.css' | relative_url | bust_file_cache }}">
Expand Down Expand Up @@ -72,6 +74,21 @@
>
{% endif %}

<!-- diff2html -->
{% if page.code_diff %}
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css"
media="screen and (prefers-color-scheme: light)"
>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css"
media="screen and (prefers-color-scheme: dark)"
>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css">
{% endif %}

<!-- Image comparison slider -->
{% if page.images %}
{% if page.images.compare %}
Expand Down
26 changes: 26 additions & 0 deletions _includes/scripts/codeDiff.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% if page.code_diff %}
<!-- diff2html doesn't go well with Bootstrap Table -->
<script
src="https://cdn.jsdelivr.net/npm/diff2html@3.4.47/bundles/js/diff2html-ui.min.js"
integrity="sha256-eU2TVHX633T1o/bTQp6iIJByYJEtZThhF9bKz/DcbbY="
crossorigin="anonymous"
></script>
<script>
let theme = localStorage.getItem('theme');

/* Create echarts chart as another node and hide the code block, appending the echarts node after it
this is done to enable retrieving the code again when changing theme between light/dark */
document.querySelectorAll('pre>code.language-diff2html').forEach((elem) => {
const textData = elem.textContent;
const backup = elem.parentElement;
backup.classList.add('unloaded');
/* create diff node */
let diffElement = document.createElement('div');
diffElement.classList.add('diff2html');
backup.after(diffElement);
const configuration = { colorScheme: theme, drawFileList: true, highlight: true, matching: 'lines' };
const diff2htmlUi = new Diff2HtmlUI(diffElement, textData, configuration);
diff2htmlUi.draw();
});
</script>
{% endif %}
5 changes: 4 additions & 1 deletion _includes/scripts/misc.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
{% endif %}

<!-- Bootstrap Table -->
<script defer src="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }}/dist/bootstrap-table.min.js"></script>
{% if page.pretty_table %}
<!-- Bootstrap Table doesn't go well with diff2html -->
<script defer src="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }}/dist/bootstrap-table.min.js"></script>
{% endif %}

<!-- Load Common JS -->
<script src="{{ '/assets/js/no_defer.js' | relative_url | bust_file_cache }}"></script>
Expand Down
1 change: 1 addition & 0 deletions _layouts/default.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
{% include scripts/bootstrap.liquid %}
{% include scripts/masonry.liquid %}
{% include scripts/mermaid.liquid %}
{% include scripts/codeDiff.liquid %}
{% include scripts/leaflet.liquid %}
{% include scripts/chartjs.liquid %}
{% include scripts/echarts.liquid %}
Expand Down
2 changes: 1 addition & 1 deletion _posts/2023-03-21-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags: formatting tables
categories: sample-posts
giscus_comments: true
related_posts: true
datatable: true
pretty_table: true
---

Using markdown to display tables is easy. Just use the following syntax:
Expand Down
Loading