somenugget / snippets

Learn Hanami by reading, short, curated, manually crafted code snippets.

Home Page:https://snippets.hanamirb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hanami Snippets

Learn Hanami by reading, short, curated, manually crafted code snippets.

Requirements

  • Git (brew install git)
  • Hugo (brew install hugo)
  • NPM or Yarn (brew install npm or brew install yarn)
  • Carbon Now CLI (npm i -g carbon-now-cli or yarn global add carbon-now-cli)

How to contribute

  1. Fork the repository.
  2. Copy the .carbon-now.json into your home directory.
  3. Create a new post via hugo new posts/my-cool-snippet.md.
  4. Edit the contents. Make sure the first code snippet in the post is the most representative of the contents you want to share.
  5. Start the server and see how the new post looks like: bin/server.
  6. Generate a new image for social sharing with bin/export my-cool-snippet. This must match the file name of the post.
  7. Open a Pull Request.

Copyright

Hanami © 2014-2018 Luca Guidi - Released under the MIT License. The contents of this website are released under Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).

About

Learn Hanami by reading, short, curated, manually crafted code snippets.

https://snippets.hanamirb.org


Languages

Language:CSS 93.0%Language:HTML 5.6%Language:JavaScript 1.3%Language:Shell 0.2%