diff --git a/.nojekyll b/.nojekyll index 6a39ee5..73ea2f7 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -82526002 \ No newline at end of file +34fedeaa \ No newline at end of file diff --git a/index.html b/index.html index ef2ecc7..63f3496 100644 --- a/index.html +++ b/index.html @@ -205,7 +205,7 @@
Categories
-
+

diff --git a/posts/post-with-code/index.html b/posts/post-with-code/index.html index 0b2dfb2..c965d1b 100644 --- a/posts/post-with-code/index.html +++ b/posts/post-with-code/index.html @@ -22,6 +22,40 @@ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */ vertical-align: middle; } +/* CSS for syntax highlighting */ +pre > code.sourceCode { white-space: pre; position: relative; } +pre > code.sourceCode > span { line-height: 1.25; } +pre > code.sourceCode > span:empty { height: 1.2em; } +.sourceCode { overflow: visible; } +code.sourceCode > span { color: inherit; text-decoration: inherit; } +div.sourceCode { margin: 1em 0; } +pre.sourceCode { margin: 0; } +@media screen { +div.sourceCode { overflow: auto; } +} +@media print { +pre > code.sourceCode { white-space: pre-wrap; } +pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } +} +pre.numberSource code + { counter-reset: source-line 0; } +pre.numberSource code > span + { position: relative; left: -4em; counter-increment: source-line; } +pre.numberSource code > span > a:first-child::before + { content: counter(source-line); + position: relative; left: -1em; text-align: right; vertical-align: baseline; + border: none; display: inline-block; + -webkit-touch-callout: none; -webkit-user-select: none; + -khtml-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; + padding: 0 4px; width: 4em; + } +pre.numberSource { margin-left: 3em; padding-left: 4px; } +div.sourceCode + { } +@media screen { +pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; } +} @@ -157,6 +191,12 @@

Post With Code

This is a post with executable code.

+
+
print("Hello World")
+
+
Hello World
+
+
diff --git a/search.json b/search.json index b8b8cc6..813f7c2 100644 --- a/search.json +++ b/search.json @@ -11,7 +11,7 @@ "href": "posts/post-with-code/index.html", "title": "Post With Code", "section": "", - "text": "This is a post with executable code." + "text": "This is a post with executable code.\n\nprint(\"Hello World\")\n\nHello World" }, { "objectID": "about.html", diff --git a/sitemap.xml b/sitemap.xml index 290b92c..9f74afd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -6,7 +6,7 @@ https://hraeder41.github.io/posts/post-with-code/index.html - 2024-06-12T01:22:30.071Z + 2024-07-15T14:35:53.778Z https://hraeder41.github.io/about.html