commit e673753a7fba027a1b63a086b0f296228cfb3ec3
parent ce92c55bc74ff2ae3a03bd17c32aca8c782392ae
Author: Pollux <pollux@pollux.codes>
Date: Thu, 24 Jul 2025 01:47:34 -0500
Make code blocks horizontally scrollable
Also adjust past blog post with code blocks
Signed-off-by: Pollux <pollux@pollux.codes>
Diffstat:
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/content/blog/data-analysis-using-makefiles.md b/content/blog/data-analysis-using-makefiles.md
@@ -208,20 +208,14 @@ executables = $(shell find . -maxdepth 1 -executable -type f)
@printf 'Regenerating makefile...\n'
@echo -n 'all:' > .makerules
@for file in $^; do\
- provides=$$(cat $${file} | grep '^# PROVIDES: '\
- | cut -d ' ' -f3-);\
- echo -n ' $$(patsubst %,$(datadir)/%,\
- '$${provides}')';\
+ provides=$$(cat $${file} | grep '^# PROVIDES: ' | cut -d ' ' -f3-);\
+ echo -n ' $$(patsubst %,$(datadir)/%,'$${provides}')';\
done >> .makerules
@echo >> .makerules
@for file in $^; do\
- depends=$$(cat $${file} | grep '^# DEPENDS: '\
- | cut -d ' ' -f3-);\
- provides=$$(cat $${file} | grep '^# PROVIDES: '\
- | cut -d ' ' -f3-);\
- echo '$$(patsubst %,$(datadir)/%,'$${provides}')':\
- $${file} '$$(patsubst %,$(datadir)/%,'\
- $${depends}')';\
+ depends=$$(cat $${file} | grep '^# DEPENDS: ' | cut -d ' ' -f3-);\
+ provides=$$(cat $${file} | grep '^# PROVIDES: '\ | cut -d ' ' -f3-);\
+ echo '$$(patsubst %,$(datadir)/%,'$${provides}')': '$${file}' '$$(patsubst %,$(datadir)/%,'$${depends}')';\
echo '\t./'$${file};\
done >> .makerules
diff --git a/static/style.css b/static/style.css
@@ -9,6 +9,7 @@ body {
img{vertical-align: bottom}
a{color:skyblue}
iframe {border: 1px dashed white}
+.highlight {overflow-x:scroll}
input, textarea {
font: 1.2em/1.62 monospace;
color: white;