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

github.com/goodroot/hugo-classic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodroot <9484709+goodroot@users.noreply.github.com>2021-07-04 07:58:16 +0300
committergoodroot <9484709+goodroot@users.noreply.github.com>2021-07-04 07:58:16 +0300
commit5559acaf8680899ac1afa710a88d485dbd7ad718 (patch)
tree4a2975d7a576f5435c326745985c139bec295f91
parent0bb525f5267328b913d534b67fff656c051218ac (diff)
removes hightlight.js
-rw-r--r--exampleSite/config.toml16
-rw-r--r--layouts/partials/header.html3
-rw-r--r--theme.toml20
3 files changed, 26 insertions, 13 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c5ce703..3c3d7d1 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,6 +7,22 @@ languageCode = "en-us"
theme = "hugo-classic"
title = "Classic"
+[markup.goldmark.renderer]
+unsafe = true
+
+[markup.highlight]
+anchorLineNos = false
+codeFences = true
+guessSyntax = false
+hl_Lines = ""
+lineAnchors = ""
+lineNoStart = 1
+lineNos = false
+lineNumbersInTable = true
+noClasses = true
+style = "friendly"
+tabWidth = 4
+
[permalinks]
post = "/post/:year/:month/:day/:slug/"
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index cf0913c..91c9b79 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,9 +1,6 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-light.min.css">
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
- <script>hljs.initHighlightingOnLoad();</script>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
diff --git a/theme.toml b/theme.toml
index 9ca39f4..c020fdc 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,17 +1,17 @@
-name = "Hugo - Classic"
-license = "MIT"
-licenselink = "https://github.com/goodroot/hugo-classic/blob/master/LICENSE.md"
description = "A minimal blog theme, for those who love text. Based off the eXtremely minimal theme by Yihui Xui."
-homepage = "https://goodroot.ca"
-tags = ["minimal", "blog", "personal", "simple", "clean", "starter", "minimalist"]
features = ["blog"]
+homepage = "https://goodroot.ca"
+license = "MIT"
+licenselink = "https://github.com/goodroot/hugo-classic/blob/master/LICENSE.md"
min_version = "0.18"
+name = "Hugo - Classic"
+tags = ["minimal", "blog", "personal", "simple", "clean", "starter", "minimalist", "darkmode"]
[author]
- name = "Kellen Evan Person"
- homepage = "https://goodroot.ca"
+homepage = "https://goodroot.ca"
+name = "Kellen Evan Person"
[original]
- author = "Yihui Xui"
- homepage = "https://xmin.yihui.name/"
- repo = "https://github.com/yihui/hugo-xmin"
+author = "Yihui Xui"
+homepage = "https://xmin.yihui.name/"
+repo = "https://github.com/yihui/hugo-xmin"