Adjustments to the katex integration.
This commit is contained in:
parent
1b82c48add
commit
5033f3a277
1 changed files with 15 additions and 40 deletions
|
|
@ -247,6 +247,7 @@ params:
|
|||
mainSections: # The sections you want to have listed on the front page.
|
||||
- "section1" # Default to the section with most content if not set.
|
||||
- "section2" # Set to empty if no section should be listed.
|
||||
math: true # Turn on math typesetting with Katex, default false.
|
||||
menuInHeader: true # Move the main menu to the header, default false.
|
||||
microUsername: "" # Your micro.blog username.
|
||||
mobileMenu: true # Turn on a mobile menu on small screens, default false.
|
||||
|
|
@ -793,6 +794,12 @@ Node.js software you need. To install them run:
|
|||
nmp run lint (project + theme)
|
||||
|
||||
|
||||
## Math typesetting with Katex
|
||||
|
||||
Download the latest release from <https://github.com/KaTeX/KaTeX/releases>. Unpack and place the resulting "katex" directory in the root `assets/vendor` directory.
|
||||
|
||||
The resulting path should be `assets/vendor/katex`. Then set the `math` param to true and write some math to be typeset.
|
||||
|
||||
## Getting help
|
||||
|
||||
If you run into an issue that isn't answered by this documentation or the [`exampleSite`](https://github.com/frjo/hugo-theme-zen/tree/main/exampleSite), then visit the [Hugo forum](https://discourse.gohugo.io/). The folks there are helpful and friendly. **Before** asking your question, be sure to read the [requesting help guidelines](https://discourse.gohugo.io/t/requesting-help/9132). Feel free to tag me in your question, my forum username is [@frjo](https://discourse.gohugo.io/u/frjo/summary).
|
||||
|
|
|
|||
Loading…
Reference in a new issue