From 92f4969cd9140cfbb52acc5809ceab2c34e76976 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 18 May 2018 18:16:25 +0200 Subject: [PATCH 1/5] =?UTF-8?q?Use=20non-breaking=20space=20for=20?= =?UTF-8?q?=E2=80=9Cread=20more=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog/templates/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/templates/macros.html b/blog/templates/macros.html index 38b809a0..c262b74e 100644 --- a/blog/templates/macros.html +++ b/blog/templates/macros.html @@ -3,7 +3,7 @@

{{ page.title }}

{{ page.summary | safe}} - read more… + read more…
{% endmacro post_link %} From 3de9c85065d8f1af007dc5d7a00fb654107087e5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 21 May 2018 18:20:18 +0200 Subject: [PATCH 2/5] Use system font size; make site a bit wider --- blog/static/css/poole.css | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/blog/static/css/poole.css b/blog/static/css/poole.css index c33ace0a..54740cba 100644 --- a/blog/static/css/poole.css +++ b/blog/static/css/poole.css @@ -49,14 +49,8 @@ body { html { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 16px; line-height: 1.5; } -@media (min-width: 38rem) { - html { - font-size: 17px; - } -} body { color: #515151; @@ -161,7 +155,7 @@ pre { margin-top: 0; margin-bottom: 1rem; padding: .5rem; - font-size: .8rem; + font-size: .85rem; line-height: 1.4; white-space: pre; overflow: auto; @@ -260,7 +254,7 @@ tbody tr:nth-child(odd) th { */ .container { - max-width: 42rem; + max-width: 45rem; padding-left: 1rem; padding-right: 1rem; margin-left: auto; From b613c8e0ffe710e6030c1b93963dd8c256192e39 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 22 May 2018 19:32:36 +0200 Subject: [PATCH 3/5] Delete unused syntax.css --- blog/static/css/syntax.css | 65 -------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 blog/static/css/syntax.css diff --git a/blog/static/css/syntax.css b/blog/static/css/syntax.css deleted file mode 100644 index c8ccb765..00000000 --- a/blog/static/css/syntax.css +++ /dev/null @@ -1,65 +0,0 @@ -.highlight .hll { background-color: #ffc; } -.highlight .c { color: #999; font-style: italic } /* Comment */ -.highlight .err { color: #a00; background-color: #faa } /* Error */ -.highlight .k { color: #069; font-weight: bold } /* Keyword */ -.highlight .o { color: #555 } /* Operator */ -.highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #099 } /* Comment.Preproc */ -.highlight .c1, .c-Doc { color: #09f; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #09f; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { background-color: #fcc; border: 1px solid #c00 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #f00 } /* Generic.Error */ -.highlight .gh { color: #030; font-weight: bold } /* Generic.Heading */ -.highlight .gi { background-color: #cfc; border: 1px solid #0c0 } /* Generic.Inserted */ -.highlight .go { color: #aaa } /* Generic.Output */ -.highlight .gp { color: #009; font-weight: bold } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #030; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #9c6 } /* Generic.Traceback */ -.highlight .kc { color: #069; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #069; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #069; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #069 } /* Keyword.Pseudo */ -.highlight .kr { color: #069; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #078; font-weight: bold } /* Keyword.Type */ -.highlight .m { color: #f60 } /* Literal.Number */ -.highlight .s { color: #c30 } /* Literal.String */ -.highlight .na { color: #309 } /* Name.Attribute */ -.highlight .nb { color: #366 } /* Name.Builtin */ -.highlight .nc { color: #0a8; font-weight: bold } /* Name.Class */ -.highlight .no { color: #360 } /* Name.Constant */ -.highlight .nd { color: #99f } /* Name.Decorator */ -.highlight .ni { color: #999; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #c00; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #c0f } /* Name.Function */ -.highlight .nl { color: #99f } /* Name.Label */ -.highlight .nn { color: #0cf; font-weight: bold } /* Name.Namespace */ -.highlight .nt { color: #309; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #033 } /* Name.Variable */ -.highlight .ow { color: #000; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbb } /* Text.Whitespace */ -.highlight .mf { color: #f60 } /* Literal.Number.Float */ -.highlight .mh { color: #f60 } /* Literal.Number.Hex */ -.highlight .mi { color: #f60 } /* Literal.Number.Integer */ -.highlight .mo { color: #f60 } /* Literal.Number.Oct */ -.highlight .sb { color: #c30 } /* Literal.String.Backtick */ -.highlight .sc { color: #c30 } /* Literal.String.Char */ -.highlight .sd { color: #c30; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #c30 } /* Literal.String.Double */ -.highlight .se { color: #c30; font-weight: bold } /* Literal.String.Escape */ -.highlight .sh { color: #c30 } /* Literal.String.Heredoc */ -.highlight .si { color: #a00 } /* Literal.String.Interpol */ -.highlight .sx { color: #c30 } /* Literal.String.Other */ -.highlight .sr { color: #3aa } /* Literal.String.Regex */ -.highlight .s1 { color: #c30 } /* Literal.String.Single */ -.highlight .ss { color: #fc3 } /* Literal.String.Symbol */ -.highlight .bp { color: #366 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #033 } /* Name.Variable.Class */ -.highlight .vg { color: #033 } /* Name.Variable.Global */ -.highlight .vi { color: #033 } /* Name.Variable.Instance */ -.highlight .il { color: #f60 } /* Literal.Number.Integer.Long */ - -.css .o, -.css .o + .nt, -.css .nt + .nt { color: #999; } From a860ca76b555c34a161e5e49e042df108f7d053f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 22 May 2018 19:33:16 +0200 Subject: [PATCH 4/5] Change syntax highlighting theme to visual-studio-dark --- blog/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/config.toml b/blog/config.toml index fa14d9ea..e7f374f9 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -2,7 +2,7 @@ title = "Writing an OS in Rust" base_url = "https://os.phil-opp.com" highlight_code = true -highlight_theme = "monokai" +highlight_theme = "visual-studio-dark" generate_rss = true [extra] From 40cfef3115dbb8572780e6ff275bf6022d18ab77 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 22 May 2018 19:51:37 +0200 Subject: [PATCH 5/5] Update gutenberg to 0.3.3 --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 4162b367..d98468f3 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,7 +4,7 @@ command = "python before_build.py && gutenberg build" [build.environment] - GUTENBERG_VERSION = "0.3.0" + GUTENBERG_VERSION = "0.3.3" [context.deploy-preview] command = "python before_build.py && gutenberg build --base-url $DEPLOY_PRIME_URL"