Skip to content

Commit 254f9e8

Browse files
committed
fix: much needed updates
- Sidenote, marginnote and figure element restyling (flexbox) - Table styling fixes (right alignment issues) - Switch MathJax over to SVG embeds (performance fixes) - Simplify HTML skeleton of main pages, remove overkill classes - Remove lazysizes.js to save on load times - Fallback on font-display for font loading - Inline all CSS for faster initial paint - Minor link :hover coloring - Add missing image link on example page - Update details post
1 parent 5a9ce23 commit 254f9e8

12 files changed

+425
-439
lines changed

_includes/critical.css

-113
This file was deleted.

_includes/footer-post.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="bottom-footer">
2+
<span class="mini-note">You've reached the end of the page. Good job! 👍</span>
3+
</div>
4+
5+
<script type="text/x-mathjax-config">
6+
MathJax.Hub.Config({
7+
extensions: ["tex2jax.js", "TeX/AMSmath.js"],
8+
jax: ["input/TeX", "output/SVG"],
9+
})
10+
</script>
11+
<script type="text/javascript" async
12+
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=default">
13+
</script>

_includes/head-post.html

-28
This file was deleted.

_includes/head.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
<link href='{{ site.baseurl }}/feed.xml' rel='alternate' type='application/atom+xml'>
1717
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}">
1818
<link rel="manifest" href="{{ site.baseurl }}/manifest.json">
19-
<link rel="stylesheet" href="{{ site.baseurl}}/css/style.css">
20-
<!-- INLINE CRITICAL CSS -->
19+
{% capture critical %}
20+
{% include style.scss %}
21+
{% endcapture %}
2122
<style>
22-
{% include critical.css %}
23+
{{ critical | scssify }}
2324
</style>
2425
</head>
2526

0 commit comments

Comments
 (0)