Add katex example with documentation (#69)

This commit is contained in:
Yash Mehrotra
2021-09-01 08:35:49 +05:30
committed by GitHub
parent b8b06fcd83
commit 5b5b2eb83c
2 changed files with 31 additions and 1 deletions

View File

@@ -14,7 +14,13 @@ pygmentsStyle = "monokai"
description = "Sky above, sand below and peace within"
avatarURL = "/images/avatar.webp"
avatarSize = "size-m"
customHeadHTML = ""
customHeadHTML = """
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.16/dist/katex.min.css" integrity="sha384-6LkG2wmY8FK9E0vU9OOr8UvLwsaqUg9SETfpq4uTCN1agNe8HRdE9ABlk+fVx6gZ" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.16/dist/katex.min.js" integrity="sha384-31El76TwmbHj4rF9DyLsygbq6xoIobG0W+jqXim+a3dU9W53tdH3A/ngRPxOzzaB" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.16/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
"""
showPostsOnHomePage = "popular"
metaKeywords = ["blog", "gokarna", "hugo"]