Skip to content

loadsmart/blog

Repository files navigation

Loadsmart Engineering Blog

Built on top of GatsbyJS and continuously deployed to Netlify

Netlify Status

Installing

If you already have a Node.js environment and yarn installed, install the dependencies by running in the root directory:

yarn

Running

To run it locally:

gatsby develop

And then access your browser at localhost:8000. This commands listens to changes in the file system and restarts the server by itself, so you don’t have to do it manually.

Writing a blog post

If you work for Loadsmart and want to write an article, you can do so by creating a Markdown file under the content folder. Make sure you follow the expected structure of directories by adding an index.md file and all the referenced images in the same folder named after the date your post should be published plus the slug. E.g.:

content
  posts
    2020-06-05-title-of-your-post
      index.md
      some-image.jpg
      another-image.jpg

When it’s ready, send a pull request and assign some people to review it. If build passes, Netlify will comment in your pull request with a link to preview your post. In case you want to check an example, see this.

As soon as your PR is merged into master, a deploy to Netlify will be triggered. In less than a minute, you should be able to see your post live at engineering.loadsmart.com.

Contributing

Found a typo or want to help us with any of the open tickets? Feel free to fork the project and send us a Pull Request.

License

This code project is distributed under the MIT License. The articles are distributed under Creative Commons 4.0 International.