Skip to content

MartynW-Swindon/snhack.github.com

 
 

Repository files navigation

snhack.github.com

Note: master branch is overwritten during compilation.

This file details how to submit a new post. Please see the INSTALL file for full details on how to build and preview the entire site locally.

Super minimal way to add a post

Use this workflow when submitting a blog post using standard text or markdown.

Load the source/_posts folder, then click the new file icon above its listing. (show)

Name the file using the post date and title, in lowercase, according to the pattern: YYYY-MM-DD-url-safe-title.md. (show)

Enter the post metadata and content, formatted using markdown. Here's a template and some examples.

Use the Propose New File button to commit the post (to a new branch in your own fork).

The new branch will be compared to this repo. Check the changes and click the pull request link. (show)

Add a title and any other relevant info or images, then hit Send Pull Request. (show)

Notes on Pull Requests

Once you have sent a pull request an admin will need to build the site locally, check it renders acceptably, and then deploy your content to the live site.

You can view the progress of your pull request in its discussion thread. Notifications will normally be sent by email to those active or mentioned in the thread, as well as those watching either the thread or the related repo.

Additional commits made to the same branch (named with the 'patch' prefix by default) will automatically be added to the pull request.

Check the fork and pull request help pages for more info.

Uploading Images

The new file icon on the github website only supports text files. You can reference images hosted on another server, but it's preferred to upload images to the site itself.

If you're familiar with git, you can commit images into a new folder located within source/_posts/_assets and named to match your post: YYYY-MM-DD-name-of-post. Assets in such a folder can be referenced using relative paths:

![MyImage](MyImageFile.jpg)

If you're unfamiliar with git, you can attach images to the discussion thread of your newly created pull request. An admin will commit them into the correct folder for you.

About

The Swindon Hackspace website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%