diff options
author | amzrk2 | 2020-05-30 12:54:18 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-30 12:54:18 +0800 |
commit | f14d5fa8f78a5756866002591aa479f8ccf5b582 (patch) | |
tree | 0d3c7f625146285115b127dd604c73ab0408760b /README.md | |
parent | cf395763b26103b1b147bc40d8a3126e92996b97 (diff) | |
download | hugo-theme-fuji-f14d5fa8f78a5756866002591aa479f8ccf5b582.tar.gz hugo-theme-fuji-f14d5fa8f78a5756866002591aa479f8ccf5b582.tar.bz2 hugo-theme-fuji-f14d5fa8f78a5756866002591aa479f8ccf5b582.zip |
Custom highlight.js support
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -4,7 +4,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markd     -[English](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README.md) | [真正的白话文](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README_CN.md) +[English](https://github.com/amzrk2/hugo-theme-fuji#readme) | [白话文](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README_CN.md) ## Table of contents @@ -153,7 +153,13 @@ $mono-font: 'Cascadia Code', 'SF Mono', 'Fira Code', 'Consolas', $body-font; $body-font-size: 16px; ``` -## Disqus identifier +### Custom highlight.js language support + +Set `customHighlight` to `true` in `config.toml`, then set `customHighlightURL` to the path of your own `highlight.js`. + +Check [Getting highlight.js](https://highlightjs.org/download/) to download you own bundle of highlight.js. + +### Disqus identifier Use the `[SITEROOT]/layouts/partials/comment-disqus.html` to cover `themes/fuji/layouts/partials/comment-disqus.html`. |