diff options
author | DSRKafuU | 2020-06-19 00:40:29 +0800 |
---|---|---|
committer | GitHub | 2020-06-19 00:40:29 +0800 |
commit | ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353 (patch) | |
tree | 65938a770dbb2c02f7028204d3cf77ca52990b97 /README.md | |
parent | 1a9b75fa6216334d0a9a1c379dba212888ce6f76 (diff) | |
parent | edbbfabae66d75217a95e3e0a054548502ebf2d9 (diff) | |
download | hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.tar.gz hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.tar.bz2 hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.zip |
Merge pull request #34 from amzrk2/dev
Pre-release v2.1.0
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 49 |
1 files changed, 31 insertions, 18 deletions
@@ -6,7 +6,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markd [English](https://github.com/amzrk2/hugo-theme-fuji#readme) | [įŽäŊ䏿](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README_CN.md) -After the release of v2, **there may be major changes in the image lazyload shortcode** to make it easier to use.If you want to change the color scheme, please check [đ§ Advanced configuration](#-advanced-configuration). +After the release of v2, **there may be major changes in the image lazyload shortcode** to make it easier to use. If you want to change the color scheme, please check [đ§ Advanced configuration](#-advanced-configuration). Now supported i18n langs: en, zh-hans, zh-hant, ja, nl. Check the i18n folder to add more languages. @@ -16,9 +16,9 @@ Now supported i18n langs: en, zh-hans, zh-hant, ja, nl. Check the i18n folder to - [â Notice](#-notice) - [đŖ Getting started](#-getting-started) - [đ Update the theme](#-update-the-theme) -- [âī¸ Configration](#%EF%B8%8F-configration) +- [âī¸ Configuration](#%EF%B8%8F-configuration) - [đ¨ Favicon](#-favicon) - - [â In-post license, comments und toc](#-in-post-license-comments-und-toc) + - [â License, toc und comments](#-license-toc-und-comments) - [đĩ APlayer](#-aplayer) - [đˇ Image zoom and lazyload settings](#-image-zoom-and-lazyload-settings) - [â Markdown render hook](#-markdown-render-hook) @@ -30,7 +30,7 @@ Now supported i18n langs: en, zh-hans, zh-hant, ja, nl. Check the i18n folder to ## đģ Live demos -[**Live Demo by Vercel (en)**](https://hugo-theme-fuji-demo.now.sh/) | [My Blog by Coding (zh-Hans)](https://blog.amzrk2.cc/) +[**Live Demo (en)**](https://hugo-theme-fuji-demo.now.sh/) | [My Blog (zh-Hans)](https://blog.amzrk2.cc/)  @@ -68,7 +68,7 @@ Inside the folder of your Hugo site run: $ git submodule update --remote --merge ``` -## âī¸ Configration +## âī¸ Configuration ### đ¨ Favicon @@ -76,21 +76,26 @@ Create `[SITEROOT]/layouts/partials/favicon.html` to cover theme's favicon. You can generate your favicons in [realfavicongenerator.net](https://realfavicongenerator.net/). -### â In-post license, comments und toc +### â License, toc und comments -You can set variables below in post's front matter to disable them: +Globally in `config.toml`: ```toml -noLicense = true # Do not show license in this post -noComments = true # Do not show comments in this post -noToc = true # Do not show toc in this post +showLicense = true # Enable or disable license for all post +showToc = true # Enable or disable ToC for all post ``` -Or you can disable these globally, set these below to false or comment it in your `config.toml`: +Or in posts' front matter: ```toml -showLicense = false -showToc = false +showLicense = true # Enable or disable license for this specific post +showToc = true # Enable or disable ToC for this specific post +``` + +To disable comment area for specific post, add this in front matter: + +```toml +showComments = false # Do not show comments in this post ``` ### đĩ APlayer @@ -98,10 +103,16 @@ showToc = false In-post APlayer supported, you can set these variables in post's front matter: ```toml -playerName = "..." # Audio title or name -playerArtist = "..." # Audio artist -playerURL = "..." # Audio URL, support aac, mp3, wav and ogg -playerCover = "..." # Audio cover +[[player]] + playerName = "..." # Audio title or name + playerArtist = "..." # Audio artist + playerURL = "..." # Audio URL, support aac, mp3, wav and ogg + playerCover = "..." # Audio cover +[[player]] + playerName = "..." + playerArtist = "..." + playerURL = "..." + playerCover = "..." ``` ### đˇ Image zoom and lazyload settings @@ -222,9 +233,11 @@ The theme is released under the ```Apache License 2.0```, for more information r - [Primer CSS - MIT](https://github.com/primer/css/blob/master/LICENSE) - [APlayer - MIT](https://github.com/MoePlayer/APlayer/blob/master/LICENSE) - [lazysizes - MIT](https://github.com/aFarkas/lazysizes/blob/gh-pages/LICENSE) -- [medium-zoom - MIT](https://github.com/francoischalifour/medium-zoom/blob/master/LICENSE) - [DisqusJS - MIT](https://github.com/SukkaW/DisqusJS/blob/master/LICENSE) - [ionicons - MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) +- [Fuse.js - Apache-2.0](https://github.com/krisk/Fuse/blob/master/LICENSE) +- [cloudflare-workers-async-google-analytics - MIT](https://github.com/SukkaW/cloudflare-workers-async-google-analytics/blob/master/LICENSE) +- [art-template - MIT](https://github.com/aui/art-template/blob/master/LICENSE) > Š 2020 DSRKafuU(amzrk2) [Twitter @amzrk2](https://twitter.com/amzrk2) [GitHub @amzrk2](https://github.com/amzrk2) |