From e6afd04368f56af57b77f71be4dda5a4d9279a64 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 2 Jun 2020 12:57:59 +0800 Subject: CDN support added --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index fbb4f1d..27a93f5 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markd - [Image zoom and lazyload settings](#image-zoom-and-lazyload-settings) - [Markdown render hook](#markdown-render-hook) - [Disqus](#disqus) + - [Load main CSS und JS from CDN](#load-main-css-und-js-from-cdn) - [Advanced configuration](#advanced-configuration) - [Report und contributing](#report-und-contributing) - [License](#license) @@ -143,6 +144,10 @@ this.page.identifier = {{ $.File.ContentBaseName }}; Use the `[SITEROOT]/layouts/partials/comment-disqus.html` to cover `themes/fuji/layouts/partials/comment-disqus.html`. Then you can customize the url and identifier, or switch to DisqusJS for accessing from Mainland China. If you want to use DisqusJS, please also remember to set `useDisqusJS = true` in your `config.toml` to load CSS. +### Load main CSS und JS from CDN + +Without the demand of custmize the CSS, you can uncomment `mainAssetsCDN = true` in `config.toml` to load `fuji.min.css` and `fuji.min.js` from jsDelivr. + ### Advanced configuration See [Report und contributing](#report-und-contributing). -- cgit v1.2.3