From f38c5238a98938c92fe9305bada5f92d7e920b5e Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 10 Apr 2026 15:35:52 +0100 Subject: [PATCH 1/3] adds pygment styles and a code example --- content/news/aio-libs/2026-03-24_code-test.md | 26 +++++++++++++++++++ theme/static/css/main.css | 16 +++++++++--- 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 content/news/aio-libs/2026-03-24_code-test.md diff --git a/content/news/aio-libs/2026-03-24_code-test.md b/content/news/aio-libs/2026-03-24_code-test.md new file mode 100644 index 0000000..b7d4802 --- /dev/null +++ b/content/news/aio-libs/2026-03-24_code-test.md @@ -0,0 +1,26 @@ +Title: Pygments code test + +Code below + +``` +//Initialize the array that will hold the primes +var primeArray = []; +/*Write a function that checks for primeness and +pushes those values to the array*/ +function PrimeCheck(candidate){ + isPrime = true; + for(var i = 2; i < candidate && isPrime; i++){ + if(candidate%i === 0){ + isPrime = false; + } else { + isPrime = true; + } + } + if(isPrime){ + primeArray.push(candidate); + } + return primeArray; +} +``` + +Code above diff --git a/theme/static/css/main.css b/theme/static/css/main.css index b63567c..42ae088 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -1,5 +1,6 @@ :root { --color-bg: #ffffff; + --color-section: #e7e7e7; --color-text: #000000; --color-detail: #b2b2b2; --color-button: #f1f1f1; @@ -17,11 +18,12 @@ @media (prefers-color-scheme: dark) { :root { - --color-bg: #091413; + --color-bg: #152524; + --color-section: #1b2d2c; --color-text: #ffffff; --color-detail: #85a69a; - --color-button: #1d2827; - --color-button-hover: #233736; + --color-button: #243432; + --color-button-hover: #234240; --color-muted: #999999; --color-highlight: #B0E4CC; --color-link: #CBBBF2; @@ -151,7 +153,7 @@ footer { padding: 1em 0 2em 0; font-family: var(--font-family-brand); font-size: .9em; - color: var(--color-detail); + color: var(--color-muted); } address { @@ -356,3 +358,9 @@ address { margin-right: 0; } } + +.codehilite { + margin-bottom: 1em; + padding: 1em; + background: var(--color-section); +} \ No newline at end of file From 99cedb3f50dc2cabd1e4bd796f96a8099ad3f5d2 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 10 Apr 2026 16:06:31 +0100 Subject: [PATCH 2/3] Update main.css --- theme/static/css/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/static/css/main.css b/theme/static/css/main.css index 42ae088..c3c4288 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -363,4 +363,4 @@ address { margin-bottom: 1em; padding: 1em; background: var(--color-section); -} \ No newline at end of file +} From 5dbf093db6883adad771e0d463f0d7e6dd43517b Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 10 Apr 2026 16:06:52 +0100 Subject: [PATCH 3/3] Delete content/news/aio-libs/2026-03-24_code-test.md --- content/news/aio-libs/2026-03-24_code-test.md | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 content/news/aio-libs/2026-03-24_code-test.md diff --git a/content/news/aio-libs/2026-03-24_code-test.md b/content/news/aio-libs/2026-03-24_code-test.md deleted file mode 100644 index b7d4802..0000000 --- a/content/news/aio-libs/2026-03-24_code-test.md +++ /dev/null @@ -1,26 +0,0 @@ -Title: Pygments code test - -Code below - -``` -//Initialize the array that will hold the primes -var primeArray = []; -/*Write a function that checks for primeness and -pushes those values to the array*/ -function PrimeCheck(candidate){ - isPrime = true; - for(var i = 2; i < candidate && isPrime; i++){ - if(candidate%i === 0){ - isPrime = false; - } else { - isPrime = true; - } - } - if(isPrime){ - primeArray.push(candidate); - } - return primeArray; -} -``` - -Code above