From d0b69d04bfbea952ea9857ab454432a8b84f3939 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Thu, 9 Apr 2020 10:58:46 +0200 Subject: [PATCH] remove cloudflare cookies, fix warnings hugo 0.6.x --- config.toml | 22 ++++++++++++++++------ layouts/partials/css.html | 3 --- layouts/partials/header.html | 18 +++++------------- layouts/shortcodes/mermaid.html | 1 - 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/config.toml b/config.toml index 61fd2075..5e109125 100644 --- a/config.toml +++ b/config.toml @@ -2,8 +2,6 @@ languageCode = "en-us" title = "Brain Baking" baseurl = "https://brainbaking.com/" theme = "minimal" -pygmentsUseClasses = true -pygmentCodeFences = true googleAnalytics = "UA-45748221-1" publishDir = "docs" enableEmoji = true @@ -15,6 +13,9 @@ enableGitInfo = true tag = "tags" [params] + # disabled to get rid of cloudflare cookies + MathJax = false + description = "Freshly baked thought" # see single.html, DisqusShortname also needed disableComments = true @@ -22,9 +23,6 @@ enableGitInfo = true showBorder = true twitter = "woutergroenev" backgroundColor = "white" - highlight = true - highlightStyle = "paraiso-dark" - highlightLanguages = ["cs", "cpp", "scheme", "python", "java", "scala", "javascript", "llvm"] font = "Source Serif Pro" copyright = "No reserved - sharing is caring. Hack away! Brain Baking" @@ -32,8 +30,20 @@ enableGitInfo = true name = "Wouter Groeneveld" email = "wouter.groeneveld@gmail.com" + [markup] - defaultMarkdownHandler = "blackfriday" + defaultMarkdownHandler = "blackfriday" + + [markup.highlight] + codeFences = true + guessSyntax = false + hl_Lines = "" + lineNoStart = 1 + lineNos = false + lineNumbersInTable = true + noClasses = true + style = "arduino" + tabWidth = 4 [[menu.main]] name = "Tech Blog" diff --git a/layouts/partials/css.html b/layouts/partials/css.html index 242f9505..c1f2161a 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -21,9 +21,6 @@ - -{{ if .Site.Params.highlight | default false }} {{ end }} - diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 08a66ac3..6b07c132 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,22 +6,14 @@ {{ .Title }} {{ if .Site.Params.favicon }} - + {{ end }} - {{ partial "css" . }} {{ partial "js" . }} {{ .Hugo.Generator }} - {{ if .RSSLink }} - - + {{ partial "css" . }} {{ partial "js" . }} {{ hugo.Generator }} + {{ with .OutputFormats.Get "RSS" }} + + {{ end }} - - {{ if .Site.Params.MathJax | default true }} - - - {{ end }} - {{ partial "body-open" . }}