diff --git a/README.md b/README.md
index de6216d..ba8c9ea 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,14 @@ Kita is a clean, elegant and simple blog theme for Zola.
This theme is based on Hugo theme [hugo-paper](https://github.com/nanxiaobei/hugo-paper) with some features added.
+[Demo](https://st1020.github.io/kita/)
+

## Features
- Easy to use and modify
-- No preset limits (This theme does not limit your content directory structure, taxonomy names, etc. Applicable to all zola sites.)
+- No preset limits (This theme does not limit your content directory structure, taxonomy names, etc. It's applicable to all zola sites.)
- Dark mode
- Responsive design
- Social icons
diff --git a/config.toml b/config.toml
index 16783dd..3c3667f 100644
--- a/config.toml
+++ b/config.toml
@@ -42,6 +42,17 @@ extra_syntaxes_and_themes = []
# See below for list of allowed values.
highlight_theme = "base16-ocean-dark"
+# The Kita theme style config.
+[extra]
+# Enable KaTex math formula support globally.
+math = false
+# Enable mermaid support globally.
+mermaid = false
+# Enable comment support globally.
+comment = false
+# Disable the post navigation.
+disable_post_navigation = false
+
[extra.style]
# The custom background color.
# bg_color = ""
@@ -52,18 +63,22 @@ highlight_theme = "base16-ocean-dark"
# Enable header blur.
# header_blur = true
-# The custom header color.
+# The custom header color, only available when `header_blur` is false.
# header_color = ""
-# The custom header color in dark mode.
+# The custom header color in dark mode, only available when `header_blur` is false.
# header_dark_color = ""
+# The profile on home page.
[extra.profile]
name = "Kita - Zola Theme"
bio = "Kita is a clean, elegant and simple blog theme for Zola."
+# The URL of avatar.
avatar_url = "icons/github.svg"
+# Invert color in dark mode.
avatar_invert = true
+# The social icons below the profile on the home page.
[[extra.profile.social]]
name = "github"
url = "https://github.com/st1020/kita"
@@ -76,6 +91,7 @@ url = "https://github.com/st1020/kita"
name = "rss"
url = "$BASE_URL/atom.xml"
+# The top menu.
[[extra.menu]]
name = "Projects"
url = "$BASE_URL/projects"
@@ -92,7 +108,23 @@ url = "$BASE_URL/tags"
name = "About"
url = "$BASE_URL/about"
+# The page footer options.
[extra.footer]
since = 2020
license = "CC BY-SA 4.0"
license_url = "https://creativecommons.org/licenses/by-sa/4.0/deed"
+
+# The giscus comment options, only available when comment is enabled.
+[extra.giscus]
+repo = ""
+repo_id = ""
+category = ""
+category_id = ""
+mapping = "pathname"
+strict = 1
+reactions_enabled = 0
+emit_metadata = 0
+input_position = "top"
+theme = "light"
+lang = "en"
+loading = "lazy"
diff --git a/content/markdown-syntax.md b/content/markdown-syntax.md
index d707de3..30c419f 100644
--- a/content/markdown-syntax.md
+++ b/content/markdown-syntax.md
@@ -1,15 +1,14 @@
+++
title = "Markdown Syntax Guide"
-date = "2019-03-11"
+date = "2022-10-20"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
[taxonomies]
tags = ["markdown", "css", "html"]
[extra]
-mermaid = true
cover_image = "images/markdown-content.png"
+++
-This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola theme.
+This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Kita theme.
@@ -131,57 +130,3 @@ Xn + Yn = Zn
Press CTRL+ALT+Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
-
-## Mermaid
-
-{% mermaid() %}
-
-graph TD;
-A-->B;
-A-->C;
-B-->D;
-C-->D;
-
-{% end %}
-
-{% mermaid() %}
-
-```
-sequenceDiagram
- participant Alice
- participant Bob
- Alice->>John: Hello John, how are you?
- loop Healthcheck
- John->>John: Fight against hypochondria
- end
- Note right of John: Rational thoughts
prevail!
- John-->>Alice: Great!
- John->>Bob: How about you?
- Bob-->>John: Jolly good!
-```
-
-{% end %}
-
-{% mermaid() %}
-
-```mermaid
-gitGraph
- commit
- commit
- branch develop
- commit
- commit
- commit
- checkout main
- commit
- commit
-```
-
-{% end %}
-
-## Admonition
-
-{% admonition(type="tip", title="Tip") %}
-
-This is a tip.
-{% end %}
diff --git a/content/math-typesetting.md b/content/math-typesetting.md
index 6f3152e..8720d06 100644
--- a/content/math-typesetting.md
+++ b/content/math-typesetting.md
@@ -1,6 +1,6 @@
+++
title = "Math Typesetting"
-date = "2019-03-08"
+date = "2022-10-20"
description = "A brief guide to setup KaTeX"
extra.math = true
+++
@@ -9,18 +9,28 @@ Kita theme support $\LaTeX$ mathematical formulas using [KaTeX](https://katex.or
-- To enable KaTeX globally set the parameter `extra.math` to `true` in a project's configuration
-- To enable KaTeX on a per page basis include the parameter `extra.math = true` in content files
+- To enable KaTeX globally, set the parameter `extra.math` to `true` in a project's configuration.
+- To enable KaTeX on a per page basis, include the parameter `extra.math = true` in the frontmatter of content files.
-**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
+**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html).
### Examples
-
-Inline math: $(varphi = dfrac{1+sqrt5}{2}= 1.6180339887…)$ -
+#### Inline math -Block math: +```markdown +When $x = \pi$, Euler's formula may be rewritten as $e^{i \pi} + 1 = 0$. +``` + +When $x = \pi$, Euler's formula may be rewritten as $e^{i \pi} + 1 = 0$. + +#### Block math + +```markdown +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ +``` $$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } diff --git a/content/placeholder-6.md b/content/placeholder-6.md deleted file mode 100644 index 55c6831..0000000 --- a/content/placeholder-6.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "Placeholder Text 6" -date = "2023-10-20" -description = "Lorem Ipsum Dolor Si Amet" -[taxonomies] -tags = ["markdown", "text"] -+++ - -Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. - -1. Exierant elisi ambit vivere dedere -2. Duce pollice -3. Eris modo -4. Spargitque ferrea quos palude - -Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. - -1. Comas hunc haec pietate fetum procerum dixit -2. Post torum vates letum Tiresia -3. Flumen querellas -4. Arcanaque montibus omnes -5. Quidem et - -# Vagus elidunt - - - -[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) - -## Mane refeci capiebant unda mulcebat - -Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. - -Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. - -Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, _oculos nomen_ non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. diff --git a/content/placeholder-text.md b/content/placeholder-text.md deleted file mode 100644 index b9c9a4e..0000000 --- a/content/placeholder-text.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "Placeholder Text" -date = "2019-03-09" -description = "Lorem Ipsum Dolor Si Amet" -[taxonomies] -tags = ["markdown", "text"] -+++ - -Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. - -1. Exierant elisi ambit vivere dedere -2. Duce pollice -3. Eris modo -4. Spargitque ferrea quos palude - -Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. - -1. Comas hunc haec pietate fetum procerum dixit -2. Post torum vates letum Tiresia -3. Flumen querellas -4. Arcanaque montibus omnes -5. Quidem et - -# Vagus elidunt - - - -[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) - -## Mane refeci capiebant unda mulcebat - -Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. - -Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. - -Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, _oculos nomen_ non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. diff --git a/content/shortcodes.md b/content/shortcodes.md new file mode 100644 index 0000000..78162be --- /dev/null +++ b/content/shortcodes.md @@ -0,0 +1,158 @@ ++++ +title = "Shortcodes" +date = "2022-10-20" +description = "The Kita theme shortcodes." +[taxonomies] +tags = ["markdown", "css", "html"] +[extra] +mermaid = true ++++ + +The Kita theme providers multiple shortcodes. + +Never heard of shortcodes? See [Zola documentation](https://www.getzola.org/documentation/content/shortcodes/) for more information. + +## Mermaid + +To use Mermaid in your page, you have to set `extra.mermaid = true` in the frontmatter of page. + +```markdown ++++ +title = "Your page title" + +[extra] +mermaid = true ++++ +``` + +Then you can use the `mermaid()` shortcodes like: + +```markdown +{%/* mermaid() */%} + +graph TD; +A-->B; +A-->C; +B-->D; +C-->D; + +{%/* end */%} +``` + +This will be rendered as: + +{% mermaid() %} + +graph TD; +A-->B; +A-->C; +B-->D; +C-->D; + +{% end %} + +In addition, you can use code block inside `mermaid()` shortcodes and the code block will be ignored. + +The code block prevents formatter from breaking mermaid's formatting. + +````markdown +{%/* mermaid() */%} + +```mermaid +sequenceDiagram + participant Alice + participant Bob + Alice->>John: Hello John, how are you? + loop Healthcheck + John->>John: Fight against hypochondria + end + Note right of John: Rational thoughts