From 2570061c8a9fe49cae0e10c8d351692272373fba Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 13 Feb 2025 22:37:26 +0100 Subject: Fix syntax highlighting theme --- assets/css/syntax.css | 2 ++ content/posts/pointer-tagging.md | 21 --------------------- content/posts/pointer-tagging/index.md | 21 +++++++++++++++++++++ syntax.sh | 2 ++ 4 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 content/posts/pointer-tagging.md create mode 100644 content/posts/pointer-tagging/index.md diff --git a/assets/css/syntax.css b/assets/css/syntax.css index 2bd5b78..322824e 100644 --- a/assets/css/syntax.css +++ b/assets/css/syntax.css @@ -12,6 +12,7 @@ } /* Chroma style: xcode */ +@media (prefers-color-scheme: light) { /* Background */ .bg { background-color:#fff; } /* PreWrapper */ .chroma { background-color:#fff; } /* Other */ .chroma .x { } @@ -98,6 +99,7 @@ /* GenericTraceback */ .chroma .gt { } /* GenericUnderline */ .chroma .gl { } /* TextWhitespace */ .chroma .w { } +} /* Chroma style: modus-vivendi */ diff --git a/content/posts/pointer-tagging.md b/content/posts/pointer-tagging.md deleted file mode 100644 index a41c601..0000000 --- a/content/posts/pointer-tagging.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = 'Pointer tagging for Interpreters' -date = 2025-02-01T13:58:39+01:00 -categories = [ "langdev", "guide" ] -tags = [ "langdev", "interpreter", "optimization", "low-level" ] -draft = true -+++ - - - - -## Default representation - - -## Optimized tagged pointers - - -## A word of caution - - -## References diff --git a/content/posts/pointer-tagging/index.md b/content/posts/pointer-tagging/index.md new file mode 100644 index 0000000..a41c601 --- /dev/null +++ b/content/posts/pointer-tagging/index.md @@ -0,0 +1,21 @@ ++++ +title = 'Pointer tagging for Interpreters' +date = 2025-02-01T13:58:39+01:00 +categories = [ "langdev", "guide" ] +tags = [ "langdev", "interpreter", "optimization", "low-level" ] +draft = true ++++ + + + + +## Default representation + + +## Optimized tagged pointers + + +## A word of caution + + +## References diff --git a/syntax.sh b/syntax.sh index 04141ae..0473d98 100755 --- a/syntax.sh +++ b/syntax.sh @@ -22,7 +22,9 @@ cat << EOF > $CSS EOF printf "\n/* Chroma style: %s */\n" $LIGHT >> $CSS +printf "@media (prefers-color-scheme: light) {\n" >> $CSS hugo gen chromastyles --style=$LIGHT >> $CSS +printf "}\n" >> $CSS printf "\n\n/* Chroma style: %s */\n" $DARK >> $CSS printf "@media (prefers-color-scheme: dark) {\n" >> $CSS hugo gen chromastyles --style=$DARK >> $CSS -- cgit v1.2.3