From a875b80add2760059042eed0a7e338d02013aabd Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Tue, 26 Mar 2024 18:47:38 -0500 Subject: [PATCH] add prism syntax highlighting --- templates/base.html | 53 ++++++++++++++++++++++++++++++++++++++++++++ templates/styles.css | 11 +++++++++ 2 files changed, 64 insertions(+) diff --git a/templates/base.html b/templates/base.html index e2567b4..61b0679 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,6 +12,28 @@ rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css" /> + + + + {% block title %}{{ title }} - My Site{% endblock %} {% block head %}{% endblock %} @@ -19,5 +41,36 @@ {% block content %}

Placeholder content

{% endblock %} + + + + + + diff --git a/templates/styles.css b/templates/styles.css index d0629b8..1e59b24 100644 --- a/templates/styles.css +++ b/templates/styles.css @@ -15,3 +15,14 @@ td { border: 1px solid black; padding: 0.25rem; } + +/* prism overrides*/ +pre[class*="language-"] { + background: unset !important; + padding: unset !important; +} + +pre[class*="language-"][data-language]::before { + color: #888 !important; + background-color: #161f27 !important; +}