Oops!
+404 Not Found
+diff --git a/README.md b/README.md
index 0d4e928..8e90dda 100644
--- a/README.md
+++ b/README.md
@@ -54,8 +54,8 @@ Follow [exampleSite/config.yaml](https://github.com/Mivinci/hugo-theme-minima/bl
| categories | array | category list |
| series | array | series list |
| tags | array | tag list |
-| math | bool | enables math formulas rendering |
-| mermaid | bool | enables flowcharts rendering |
+| math | bool | enables math plugin |
+| diagram | bool | enables diagram plugin |
| comment | bool | enable comment plugin |
| draft | bool | disallow being published |
| link | string | a URL to redirect to |
diff --git a/assets/css/main.scss b/assets/css/main.scss
index 35b3734..32e71ec 100644
--- a/assets/css/main.scss
+++ b/assets/css/main.scss
@@ -37,6 +37,10 @@ main p a {
color: var(--prime);
}
+main p a:hover {
+ text-decoration: underline;
+}
+
@keyframes showup {
from {
opacity: 0;
diff --git a/assets/css/pre.scss b/assets/css/pre.scss
index bcdd9f8..ea1e211 100644
--- a/assets/css/pre.scss
+++ b/assets/css/pre.scss
@@ -34,6 +34,7 @@ hr {
height: 0; /* 1 */
color: inherit; /* 2 */
border-top-width: 1px; /* 3 */
+ border-color: var(--grid, inherit);
}
/*
diff --git a/assets/css/syntax.scss b/assets/css/syntax.scss
index 05169a4..dc1cc99 100644
--- a/assets/css/syntax.scss
+++ b/assets/css/syntax.scss
@@ -1,10 +1,11 @@
-.chroma code {
- color: #d4d4d4;
+.chroma {
+ margin: .5em 0;
+ background-color: #222222;
+ border-radius: 2px;
}
-.chroma {
- background-color: #222222;
- margin: .5em 0;
+.chroma code {
+ color: #d4d4d4;
}
/* LineTableTD */
diff --git a/assets/css/theme.scss b/assets/css/theme.scss
index 35080da..8ed22f8 100644
--- a/assets/css/theme.scss
+++ b/assets/css/theme.scss
@@ -1,13 +1,15 @@
.light {
- --prime: #1691b6;
+ --prime: #3170a7;
--grid: #e1e1e1;
--back: #fff;
--text: #222;
+ --code-back: #fff;
}
.dark {
- --prime: #1691b6;
+ --prime: #3170a7;
--back: #181818;
--text: silver;
--grid: #555;
+ --code-back: #222;
}
\ No newline at end of file
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 28f9f87..b10b658 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -52,10 +52,6 @@ params:
displayDescription: true
# selectable specifies if your post content can be selected.
selectable: true
- # commentOnAllPosts specifies if the chosen comment plugin to be enabled on all
- # post pages. If enabled, those you don't want a comment plugin to work on just
- # set `comment` to false in their front matters.
- commentOnAllPosts: true
# social is an array containing as many as social accounts to be displayed
# in the buttom of every page.
social:
@@ -68,8 +64,19 @@ params:
- name: "rss"
url: "/index.xml"
- # comment specifies a comment plugin.
+ # math plugin
+ math:
+ enable: false
+ provider: katex
+
+ # diagram plugin
+ diagram:
+ enable: false
+ provider: mermaid
+
+ # comment plugin
comment:
+ enable: true
provider: giscus
# check out https://disqus.com/
disqus:
@@ -90,6 +97,7 @@ params:
reactions: true
metadata: false
+
# menu.main is an array containing what is used as the navigator.
menu:
main:
diff --git a/exampleSite/content/mermaid-diagrams.md b/exampleSite/content/mermaid-diagrams.md
index 9e4d1c5..aa2ec17 100644
--- a/exampleSite/content/mermaid-diagrams.md
+++ b/exampleSite/content/mermaid-diagrams.md
@@ -3,7 +3,7 @@ author: Mermaid Team
title: Mermaid Diagrams
date: 2021-07-18T10:52:59+08:00
description: A brief guide to Mermaid syntax.
-mermaid: true
+diagram: true
tags:
- markdown
- mermaid
diff --git a/layouts/404.html b/layouts/404.html
index e69de29..aff5634 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ 404 Not FoundOops!
+