{"id":16183953,"url":"https://github.com/crazymryan/blog","last_synced_at":"2025-03-19T02:31:00.486Z","repository":{"id":38227108,"uuid":"325692236","full_name":"CrazyMrYan/blog","owner":"CrazyMrYan","description":"使用vitepress+vue3来创作的一个博客，带有 Gitalk 评论，暗黑模式","archived":false,"fork":false,"pushed_at":"2021-12-31T08:01:25.000Z","size":12860,"stargazers_count":59,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T01:51:12.368Z","etag":null,"topics":["blog","gitalk","markdown","vite","vitepress","vue","vue3"],"latest_commit_sha":null,"homepage":"https://crazymryan.github.io/blog","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CrazyMrYan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-31T02:15:11.000Z","updated_at":"2025-03-05T04:04:35.000Z","dependencies_parsed_at":"2022-08-18T07:05:09.814Z","dependency_job_id":null,"html_url":"https://github.com/CrazyMrYan/blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrazyMrYan","download_url":"https://codeload.github.com/CrazyMrYan/blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244341464,"owners_count":20437652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","gitalk","markdown","vite","vitepress","vue","vue3"],"created_at":"2024-10-10T07:08:30.411Z","updated_at":"2025-03-19T02:30:59.552Z","avatar_url":"https://github.com/CrazyMrYan.png","language":"Vue","readme":"---\r\npage: true\r\ndate: 2021-01-03\r\ntitle: 项目概述\r\ndescribe: 项目概述\r\n---\r\n\r\n![](./docs/images/5a94f43a5b2471.jpg)\r\n![](./docs/images/5a94f43a5b2472.jpg)\r\n\r\n## 项目地址\r\n[https://github.com/CrazyMrYan/blog](https://github.com/CrazyMrYan/blog)\r\n\r\n## 🚀 基于「VitePress」搭建的极简博客\r\n\r\n现已完成:\r\n\r\n✅ 渲染文章列表\r\n\r\n✅ 使用Vue 3\r\n\r\n✅ 文章目录\r\n\r\n✅ 文章按时间轴归档\r\n\r\n✅ 文章分类\r\n****\r\n2021-12-31\r\n\r\n✅ Gitalk 评论\r\n\r\n****\r\n2020-01-05 更新\r\n\r\n✅ 文章列表分页\r\n\r\n\r\n****\r\n2021-01-16 更新\r\n\r\n✅ 文章图片放大\r\n\r\n✅ 切换黑暗模式\r\n\r\n✅ 局部打印\r\n\r\n****\r\n准备开发~\r\n\r\n⬜ 文章上下页\r\n\r\n## 效果预览\r\n\r\n在线地址:[https://crazymryan.github.io/blog](https://crazymryan.github.io/blog)\r\n\r\n国内访问:[http://crazy.lovemysoul.vip/blog](http://crazy.lovemysoul.vip/blog) \r\n\r\n注意：（因为自己的服务器域名马上要过期了，我就懒得再去配置一个 gitalk 了，所以国内访问不携带评论功能。等有时间了在不上来）\r\n\r\n## 安装\r\n\r\n```bash\r\ngit clone git@github.com:CrazyMrYan/blog.git\r\n\u0026\r\ncd blog\r\n```\r\n\r\n## 下载依赖\u0026启动\r\n```shell\r\n# npm\r\nnpm install\r\n\u0026\r\nnpm run dev\r\n\r\n# yarn\r\nyarn install\r\n\u0026\r\nyarn dev\r\n```\r\n\r\n## 打包静态\r\n在打包之前你需要配置 `.vitepress` \u003e `config.js` 中加上 base:'你的存放文件名'\r\n```diff\r\nlet config = {\r\n    head:[...],\r\n    title:'悲伤日记',\r\n    themeConfig:{...},\r\n    dest: 'public',\r\n+   base:'你的存放文件名'\r\n}\r\n```\r\n\r\n\r\n还需要在 `.vitepress` \u003e `build` \u003e `index.js` 修改 type 为 `build` \r\n\r\n```diff\r\n- const type = 'dev'\r\n+ const type = 'build'\r\nexport function Build(){\r\n-    return type === 'build' ? '' : ''\r\n+    return type === 'build' ? '你的存放文件名' : ''\r\n}\r\n```\r\n\r\n```shell\r\n# npm\r\nnpm run build\r\n\r\n# yarn\r\nyarn build\r\n\r\n```\r\n## 联系我\r\n\u003cspan\u003e\u003cimg src=\"./docs/images/beishang.jpg\" style=\"width:50%\"/\u003e\u003cimg src=\"./docs/images/mycode.jpg\" style=\"width:50%\"/\u003e\u003c/span\u003e\r\n\r\n## 鸣谢 \r\n本项目采用 [@Moking1997](https://github.com/Moking1997) 搭建的 [vitepress-blog](https://github.com/Moking1997/vitepress-blog),来进行的修改\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazymryan%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazymryan%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazymryan%2Fblog/lists"}