Fixed blog post style

This commit is contained in:
Anton Pogrebnjak
2025-02-16 20:45:59 +01:00
parent 9e02d262be
commit f4275738de

View File

@@ -13,7 +13,7 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
<html lang="en"> <html lang="en">
<head> <head>
<BaseHead title={title} description={description} image={heroImage} /> <BaseHead title={title} description={description} image={heroImage} />
<!-- Katex --> <!-- Katex -->
<link <link
rel="stylesheet" rel="stylesheet"
@@ -25,20 +25,16 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
defer defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"
integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8"
crossorigin="anonymous" crossorigin="anonymous"></script>
></script>
<script <script
defer defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
crossorigin="anonymous" crossorigin="anonymous"
onload="renderMathInElement(document.body);" onload="renderMathInElement(document.body);"></script>
></script>
<style> <style>
main { article {
width: calc(100% - 2em); width: 100%;
max-width: 100%;
margin: 0;
} }
h1::after { h1::after {