diff --git a/_includes/head_custom.html b/_includes/head_custom.html
new file mode 100644
index 0000000000000000000000000000000000000000..e24fe3b68e053f71b6f4b8630eacfbe3db29bf9b
--- /dev/null
+++ b/_includes/head_custom.html
@@ -0,0 +1,10 @@
+{% if page.redirect_to %}
+<style>body { display: none; }</style>
+<meta http-equiv="refresh" content="0; url={{ page.redirect_to }}">
+{% endif %}
+{% if page.latex %}
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
+{% endif %}
+{{ page.head }}