From fecd03b37093b13e1653021ac037bf4a54dc6d49 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Sat, 22 Aug 2020 12:47:04 +0200 Subject: [PATCH] geekier css --- Shakefile.hs | 2 +- engine/deploy.sh | 11 ++++++----- src/css/y.css | 9 +++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Shakefile.hs b/Shakefile.hs index fb093f6..6b2c57b 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -94,7 +94,7 @@ getBlogpostFromMetas path toc pandoc@(Pandoc meta _) = do title <- fmap (T.dropEnd 1) $ inlineToText $ docTitle meta date <- fmap reformatDate $ inlineToText $ docDate meta author <- case head $ docAuthors meta of - Just m -> inlineToText m + Just m -> fmap T.strip $ inlineToText m Nothing -> return "" let tags = tagsToList $ lookupMeta "keywords" meta description = descr $ lookupMeta "description" meta diff --git a/engine/deploy.sh b/engine/deploy.sh index 5f2b727..8734ede 100755 --- a/engine/deploy.sh +++ b/engine/deploy.sh @@ -1,10 +1,11 @@ -#!/usr/bin/env bash +#!/usr/bin/env zsh + +set -e # fail on first error +set -u # fail if a variable is not set cd "$(git rev-parse --show-toplevel)" || exit 1 -rootdir=${0:h} +rootdir="${0:h}" echo "$rootdir" -./engine/clean.sh -./engine/build.sh -./engine/pre-deploy.sh +./engine/build.sh full ./engine/sync.sh diff --git a/src/css/y.css b/src/css/y.css index d9c08ed..d5f8e93 100644 --- a/src/css/y.css +++ b/src/css/y.css @@ -1,6 +1,6 @@ html { - font-family: "Helvetica Neue", sans-serif; - font-size: 16px; + font-family: Courier,monospace; + font-size: 14px; line-height: calc(1ex/0.37); } html,body { margin: 0; padding: 0; border: 0; } h1,h2,h3,h4,h5,h6 { @@ -9,8 +9,8 @@ h1,h2,h3,h4,h5,h6 { #preamble h1 { margin: 0; } p { text-align: justify; hyphens: auto; } pre { overflow-x: scroll; border: solid 1px; padding: 1ex; } -pre > code { font-size: 0.875em; } -code,pre { font-size: 0.875em; } +pre > code { font-size: 0.875em; background: none; } +code,pre { font-family: Courier, monospace; } figure { margin: 1rem 0; padding: 0; } .meta { font-size: small;} .abstract { margin: 1rem; font-size: 0.875em; font-style: italic; } @@ -168,6 +168,7 @@ body, body > div { } a,a:visited { color: var(--hl); } figcaption { color: var(--fg0); } +code { background: var(--rbg); } /* ---- SYNTAX HIGHLIGHTING ---- */ #table-of-contents { text-align: left; }