@moneko/core 3.11.2 → 3.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/seo.mjs +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +2 -2
package/lib/utils/seo.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{join as m}from"path";import{saveFileSync as o,scanRouter as t,sitemap as r}from"@moneko/mdx";import{resolveProgram as e}from"./index.mjs";import{outputConfig as p}from"../common.mjs";import{CONFIG as i}from"../config.mjs";import{routeDir as s}from"../paths.mjs";import{isLibrary as f}from"../process-env.mjs";export default(()=>{let{domain:n,
|
|
1
|
+
import{join as m}from"path";import{saveFileSync as o,scanRouter as t,sitemap as r}from"@moneko/mdx";import{resolveProgram as e}from"./index.mjs";import{outputConfig as p}from"../common.mjs";import{CONFIG as i}from"../config.mjs";import{routeDir as s}from"../paths.mjs";import{isLibrary as f}from"../process-env.mjs";export default(()=>{let{domain:n,jekyll:a,path:j}=i.seo||{},l=j&&e(j)||p?.path;if(!n||!l)return;let x=`https://${n}${i.basename}`;o(m(l,"CNAME"),n),o(m(l,"robots"),`Sitemap: ${x}/sitemap.txt`),o(m(l,"sitemap.txt"),r(s,x,t(s,f)).join("\n")),a||o(m(l,".nojekyll"),"")});
|
package/package.json
CHANGED
package/typings/global.d.ts
CHANGED
|
@@ -315,9 +315,9 @@ export declare type ConfigType = {
|
|
|
315
315
|
/** 添加 .nojekyll 文件
|
|
316
316
|
* @description 告诉网站部署平台当前网站不是基于 Jekyll 构建的,
|
|
317
317
|
* 不要忽略掉下划线开头的文件和文件夹
|
|
318
|
-
* @default
|
|
318
|
+
* @default false
|
|
319
319
|
**/
|
|
320
|
-
|
|
320
|
+
jekyll?: boolean;
|
|
321
321
|
/** 文件输出路径 */
|
|
322
322
|
path?: string;
|
|
323
323
|
}
|