Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gyorb/hugo-dusk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGyorgy Orban <o.gyorgy@gmail.com>2020-01-12 00:54:26 +0300
committerGyorgy Orban <o.gyorgy@gmail.com>2020-01-12 02:26:43 +0300
commit1f3fb7b881a52011d0fd6351ad9c317018899c70 (patch)
tree76964e7b39230660c27c413f8a00474d960e76ea
parentde2ea41b2af104ddfb355da71121cd68fdc408f5 (diff)
update syntax highlight configuration and background style
-rw-r--r--README.md8
-rw-r--r--exampleSite/config.toml5
-rw-r--r--static/css/default-dark.css8
3 files changed, 17 insertions, 4 deletions
diff --git a/README.md b/README.md
index 45ed232..5252cf2 100644
--- a/README.md
+++ b/README.md
@@ -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);