
This project is currently under active maintenance. To update, follow these steps:
First, verify the version number in package.json or review the changelog here or at Release.
The project version number is only incremented when the configuration file structure undergoes structural changes. Project configuration files refer to those related to website layout and content, including astro.config.mjs, src/config.ts, src/content.config.ts, and files within the src/i18n/ folder.
Blog text, images, and other content are stored in the src/content/, src/assets, and public folders.
You can directly clone this project, then overwrite the new project with your original configuration files. Run pnpm install to install dependencies, followed by pnpm build for local compilation. Finally, execute pnpm preview to preview the compiled project.
When updating inside this repository, run pnpm momo update: it backs up your configuration files to .backup/, pulls the remote update, installs dependencies, and finally lists the configuration files that need to be merged by hand. If something goes wrong afterwards, pnpm momo restore rolls the configuration back to the state before the update.
Whenever the version number changes, the modification log will be updated here. Refer to the specific log entries to modify the corresponding configuration files.
Below are general modification suggestions.
astro.config.mjs Modifications: Typically just overwrite the file. Its site and i18n fields are read from siteConfig.rootSiteUrl, i18nConfig.defaultLanguage and i18nConfig.supportedLanguages in src/config.ts.config.ts Modifications: Update config.ts by adding or modifying configuration items as required.content.config.ts Modifications: Typically involves adding new frontmatter configurations to articles. Add the required new configuration items to articles as specified.src/i18n/ Modifications: Generally involves adding new internationalization translations; simply overwrite the files. Note that the Cover text of each page (cover.title / cover.subTitle) has moved into i18nConfig.translations in src/config.ts — edit it there.Version numbers follow the
YY.MM.DDformat
This update contains breaking configuration changes. Please read the release notes below carefully!
config.ts configuration file to centrally manage the default language, supported languages, and cover text for each pagepnpm momo, which supports functions such as backing up, restoring, and updating configurationssrc/config.ts, src/i18n/language/*.ts, and astro.config.mjs:
src/config.ts: Added i18nConfig and added rootSiteUrl to siteConfigsrc/i18n/language/*.ts: Removed the original cover field; now referenced from config.tsastro.config.mjs: Updated the site and i18n sections to reference the configuration in src/config.tsnode_modules, .astro, dist) and run pnpm install again. You can use pnpm momo clean --all to do this quicklyThis is a breaking update. Please read the release notes below carefully!
v5 branch and will no longer be maintained/node_modules) before you can compile and preview locallycontent.config.ts and astro.config.mjsTranslated with DeepL.com (free version)
config.ts configuration file by adding the theme.postCard field; you must add this new field when updatingsrc/i18n/, adding fields such as comments.verificationRequired; all other fields remain unchanged. When making modifications, simply add the new fieldsLQIP low-quality image placeholder featureastro.config.mjs configuration file to include the remarkLqip plugin; it also modifies the config.ts configuration file by adding fields such as theme.LQIP. When updating, you must add these new fields.astro.config.mjsastro.config.mjs by changing how AdmonitionComponent is imported; corresponding changes must be madesrc/i18n/, adding fields such as comments.write; all other fields remain unchanged. When making modifications, simply add the new fieldsconfig.ts configuration file by adding the theme.AOS and comments.platform fields; these new fields must be added when updatingastro.config.mjs configuration file and adds a new dependency, @iconify-json/fluent. You must add the corresponding fields and run pnpm install.src/i18n/language/en.ts by changing the themeInfo.system field; all other fields remain unchanged. When updating, you only need to modify the fields that have changed.src/i18n/ by adding the comments.replyTo field; all other fields remain unchanged. To apply the changes, simply add the new fieldsrc/i18n/ by adding the themeInfo field; all other fields remain unchanged. To apply the changes, simply add the new fieldTranslated with DeepL.com (free version)
v26.3.11src/i18n/. We recommend using the latest version and updating the cover.title and cover.subtitle fields with your own information.
Loading comments...