From dfb6e1f80754c1c8f2d4d332c5292319f008a67b Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 27 May 2020 22:53:13 +0800 Subject: v2 original port --- exampleSite/config.toml | 110 ------------------------------------------------ 1 file changed, 110 deletions(-) delete mode 100644 exampleSite/config.toml (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index 6241b27..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,110 +0,0 @@ -baseURL = "https://example.com" -title = "Fuji Demo" -theme = "fuji" -hasCJKLanguage = true -enableEmoji = true -enableRobotsTXT = true -disableKinds = ["taxonomyTerm"] - -## Change this two to switch between different language -languageCode = "en" # For RSS, view https://www.rssboard.org/rss-language-codes -defaultContentLanguage = "en" # For HTML page, now support: en, zh-hans, zh-hant, ja, nl - -summaryLength = 100 # Custom cummary length, add in post file to custom split point -paginate = 10 - -# googleAnalytics = "UA-000000000-0" # Set your Google Analytics UA here, or comment out to disable - -[permalinks] - post = "/:filename/" # Custom post links, e.g. "/:year/:month/:title/" - -[params] - author = "DSRKafuU" # You can also set author in post front matter individually - subTitle = "This is a Sub Title" - - # Word counter and read time indicator in post metadata - showWordCounter = true - # showReadTime = true - - # Open Graph & Twitter Card variables - # You can also set description and images in post front matter individually - description = "A minimal hugo theme powered by Primer CSS." - images = ["img/og.png"] # This will use the image called og.png in static/img folder - - # Posts shown in homepage - mainSections = ["post"] - - # Bangumi image chart id - # bgmImageChart = "000000" - - # Show scroll to top button - scrollTop = true - - # License - license = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)" - licenseLink = "http://creativecommons.org/licenses/by-nc-sa/4.0/" - - # Comments - # utterances, see: https://utteranc.es/ - # utterancesRepo = "[ENTER REPO HERE]" - # utterancesIssueTerm = "pathname" - # utterancesTheme = "github-light" - - # Disqus, see: https://disqus.com/admin/install/platforms/universalcode/ - # disqusComment = false - # disqusShortname = "[ENTER YOUR DISQUS SHORTNAME HERE]" - - # custom lazyload placeholder - # 16:9 - lazyPlaceholder = "/lazyload/dsrca_loading_480x270.svg" - # 32:9 - lazyPlaceholderRow = "/lazyload/dsrca_loading_960x270.svg" - # 8:9 - lazyPlaceholderCol = "/lazyload/dsrca_loading_480x540.svg" - - # enable this to fetch css & js from jsDelivr CDN - useCDN = true - - # site global fixed mode aplayer - # playerName = "..." # Audio title or name - # playerArtist = "..." # Audio artist - # playerURL = "..." # Audio URL, support aac, mp3, wav and ogg - # playerCover = "..." # Audio cover - -[markup] - [markup.highlight] - style = "monokailight" - - [markup.tableOfContents] - startLevel = 2 - endLevel = 3 - -[taxonomies] - tag = "tags" - -[menu] - [[menu.nav]] - name = "Home" - url = "/" - weight = 1 - [[menu.nav]] - name = "Archives" - url = "/archives/" - weight = 2 - [[menu.nav]] - name = "About" - url = "/about/" - weight = 3 - - [[menu.link]] - name = "GitHub" - url = "https://github.com/amzrk2" - weight = 1 - [[menu.link]] - name = "Twitter" - url = "https://twitter.com/amzrk2" - weight = 2 - [[menu.link]] - name = "bilibili" - url = "https://space.bilibili.com/19767474" - weight = 3 -- cgit v1.2.3 From 102399b0f8273bc7bb8c3cd881304d1fc01ee2fe Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 4 Jun 2020 18:21:46 +0800 Subject: Update exampleSite --- exampleSite/config.toml | 116 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 exampleSite/config.toml (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml new file mode 100644 index 0000000..c54812d --- /dev/null +++ b/exampleSite/config.toml @@ -0,0 +1,116 @@ +baseURL = "https://example.com" +title = "Hugo Theme Fuji" + +theme = "fuji" +hasCJKLanguage = true +enableEmoji = true +enableRobotsTXT = true +disableKinds = ["taxonomyTerm"] + +## Change this two to switch between different language +languageCode = "en" # For RSS, view https://www.rssboard.org/rss-language-codes +defaultContentLanguage = "en" # For HTML page, now support: en, zh-hans, zh-hant, ja, nl + +summaryLength = 100 # Custom cummary length, add in post file to custom split point +paginate = 10 + +# googleAnalytics = "UA-000000000-0" # Set your Google Analytics UA here + +[permalinks] + post = "/:section/:filename/" # Custom post links, e.g. "/:year/:month/:title/" + +[params] + author = "DSRKafuU" # You can also set author in post front matter individually + subTitle = "A minimal Hugo theme." + + # Use CloudFlare Workers to accelerate the Google Analytics + # If you are using this please comment the googleAnalytics above + # Check https://github.com/SukkaW/cloudflare-workers-async-google-analytics for more details + # googleAnalyticsTid = "UA-000000000-0" + # googleAnalyticsRoute = "https://*.*.workers.dev/" + + # Word counter and read time indicator in post metadata + showWordCounter = true + showReadTime = false + # License at the end of each post + showLicense = true + showToc = true + + # Open Graph & Twitter Card variables + # You can also set description and images in post front matter individually + description = "A minimal Hugo theme with nice theme color." + images = ["img/og.png"] # This will use the image called og.png in static/img folder + + # Posts shown in homepage + mainSections = ["post"] + + # Bangumi image chart id + # bgmImageChart = "000000" + + # License + license = "CC BY-NC-SA 4.0" + licenseLink = "http://creativecommons.org/licenses/by-nc-sa/4.0/" + + # Comments + # utterances, see: https://utteranc.es/ + # utterancesRepo = "*/*" + # utterancesIssueTerm = "pathname" + + # Disqus, see: https://disqus.com/admin/install/platforms/universalcode/ + # disqusShortname = "*********" + # Also use DisqusJS for accessing from Mainland China, see: https://github.com/SukkaW/DisqusJS + # If you want to set multiple api key, see theme's README for more details + # disqusJSApi = "https://*********/" + # disqusJSApikey = "**********" + + # custom lazyload placeholder + # 16:9 + lazyPlaceholder = "/assets/lazyload/dsrca_loading_480x270.svg" + # 32:9 + lazyPlaceholderRow = "/assets/lazyload/dsrca_loading_960x270.svg" + # 8:9 + lazyPlaceholderCol = "/assets/lazyload/dsrca_loading_480x540.svg" + + # Load `fuji.min.css` and `fuji.min.js` from jsDelivr + # mainAssetsCDN = true + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true # Enable user to embed HTML snippets in Markdown content + [markup.highlight] + codeFences = false # Disable Hugo's code highlighter + + [markup.tableOfContents] + startLevel = 2 + endLevel = 3 + +[taxonomies] + tag = "tags" + +[menu] + [[menu.nav]] + name = "Home" + url = "/" + weight = 1 + [[menu.nav]] + name = "Archives" + url = "/archives/" + weight = 2 + [[menu.nav]] + name = "About" + url = "/about/" + weight = 3 + + [[menu.link]] + name = "GitHub" + url = "https://github.com/amzrk2" + weight = 1 + [[menu.link]] + name = "Twitter" + url = "https://twitter.com/amzrk2" + weight = 2 + [[menu.link]] + name = "bilibili" + url = "https://space.bilibili.com/19767474" + weight = 3 -- cgit v1.2.3 From 914bf54c493b299268c293be33a8babf99b1cce2 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 4 Jun 2020 20:08:43 +0800 Subject: Custom scss variable support --- exampleSite/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c54812d..72e22b7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -71,8 +71,8 @@ paginate = 10 # 8:9 lazyPlaceholderCol = "/assets/lazyload/dsrca_loading_480x540.svg" - # Load `fuji.min.css` and `fuji.min.js` from jsDelivr - # mainAssetsCDN = true + # Use Hugo Pipes in Hugo Extended Version to compile SCSS + # useHugoPipes = true [markup] [markup.goldmark] -- cgit v1.2.3