@moneko/core 3.17.16 → 3.17.17

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 CHANGED
@@ -1,4 +1,4 @@
1
- import{join as o}from"path";import{scanRouter as m,sitemap as t}from"@moneko/mdx";import{resolveProgram as r}from"./index.mjs";import{outputConfig as e}from"../common.mjs";import{CONFIG as i}from"../config.mjs";import{routeDir as p}from"../paths.mjs";import{isLibrary as s}from"../process-env.mjs";import{saveFileSync as n}from"@moneko/utils";export default(()=>{let{domain:a,jekyll:f,path:l}=i.seo||{},j=l&&r(l)||e?.path;if(!a||!j)return;let x=`https://${a}${i.basename}`;n(o(j,"CNAME"),a),n(o(j,"robots.txt"),`User-agent: *
2
- Disallow:
1
+ import{join as o}from"path";import{scanRouter as m,sitemap as t}from"@moneko/mdx";import{resolveProgram as r}from"./index.mjs";import{outputConfig as e}from"../common.mjs";import{CONFIG as p}from"../config.mjs";import{routeDir as i}from"../paths.mjs";import{isLibrary as s}from"../process-env.mjs";import{saveFileSync as n}from"@moneko/utils";export default(()=>{let{domain:f,jekyll:a,path:l}=p.seo||{},j=l&&r(l)||e?.path;if(!f||!j)return;let x=`https://${f}${p.basename}`;n(o(j,"CNAME"),f),n(o(j,"robots.txt"),`User-agent: *
2
+ Allow: /
3
3
 
4
- Sitemap: ${x}/sitemap.txt`),n(o(j,"sitemap.txt"),[x,...t(p,x,m(p,s))].join("\n")),f||n(o(j,".nojekyll"),"")});
4
+ Sitemap: ${x}/sitemap.txt`),n(o(j,"sitemap.txt"),[x,...t(i,x,m(i,s))].join("\n")),a||n(o(j,".nojekyll"),"")});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.17.16",
3
+ "version": "3.17.17",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",