From 3a96ec2a3e1627420b93e5ae04c76c81295b5232 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 27 Oct 2017 13:36:18 +0100 Subject: [PATCH] Better style code --- Makefile | 2 +- content/posts/arch-revert-to-date.md | 2 +- static/src/scss/style.scss | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7889d47..5be6b99 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ build: install rm -rf $(OUTPUT_DIR) rm -rf $(STATIC_BUILD) mkdir -p $(STATIC_BUILD)/js $(STATIC_BUILD)/css - hugo gen chromastyles --style=tango > $(STATIC_SRC)/scss/highlight.css + hugo gen chromastyles --style=monokai > $(STATIC_SRC)/scss/highlight.css $(NODE_BIN)/browserify $(STATIC_SRC)/js/index.js -o $(STATIC_BUILD)/js/app.js $(NODE_BIN)/node-sass $(STATIC_SRC)/scss/style.scss $(STATIC_BUILD)/css/style.css --source-map-embed cp -r $(BASEDIR)/node_modules/font-awesome/fonts $(STATIC_BUILD)/fonts diff --git a/content/posts/arch-revert-to-date.md b/content/posts/arch-revert-to-date.md index 349e350..db8d9b2 100644 --- a/content/posts/arch-revert-to-date.md +++ b/content/posts/arch-revert-to-date.md @@ -13,7 +13,7 @@ I'm also one of those _crazy_ people who uses arch on my work machine. Craziness After running updates this morning, as I normally would, I went to start the project I was working on today locally, and was met with this wonderful message: ```text - django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: /home/jake/Projects/******/env/lib/python3.5/site-packages/psycopg2/.libs/libresolv-2-c4c53def.5.so: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference +django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: /home/jake/Projects/******/env/lib/python3.5/site-packages/psycopg2/.libs/libresolv-2-c4c53def.5.so: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference ``` As this was a work machine, I didn't have the time to research into the correct solution. I knew this was something to do with updates, because that's all that had changed between the last time it worked and now. But I had a feeling rolling back updates to a given date, especially on arch, would be fairly painful. Much to my surprise, it was super simple! diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 51a9495..134d9d1 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -153,3 +153,19 @@ footer { ul ul, ol ol { padding-left: $spacer * 1.5; } + +pre.chroma { + padding: $spacer; + margin: $spacer 0; +} + +.content { + h1, h2, h3, h4, h5, h6 { + margin-top: $spacer; + } + + code { + color: #f8f8f2; + background-color: #272822; + } +}