From dbfdecef828af7a24e31036c1f43b45c7df86979 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 8 Jun 2020 09:23:53 +0200 Subject: [PATCH] Update config, enable code highlighting --- assets/css/syntax.css | 82 +++++++++++++++++++++++++++++++++++++++++++ config.toml | 17 ++++++++- 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 assets/css/syntax.css diff --git a/assets/css/syntax.css b/assets/css/syntax.css new file mode 100644 index 0000000..7f514e0 --- /dev/null +++ b/assets/css/syntax.css @@ -0,0 +1,82 @@ +/* Background */ .chroma { color: #586e75; background-color: #eee8d5 } +/* Other */ .chroma .x { } +/* Error */ .chroma .err { } +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } +/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } +/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* Keyword */ .chroma .k { color: #859900 } +/* KeywordConstant */ .chroma .kc { color: #859900; font-weight: bold } +/* KeywordDeclaration */ .chroma .kd { color: #859900 } +/* KeywordNamespace */ .chroma .kn { color: #dc322f; font-weight: bold } +/* KeywordPseudo */ .chroma .kp { color: #859900 } +/* KeywordReserved */ .chroma .kr { color: #859900 } +/* KeywordType */ .chroma .kt { color: #859900; font-weight: bold } +/* Name */ .chroma .n { color: #268bd2 } +/* NameAttribute */ .chroma .na { color: #268bd2 } +/* NameBuiltin */ .chroma .nb { color: #cb4b16 } +/* NameBuiltinPseudo */ .chroma .bp { color: #268bd2 } +/* NameClass */ .chroma .nc { color: #cb4b16 } +/* NameConstant */ .chroma .no { color: #268bd2 } +/* NameDecorator */ .chroma .nd { color: #268bd2 } +/* NameEntity */ .chroma .ni { color: #268bd2 } +/* NameException */ .chroma .ne { color: #268bd2 } +/* NameFunction */ .chroma .nf { color: #268bd2 } +/* NameFunctionMagic */ .chroma .fm { color: #268bd2 } +/* NameLabel */ .chroma .nl { color: #268bd2 } +/* NameNamespace */ .chroma .nn { color: #268bd2 } +/* NameOther */ .chroma .nx { color: #268bd2 } +/* NameProperty */ .chroma .py { color: #268bd2 } +/* NameTag */ .chroma .nt { color: #268bd2; font-weight: bold } +/* NameVariable */ .chroma .nv { color: #268bd2 } +/* NameVariableClass */ .chroma .vc { color: #268bd2 } +/* NameVariableGlobal */ .chroma .vg { color: #268bd2 } +/* NameVariableInstance */ .chroma .vi { color: #268bd2 } +/* NameVariableMagic */ .chroma .vm { color: #268bd2 } +/* Literal */ .chroma .l { color: #2aa198 } +/* LiteralDate */ .chroma .ld { color: #2aa198 } +/* LiteralString */ .chroma .s { color: #2aa198 } +/* LiteralStringAffix */ .chroma .sa { color: #2aa198 } +/* LiteralStringBacktick */ .chroma .sb { color: #2aa198 } +/* LiteralStringChar */ .chroma .sc { color: #2aa198 } +/* LiteralStringDelimiter */ .chroma .dl { color: #2aa198 } +/* LiteralStringDoc */ .chroma .sd { color: #2aa198 } +/* LiteralStringDouble */ .chroma .s2 { color: #2aa198 } +/* LiteralStringEscape */ .chroma .se { color: #2aa198 } +/* LiteralStringHeredoc */ .chroma .sh { color: #2aa198 } +/* LiteralStringInterpol */ .chroma .si { color: #2aa198 } +/* LiteralStringOther */ .chroma .sx { color: #2aa198 } +/* LiteralStringRegex */ .chroma .sr { color: #2aa198 } +/* LiteralStringSingle */ .chroma .s1 { color: #2aa198 } +/* LiteralStringSymbol */ .chroma .ss { color: #2aa198 } +/* LiteralNumber */ .chroma .m { color: #2aa198; font-weight: bold } +/* LiteralNumberBin */ .chroma .mb { color: #2aa198; font-weight: bold } +/* LiteralNumberFloat */ .chroma .mf { color: #2aa198; font-weight: bold } +/* LiteralNumberHex */ .chroma .mh { color: #2aa198; font-weight: bold } +/* LiteralNumberInteger */ .chroma .mi { color: #2aa198; font-weight: bold } +/* LiteralNumberIntegerLong */ .chroma .il { color: #2aa198; font-weight: bold } +/* LiteralNumberOct */ .chroma .mo { color: #2aa198; font-weight: bold } +/* Operator */ .chroma .o { } +/* OperatorWord */ .chroma .ow { color: #859900 } +/* Punctuation */ .chroma .p { } +/* Comment */ .chroma .c { color: #93a1a1; font-style: italic } +/* CommentHashbang */ .chroma .ch { color: #93a1a1; font-style: italic } +/* CommentMultiline */ .chroma .cm { color: #93a1a1; font-style: italic } +/* CommentSingle */ .chroma .c1 { color: #93a1a1; font-style: italic } +/* CommentSpecial */ .chroma .cs { color: #93a1a1; font-style: italic } +/* CommentPreproc */ .chroma .cp { color: #93a1a1; font-style: italic } +/* CommentPreprocFile */ .chroma .cpf { color: #93a1a1; font-style: italic } +/* Generic */ .chroma .g { color: #d33682 } +/* GenericDeleted */ .chroma .gd { color: #d33682 } +/* GenericEmph */ .chroma .ge { color: #d33682 } +/* GenericError */ .chroma .gr { color: #d33682 } +/* GenericHeading */ .chroma .gh { color: #d33682 } +/* GenericInserted */ .chroma .gi { color: #d33682 } +/* GenericOutput */ .chroma .go { color: #d33682 } +/* GenericPrompt */ .chroma .gp { color: #d33682 } +/* GenericStrong */ .chroma .gs { color: #d33682 } +/* GenericSubheading */ .chroma .gu { color: #d33682 } +/* GenericTraceback */ .chroma .gt { color: #d33682 } +/* GenericUnderline */ .chroma .gl { color: #d33682 } +/* TextWhitespace */ .chroma .w { } diff --git a/config.toml b/config.toml index a5eb5af..79cc9aa 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,19 @@ baseURL = "https://netflux.io/blog/" -languageCode = "en-us" +languageCode = "en-gb" title = "netflux.io" theme = "etch" + +enableInlineShortcodes = true +pygmentsCodeFences = true +pygmentsUseClasses = true + +[params] + dark = "off" + highlight = true + +[permalinks] + "/post" = "/:year/:month/:slug" + +[markup.goldmark.renderer] + # Allows HTML in Markdown + unsafe = true