From b8b3a82ad2cd5bf350629faf12ae82bb359f67f8 Mon Sep 17 00:00:00 2001 From: Makise Von Date: Sun, 30 Oct 2022 11:06:21 +0800 Subject: feat: support gitalk fully (#410) --- config-examples/en/config.toml | 31 ++++++++++++++++++++++++++++--- config-examples/zh-cn/config.toml | 31 ++++++++++++++++++++++++++++--- config-examples/zh-tw/config.toml | 31 ++++++++++++++++++++++++++++--- 3 files changed, 84 insertions(+), 9 deletions(-) (limited to 'config-examples') diff --git a/config-examples/en/config.toml b/config-examples/en/config.toml index a387e09..d55d2b7 100644 --- a/config-examples/en/config.toml +++ b/config-examples/en/config.toml @@ -696,13 +696,38 @@ uglyURLs = false gitalkRepo = "your_repository" gitalkOwner = "your_gitalk_owner" gitalkAdmin = ["your_gitalk_admin"] - gitalkLable = ["Gitalk"] - gitalkDistractionFreeMode = false - gitalkPerPage = 10 + + # 1. default (`location.href`) + # 2. pathname (`location.pathname`) + # 3. hash (hash_filepath) + # 4. custom:your_gitalk_id ("your_gitalk_id") + gitalkID = "pathname" + + gitalkNumber = -1 + gitalkLables = ["Gitalk"] + + # 1. default (`document.title`) + # 2. custom:your_gitalk_title ("your_gitalk_title") + gitalkTitle = "default" + + # 1. default (`location.href` + header.meta[description]) + # 2. href (`location.href`) + # 3. custom:your_gitalk_body ("your_gitalk_body") + gitalkBody = "default" + + # 1. default (`navigator.language || navigator.userLanguage`) + # 2. Support [en, zh-CN, zh-TW, es-ES, fr, ru, de, pl, ko, fa, ja] gitalkLanguage = "en" + + gitalkPerPage = 10 + gitalkDistractionFreeMode = false gitalkPagerDirection = "last" gitalkCreateIssueManually = false gitalkProxy = "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token" + gitalkStaggerDelayBy = 150 + gitalkAppearAnimation = "accordionVertical" + gitalkEnterAnimation = "accordionVertical" + gitalkLeaveAnimation = "accordionVertical" gitalkEnableHotKey = true # Note: https://github.com/gitalk/gitalk diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml index f739e42..28dfe79 100644 --- a/config-examples/zh-cn/config.toml +++ b/config-examples/zh-cn/config.toml @@ -643,13 +643,38 @@ uglyURLs = false gitalkRepo = "your_repository" gitalkOwner = "your_gitalk_owner" gitalkAdmin = ["your_gitalk_admin"] - gitalkLable = ["Gitalk"] - gitalkDistractionFreeMode = false + + # 1. default (`location.href`) + # 2. pathname (`location.pathname`) + # 3. hash (hash_filepath) + # 4. custom:your_gitalk_id ("your_gitalk_id") + gitalkID = "pathname" + + gitalkNumber = -1 + gitalkLables = ["Gitalk"] + + # 1. default (`document.title`) + # 2. custom:your_gitalk_title ("your_gitalk_title") + gitalkTitle = "default" + + # 1. default (`location.href` + header.meta[description]) + # 2. href (`location.href`) + # 3. custom:your_gitalk_body ("your_gitalk_body") + gitalkBody = "default" + + # 1. default (`navigator.language || navigator.userLanguage`) + # 2. Support [en, zh-CN, zh-TW, es-ES, fr, ru, de, pl, ko, fa, ja] + gitalkLanguage = "zh-CN" + gitalkPerPage = 10 - gitalkLanguage = "en" + gitalkDistractionFreeMode = false gitalkPagerDirection = "last" gitalkCreateIssueManually = false gitalkProxy = "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token" + gitalkStaggerDelayBy = 150 + gitalkAppearAnimation = "accordionVertical" + gitalkEnterAnimation = "accordionVertical" + gitalkLeaveAnimation = "accordionVertical" gitalkEnableHotKey = true # 说明:https://github.com/gitalk/gitalk diff --git a/config-examples/zh-tw/config.toml b/config-examples/zh-tw/config.toml index 446786d..3424bf9 100644 --- a/config-examples/zh-tw/config.toml +++ b/config-examples/zh-tw/config.toml @@ -643,13 +643,38 @@ uglyURLs = false gitalkRepo = "your_repository" gitalkOwner = "your_gitalk_owner" gitalkAdmin = ["your_gitalk_admin"] - gitalkLable = ["Gitalk"] - gitalkDistractionFreeMode = false + + # 1. default (`location.href`) + # 2. pathname (`location.pathname`) + # 3. hash (hash_filepath) + # 4. custom:your_gitalk_id ("your_gitalk_id") + gitalkID = "pathname" + + gitalkNumber = -1 + gitalkLables = ["Gitalk"] + + # 1. default (`document.title`) + # 2. custom:your_gitalk_title ("your_gitalk_title") + gitalkTitle = "default" + + # 1. default (`location.href` + header.meta[description]) + # 2. href (`location.href`) + # 3. custom:your_gitalk_body ("your_gitalk_body") + gitalkBody = "default" + + # 1. default (`navigator.language || navigator.userLanguage`) + # 2. Support [en, zh-CN, zh-TW, es-ES, fr, ru, de, pl, ko, fa, ja] + gitalkLanguage = "zh-TW" + gitalkPerPage = 10 - gitalkLanguage = "en" + gitalkDistractionFreeMode = false gitalkPagerDirection = "last" gitalkCreateIssueManually = false gitalkProxy = "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token" + gitalkStaggerDelayBy = 150 + gitalkAppearAnimation = "accordionVertical" + gitalkEnterAnimation = "accordionVertical" + gitalkLeaveAnimation = "accordionVertical" gitalkEnableHotKey = true # 說明:https://github.com/gitalk/gitalk -- cgit v1.2.3