From 61282df29e9d3ff01454fb5943359ecfcc53e1aa Mon Sep 17 00:00:00 2001 From: "Joway.CI" Date: Wed, 20 Jan 2021 04:57:08 +0000 Subject: rm github markdown and highlight --- README.md | 26 ++ layouts/partials/head.html | 5 - layouts/partials/scripts.html | 2 - static/css/github-markdown.css | 566 -------------------------------- static/css/github-markdown.min.css | 1 - static/css/highlight/tomorrow-night.css | 75 ----- static/css/highlight/tomorrow.min.css | 1 - static/css/index.css | 211 ++++++------ 8 files changed, 129 insertions(+), 758 deletions(-) delete mode 100644 static/css/github-markdown.css delete mode 100644 static/css/github-markdown.min.css delete mode 100644 static/css/highlight/tomorrow-night.css delete mode 100644 static/css/highlight/tomorrow.min.css diff --git a/README.md b/README.md index 8645c27..76ac66d 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,22 @@ theme = "yinyang" ## Configuration +### Makrup for hightlight and markdown + +``` +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.highlight] + guessSyntax = true + noClasses = true + style = "bw" + tabWidth = 2 +``` + +Hightlight style "bw" is a black-white hightlight theme, which is recommended for this project. + ### Head Title ``` @@ -119,6 +135,16 @@ title = "Joway's Blog" theme = "yinyang" DefaultContentLanguage = "cn" +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.highlight] + guessSyntax = true + noClasses = true + style = "bw" + tabWidth = 2 + [author] name = "Joway" homepage = "https://joway.io/" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1636ed4..4a5a6b3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,7 +11,6 @@ {{- if .Site.Params.staticPrefix -}} {{- end -}} - {{- if .Site.Params.favicon -}} @@ -41,10 +40,6 @@ {{ end }} - {{ if not .IsHome -}} - - - {{- end }} {{ range .Site.Params.extraCSSFiles -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 2d7610f..71db1e0 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -9,8 +9,6 @@ {{ end }}