From 772d7335d3fb01cfd95a886e6a535f7f7e7ed979 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 20 Apr 2020 16:29:46 +0800 Subject: Add webp checker for dev use --- exampleSite/config.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8a39090..3aa10a7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -61,6 +61,9 @@ paginate = 10 cdnJQueryJS = "https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" cdnProgessJS = "https://cdn.jsdelivr.net/npm/progressbar.js@1.1.0/dist/progressbar.min.js" + # Replace all webp img if there are no fallback set (DEVELOPMENT USE ONLY) + # webpChecker = true + [markup] [markup.highlight] style = "monokailight" -- cgit v1.2.3 From ab5bb96c27dae05d187a566d56d2ff4adafada51 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 20 Apr 2020 17:19:48 +0800 Subject: Apply lazyload to images in markdown content --- exampleSite/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3aa10a7..90e6a87 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -54,7 +54,7 @@ paginate = 10 disqusShortname = "[ENTER YOUR DISQUS SHORTNAME HERE]" # Custom lazyload thumbnail - cdnLazyloadSRC = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr/lazyload/dsr_loading.svg" + cdnLazyloadSRC = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.0.0/lazyload/dsr_loading.svg" # Custom css & js CDN # cdnIntersectionObserverJS = "https://cdn.jsdelivr.net/npm/intersection-observer@0.7.0/intersection-observer.min.js" # Optional cdnVanillaLazyloadJS = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@15.1.1/dist/lazyload.min.js" -- cgit v1.2.3 From 5ac03bbcf2b31fbc279a26eb7889668cb07c8298 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 20 Apr 2020 17:25:15 +0800 Subject: Enable robots.txt by default --- exampleSite/config.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 90e6a87..fd7113c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,6 +3,7 @@ title = "Fuji Demo" theme = "fuji" hasCJKLanguage = true enableEmoji = true +enableRobotsTXT = true disableKinds = ["RSS", "taxonomyTerm"] ## Change this two to switch between different language -- cgit v1.2.3 From 71ae6d1e825fdb782328653f121651dc515b29e9 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 20 Apr 2020 19:08:56 +0800 Subject: Optional lazy image instead of global set --- exampleSite/config.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fd7113c..51e802e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -54,8 +54,14 @@ paginate = 10 disqusComment = false disqusShortname = "[ENTER YOUR DISQUS SHORTNAME HERE]" - # Custom lazyload thumbnail - cdnLazyloadSRC = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.0.0/lazyload/dsr_loading.svg" + # Custom lazyload placeholder + # 16:9 + cdnLazyPlaceholder = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_480x270.svg" + # 32:9 + cdnLazyPlaceholderRow = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_960x270.svg" + # 8:9 + cdnLazyPlaceholderCol = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_480x540.svg" + # Custom css & js CDN # cdnIntersectionObserverJS = "https://cdn.jsdelivr.net/npm/intersection-observer@0.7.0/intersection-observer.min.js" # Optional cdnVanillaLazyloadJS = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@15.1.1/dist/lazyload.min.js" -- cgit v1.2.3 From 27dc1d536f212bcc1765efb5bdc72b20d2ad1286 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 21 Apr 2020 10:45:14 +0800 Subject: Update resources --- exampleSite/config.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 51e802e..4003290 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -75,6 +75,10 @@ paginate = 10 [markup.highlight] style = "monokailight" + [markup.tableOfContents] + startLevel = 2 # Start level of TOC, 2 means h2 or ## + endLevel = 2 # End level of TOC, 3 means h3 or ### + [taxonomies] tag = "tags" -- cgit v1.2.3 From 2c15f4495668f953709489133073ab2e7fa2efa8 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 22 Apr 2020 00:30:29 +0800 Subject: Change lazyload js --- exampleSite/config.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4003290..63a91fd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -63,8 +63,7 @@ paginate = 10 cdnLazyPlaceholderCol = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_480x540.svg" # Custom css & js CDN - # cdnIntersectionObserverJS = "https://cdn.jsdelivr.net/npm/intersection-observer@0.7.0/intersection-observer.min.js" # Optional - cdnVanillaLazyloadJS = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@15.1.1/dist/lazyload.min.js" + cdnLazysizesAsyncJS = "https://cdn.jsdelivr.net/npm/lazysizes@5.2.0/lazysizes.min.js" cdnJQueryJS = "https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" cdnProgessJS = "https://cdn.jsdelivr.net/npm/progressbar.js@1.1.0/dist/progressbar.min.js" -- cgit v1.2.3 From 14dececfd2ac91e1be402d3ebfff61974b3d76a1 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 23 Apr 2020 14:14:13 +0800 Subject: Update font stack & resources --- exampleSite/config.toml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 63a91fd..7c1b214 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,8 +14,7 @@ languageCode = "en" summaryLength = 100 # Custom cummary length, add in post file to custom split point paginate = 10 -# Set your Google Analytics UA here, or comment out to disable -# googleAnalytics = "UA-000000000-0" +# 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/" @@ -62,21 +61,16 @@ paginate = 10 # 8:9 cdnLazyPlaceholderCol = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_480x540.svg" - # Custom css & js CDN - cdnLazysizesAsyncJS = "https://cdn.jsdelivr.net/npm/lazysizes@5.2.0/lazysizes.min.js" - cdnJQueryJS = "https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" - cdnProgessJS = "https://cdn.jsdelivr.net/npm/progressbar.js@1.1.0/dist/progressbar.min.js" - - # Replace all webp img if there are no fallback set (DEVELOPMENT USE ONLY) - # webpChecker = true + # enable this to fetch css & js from jsDelivr CDN + useCDN = false [markup] [markup.highlight] style = "monokailight" [markup.tableOfContents] - startLevel = 2 # Start level of TOC, 2 means h2 or ## - endLevel = 2 # End level of TOC, 3 means h3 or ### + startLevel = 2 + endLevel = 2 [taxonomies] tag = "tags" @@ -99,7 +93,11 @@ paginate = 10 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 = 2 + weight = 3 -- cgit v1.2.3 From 8e4b97a7cfd236dc4094400c623dc875fee8110b Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 23 Apr 2020 15:13:23 +0800 Subject: Update example site --- exampleSite/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7c1b214..1c7b30d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -62,7 +62,7 @@ paginate = 10 cdnLazyPlaceholderCol = "https://cdn.jsdelivr.net/gh/amzrk2/poal-jsdelivr@1.1.0/lazyload/dsrca_loading_480x540.svg" # enable this to fetch css & js from jsDelivr CDN - useCDN = false + useCDN = true [markup] [markup.highlight] -- cgit v1.2.3 From 39d85cc63387f940dcfd6cef1a6d43d2cc4ebdf1 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 23 Apr 2020 19:36:26 +0800 Subject: Support in-post or global APlayer --- exampleSite/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1c7b30d..a0b50ee 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -64,6 +64,12 @@ paginate = 10 # 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" -- cgit v1.2.3 From 29f2e593583861173b212c0495dec2e26206072b Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 23 Apr 2020 20:15:48 +0800 Subject: Update metadata --- exampleSite/config.toml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a0b50ee..8a28bfc 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -43,15 +43,13 @@ paginate = 10 # Comments # utterances, see: https://utteranc.es/ - utterancesComment = false - cdnUtterancesJS = "https://utteranc.es/client.js" - utterancesRepo = "[ENTER REPO HERE]" - utterancesIssueTerm = "pathname" - utterancesTheme = "github-light" + # 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]" + # disqusComment = false + # disqusShortname = "[ENTER YOUR DISQUS SHORTNAME HERE]" # Custom lazyload placeholder # 16:9 -- cgit v1.2.3