diff options
author | weru <onewesh@gmail.com> | 2019-12-31 16:38:43 +0300 |
---|---|---|
committer | weru <onewesh@gmail.com> | 2019-12-31 16:38:43 +0300 |
commit | 1b401a280424cecd6284fe89ad76077c7ebfb9ac (patch) | |
tree | f3cae608776eea91c7e053f172e36cc0b19ef971 | |
parent | 29c6a9e7772943dccb4638ee4dd66e6adbfcb8ac (diff) |
highlight chroma support
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | exampleSite/config.toml | 14 |
2 files changed, 17 insertions, 0 deletions
@@ -13,6 +13,7 @@ All the templates herein use *grid css*, *flexbox* & *vanilla js*. You may,howev * Responsive * Deeplinks * Dark Mode +* Syntax highlighting ### Deeplinks @@ -64,6 +65,8 @@ If the user wants to opt in or out of darkmode, there's a UI control for that to |--- | ---| | ![404 page](https://github.com/onweru/newsroom/blob/master/images/syntax.png) | ![404 page on dark Mode](https://github.com/onweru/newsroom/blob/master/images/syntax-dark.png)| +Depending on your fancy, you can opt to [use Chroma](./exampleSite/config.toml#L17-L27). + ### I want to use disqus Some folks may want to use disqus on their site. In fact, there [was an issue](https://github.com/onweru/newsroom/issues/2) for that express purpose. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1aa8a83..b1cdf50 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,6 +12,20 @@ pygmentsCodefencesGuessSyntax = true pygmentsUseClasses=true pygmentsOptions = "linenos=table" +# Alternatively, you can use chroma instead of pigments +# to do so comment or delete the following lines 11 ~ 14 and uncomment lines 17 ~ 27 +# [markup] +# [markup.highlight] +# codeFences = true +# guessSyntax = false +# hl_Lines = "" +# lineNoStart = 1 +# lineNos = true +# lineNumbersInTable = true +# noClasses = false +# # style = "monokai" +# tabWidth = 2 + # If you want to use disqus, uncomment the line below # disqusShortname = "yourdiscussshortname" |