${window.siyuan.languages.export23}
@@ -137,7 +129,6 @@ export const exportConfig = {
fetchPost("/api/setting/setExport", {
paragraphBeginningSpace: (exportConfig.element.querySelector("#paragraphBeginningSpace") as HTMLInputElement).checked,
addTitle: (exportConfig.element.querySelector("#addTitle") as HTMLInputElement).checked,
- addFooter: (exportConfig.element.querySelector("#addFooter") as HTMLInputElement).checked,
markdownYFM: (exportConfig.element.querySelector("#markdownYFM") as HTMLInputElement).checked,
blockRefMode: parseInt((exportConfig.element.querySelector("#blockRefMode") as HTMLSelectElement).value, 10),
blockEmbedMode: parseInt((exportConfig.element.querySelector("#blockEmbedMode") as HTMLSelectElement).value, 10),
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index 2f989bf39..4f2820062 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -39,7 +39,6 @@ export const exportImage = (id: string) => {
`,
content: `
-

${window.siyuan.languages.exportBySiYuan}
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index d038c73f3..c6b89bf0c 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -310,7 +310,6 @@ declare interface IExport {
pandocBin: string
paragraphBeginningSpace: boolean;
addTitle: boolean;
- addFooter: boolean;
markdownYFM: boolean;
}
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts
index 7caa39b8e..250470278 100644
--- a/app/src/util/onGetConfig.ts
+++ b/app/src/util/onGetConfig.ts
@@ -275,7 +275,7 @@ export const initWindow = () => {
};
setStorageVal(Constants.LOCAL_EXPORTPDF, window.siyuan.storage[Constants.LOCAL_EXPORTPDF]);
try {
- if (window.siyuan.config.export.addFooter) {
+ if (false) { // TODO 已经移除了之前的“由思源笔记导出”页脚(https://github.com/siyuan-note/siyuan/issues/7838),后面如果需要的话换成自定义页脚
ipcData.pdfOptions.displayHeaderFooter = true;
ipcData.pdfOptions.headerTemplate = "
";
ipcData.pdfOptions.footerTemplate = `
diff --git a/kernel/conf/export.go b/kernel/conf/export.go
index 14e3054bb..f63c7e43d 100644
--- a/kernel/conf/export.go
+++ b/kernel/conf/export.go
@@ -19,7 +19,6 @@ package conf
type Export struct {
ParagraphBeginningSpace bool `json:"paragraphBeginningSpace"` // 是否使用中文排版段落开头空两格
AddTitle bool `json:"addTitle"` // 是否添加标题
- AddFooter bool `json:"addFooter"` // 是否添加页脚
BlockRefMode int `json:"blockRefMode"` // 内容块引用导出模式,2:锚文本块链,3:仅锚文本,4:块引转脚注,(0:使用原始文本,1:使用 Blockquote。0 和 1 都已经废弃 https://github.com/siyuan-note/siyuan/issues/3155)
BlockEmbedMode int `json:"blockEmbedMode"` // 内容块引用导出模式,0:使用原始文本,1:使用 Blockquote
BlockRefTextLeft string `json:"blockRefTextLeft"` // 内容块引用导出锚文本左侧符号,默认留空
@@ -35,7 +34,6 @@ func NewExport() *Export {
return &Export{
ParagraphBeginningSpace: false,
AddTitle: true,
- AddFooter: true,
BlockRefMode: 3,
BlockEmbedMode: 1,
BlockRefTextLeft: "",