Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.55 KB

CONTRIBUTING.md

File metadata and controls

49 lines (39 loc) · 1.55 KB

How to contribute to this blog

  1. Install Hugo on your computer and ensure it is in your path with hugo -h.
  2. Fork this repository (you may want to clone it to your computer as well).
  3. Go to the content/post folder.
  4. Create a post using the below format. You can use rmarkdown or html in your post. The post should be a .md file.
+++
banner = ""
categories = ["random"]
date = "2017-10-24T12:00:23+02:00"
description = ""
images = []
menu = ""
tags = []
title = "Random Post"
+++

Leading information about this post.
<!--more-->

XYZ is blah blah
  1. View the site with hugo
  2. Remove the public folder using git rm -rf public/.
  3. Use git submodule add -b master --force https://github.com/ummc-bc/ummc-bc.github.io.git public to create a git submodule of the public site folder at the ummc-bc.github.io repository.
  4. Regenerate the site with the following command in the top level of the github repository: hugo -t hugo-icarus-theme
  5. Change directories to the public folder: cd public
  6. Now, add your changes to git and push to Github to publish the site.
git add .
git commit -m "Added a post titled `How to Code`"
git push origin master
  1. Remove the public folder using rm -rf public/.
  2. Update the blog repository with your changes i.e. new post.
git add .
git commit -m "Added a new post"
git push origin master
  1. Open and submit a pull request.