pnpm install # Commissioning development npm run dev # structure npm run build
-
Although it can be used as a blog, it does not have the "theme" standard in the sense of a general blog. I still try to put the file in src/theme-simple Directory, src/pages Because of Astro's limitation, it can only be placed outside; src/theme-simple/config.ts It is used for preset and consolidated configuration. For customization src/consts.ts Medium; astro.config.mjs There are site The field is used to set the domain name; "It seems that config.site.url It is also repeated " -
The article content path is src/content , you can symbolic link or shortcut to other places to facilitate management; -
There is a built-in "About" page, the path src/content/pages/about.md , It should not be deleted, and other file names will not be resolved to new pages ; -
Articles are stored in src/content/blog In the path, you can clear it and then create a new one;
-
Clone or download wdssmq/blog-astro Warehouse; -
Use Beyond Compare or other tools to compare differences; -
Overwrite the file as follows: src/content/config.ts ; 「 2023-08-26: The configuration in this file will be changed from src/theme-simple/config.ts Import src/theme-simple All documents within; 「 2023-08-26: Copy the original custom configuration to the new version src/consts.ts Inside src/pages All documents within; package.json ;
-
Additional comparisons public astro.config.mjs src/consts.ts Content; -
Reinstall dependencies and then debug and run them;