diff options
author | Gyorgy Orban <o.gyorgy@gmail.com> | 2020-01-12 00:54:26 +0300 |
---|---|---|
committer | Gyorgy Orban <o.gyorgy@gmail.com> | 2020-01-12 02:26:43 +0300 |
commit | 1f3fb7b881a52011d0fd6351ad9c317018899c70 (patch) | |
tree | 76964e7b39230660c27c413f8a00474d960e76ea | |
parent | de2ea41b2af104ddfb355da71121cd68fdc408f5 (diff) |
update syntax highlight configuration and background style
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | exampleSite/config.toml | 5 | ||||
-rw-r--r-- | static/css/default-dark.css | 8 |
3 files changed, 17 insertions, 4 deletions
@@ -44,10 +44,10 @@ disqusShortname = "" SectionPagesMenu = "main" -# use Chroma for syntax highlight -pygmentsStyle = "native" # other dark style options: vim, fruity, monokai -# enable syntax highlight for code blocks -pygmentsCodeFences = true +# Configure syntax highlight +[markup] + [markup.highlight] + style = "rrt" # dark themes: monokai, api, fruity, native, rrt, swapoff [[menu.main]] name = "Posts" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 59df3e0..9e6105a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -36,6 +36,11 @@ pygmentsCodeFences = true series = "series" tag = "tags" +# Configure syntax highlight +[markup] + [markup.highlight] + style = "rrt" # dark themes: monokai, api, fruity, native, rrt, swapoff + [author] name = "" diff --git a/static/css/default-dark.css b/static/css/default-dark.css index e04f0b5..94b29b4 100644 --- a/static/css/default-dark.css +++ b/static/css/default-dark.css @@ -48,6 +48,14 @@ code { background-color: transparent; } +/* + * syntax highlight code block table backround + * looks better if overwritten. + * */ +.post .content .highlight table { + background-color: #202020 !important; +} + blockquote { background: var(--main-bg-color); border-left: 3px solid var(--main-sec); |