-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Github 和 Gitlab 系列平台支持自定义设置作者主页
- Loading branch information
Showing
8 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
|
||
import { PasswordType } from "zhi-blog-api" | ||
import { CommonBlogConfig } from "~/src/adaptors/api/base/commonBlogConfig.ts" | ||
import { StrUtil } from "zhi-common" | ||
|
||
/** | ||
* CommonGithubConfig 类用于存储 GitHub 相关配置信息 | ||
|
@@ -60,6 +61,11 @@ class CommonGithubConfig extends CommonBlogConfig { | |
*/ | ||
public email: string | ||
|
||
/** | ||
* 作者主页 | ||
*/ | ||
public site: string | ||
|
||
/** | ||
* Markdown文件名规则(占位符:[yyyy] [MM] [dd] [slug] [filename] ) | ||
*/ | ||
|
@@ -111,6 +117,7 @@ class CommonGithubConfig extends CommonBlogConfig { | |
this.defaultMsg = "auto published by siyuan-plugin-publisher" | ||
this.author = "terwer" | ||
this.email = "[email protected]" | ||
this.site = StrUtil.pathJoin(this.home, "/" + this.username) | ||
this.mdFilenameRule = "[filename].md" | ||
this.useMdFilename = false | ||
this.usePathCategory = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters