All Projects → suziwen → roadbike

suziwen / roadbike

Licence: MIT license
小书匠官网博客源码

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to roadbike

Gatsby Starter Ghost
A starter template to build lightning fast websites with Ghost & Gatsby
Stars: ✭ 752 (+1534.78%)
Mutual labels:  static-site-generator, gatsby
Gatsby Theme Try Ghost
A Gatsby theme to build flaring fast blogs from headless Ghost CMS
Stars: ✭ 88 (+91.3%)
Mutual labels:  static-site-generator, gatsby
Awesome Gatsby
⚛️ 📄 🚀 Awesome list for the mighty Gatsby.js, a blazing fast React static site generator.
Stars: ✭ 928 (+1917.39%)
Mutual labels:  static-site-generator, gatsby
Gatsby
Build blazing fast, modern apps and websites with React
Stars: ✭ 51,925 (+112780.43%)
Mutual labels:  static-site-generator, gatsby
Gatsby Plugin Algolia
A plugin to push to Algolia based on graphQl queries
Stars: ✭ 154 (+234.78%)
Mutual labels:  static-site-generator, gatsby
Gatsby Starter Prismic
A typography-heavy & light-themed Gatsby Starter which uses the Headless CMS Prismic.
Stars: ✭ 381 (+728.26%)
Mutual labels:  static-site-generator, gatsby
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+2560.87%)
Mutual labels:  static-site-generator, gatsby
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+454.35%)
Mutual labels:  static-site-generator, gatsby
Gatsby Starter Netlify Cms
Example gatsby + netlify cms project
Stars: ✭ 1,932 (+4100%)
Mutual labels:  static-site-generator, gatsby
Gatsby Starter Try Ghost
Publish flaring fast blogs with Gatsby and Ghost
Stars: ✭ 137 (+197.83%)
Mutual labels:  static-site-generator, gatsby
Gatsby Starter Bootstrap
Gatsby starter for bootstrap
Stars: ✭ 272 (+491.3%)
Mutual labels:  static-site-generator, gatsby
Gatsby Docker
Develop & Build GatsbyJS static sites within Docker.
Stars: ✭ 184 (+300%)
Mutual labels:  static-site-generator, gatsby
gatsby-starter-portfolio-bella
A bright single-page portfolio starter for Gatsby powered by Prismic.io. The target audience are designers and photographers.
Stars: ✭ 125 (+171.74%)
Mutual labels:  static-site-generator, gatsby
Gatsby Material Starter
A high performance blog starter with Material design in mind for GatsbyJS.
Stars: ✭ 456 (+891.3%)
Mutual labels:  static-site-generator, gatsby
static-web-apps-gallery-code-samples
A community showcase of projects built with Azure Static Web Apps 🎉 Visit: https://microsoft.github.io/static-web-apps-gallery-code-samples/
Stars: ✭ 96 (+108.7%)
Mutual labels:  static-site-generator, gatsby
Awesome Docs With Static Site Generators
Pointers to all templates and implementations based on static site generators
Stars: ✭ 44 (-4.35%)
Mutual labels:  static-site-generator, gatsby
gatsby-reactstrap
Adding Bootstrap 4 to an Gatsby React App and serve generated the static site with Express.js
Stars: ✭ 25 (-45.65%)
Mutual labels:  static-site-generator, gatsby
Jamstack Ecommerce
A starter project for building performant ECommerce applications with Next.js and React
Stars: ✭ 1,384 (+2908.7%)
Mutual labels:  static-site-generator, gatsby
Actions Gh Pages
GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
Stars: ✭ 2,576 (+5500%)
Mutual labels:  static-site-generator, gatsby
Post Scheduler
Schedule posts & content updates for static websites (Jekyll, Hugo, Gatsby, Phenomic etc)
Stars: ✭ 184 (+300%)
Mutual labels:  static-site-generator, gatsby

xiaoshujiang.com

该源码为小书匠官网( http://soft.xiaoshujiang.com )静态博客生成源码。 使用开源的静态博客生成工具 gatsby 生成,同时添加了小书匠导出的 zip 文件做为数据源的插件。

目前源代码放在 github 和 gitee 两个平台上, github 适合外网用户访问, gitee 适合国内这边的访问。

部署后的效果: https://suziwen.github.io

本地运行

node > 12.22.* gatsby > 2.3.* git

可以考虑使用 nvm 管理不同版本的 node https://github.com/nvm-sh/nvm

git clone https://github.com/suziwen/roadbike
nvm use 12.16.1
npm  install
npm run build
npm run start

访问 http://localhost:8000

注: 这里需要先把 gatsby-transformer-xsjzip 编译一下,生成相关的 js 文件,才能在根目录下正常执行其他操作

github action

.github 目录下,有自动运行的 action, 可以自己修改成适合自己的仓库信息,这样以后 github 仓库有变化时,就自动编译

添加文章

  1. 通过小书匠编辑器 http://markdown.xiaoshujiang.com 的导出功能,将文章导出为 zip 格式
  2. 将该 zip 文件放置到 src/xsjposts/blogs 目录下
  3. 执行 npm run build
  4. 编译后,再执行 npm run develop
  5. 访问 http://localhost:8000/blog , 就可以在列表里查看到刚添加的文章了。

打包发布

npm run deploy

注:

  1. 需要自己在 package.json 里,把对应的服务器地址调整一下。
  2. 如果发布在非根路径的网站上,比如 roadbike,需要在 gatsby-config.js 里添加 pathPrefix: "/roadbike", 属性
  3. 在 package.json 的打包脚本里带上 --prefix-paths 参数

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].