Giter Site home page Giter Site logo

arunabh98 / elec-club-iitb.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elec-club-iitb/website

0.0 2.0 0.0 16.13 MB

Website of Electronics Club

License: MIT License

HTML 28.21% Ruby 0.40% CSS 23.26% Python 0.35% Shell 1.47% JavaScript 45.86% PHP 0.45%

elec-club-iitb.github.io's Introduction

Website of Electronics Club, IIT Bombay

How to contribute

Create a fork from the source on github and then clone your local repo. Clone your fork and add a tracking branch which can always have the last version of elec-club-iitb.github.io.

git clone https://github.com/username/elec-club-iitb.github.io
git remote add ec https://github.com/elec-club-iitb/elec-club-iitb.github.io
git fetch ec
git branch ec-master --track ec/master
git checkout ec-master
git pull

Create a branch from the last dev version of the tracking branch above. Let's call this branch new_blog.

git branch new_blog
git checkout new_blog

Add and commit and push your changes at your default remote which is usually called origin.

git add ...
git commit ...
git push origin new_blog

Make sure your branch is udpated with the latest changes in ec/master. Online repositories prefer if you will rebase your branch to the updated changes, i.e. no extra commit of Merge branch 'master'.

git checkout ec-master
git pull
git checkout new_blog
git rebase ec-master

If you see any conflicts you can resolve them using a standard and easy way. Open the file(s) and look for these pointers >>>>. They will show both changes which are conflicting. Remove what is unnecessary and commit and push your changes.

git commit -am "Resolved conflict"
git push origin new_blog

After you have finished pushing all your changes you are ready to make a pull request from github. You just need to press the green button from your github repo and write a title and a small description of what you are sharing with us.

After the pull request has arrived, the developers will review it and give you comments, and eventually merge it.

How to write a blog post

Blog posts live in the _posts folder. They have specific filename format:

yyyy-mm-dd-title.<ext>

<title> should be lowercase of the words of your title seperated by a '-' ( hyphen ).

<ext> should be the file-format extension. You can write the blog post in HTML ('html' extension) or Markdown ('md' extension). Markdown is a simple and intuitive markup language (preferrable over HTML). Here's a good tutorial for it. If you do use HTML, keep it to simple tags like <h1>, <p>, <img> and such.

For eg.

2016-03-07-first-post.md

Content of the file should include this Front Matter on top:

---
layout: post
comments: true

assets_dir: /assets/first-post
title: First Post
excerpt: Small description for main page
author: Your Name
category: [Electronics, Robotics]
tags: [Raspberry Pi, Arduino]
---

    ...
    content
    ...

Change the title, excerpt, author, category and tags field appropriately. They will be used to generate title and description of your blog on the homepage, and will add it to corresponding category and tag-wise pages.

There is no need to add title or date in the content, they will be added automatically.

If you want to add images and/or other files, put them in a folder named /assets/<title>, eg. something like /assets/first-post. Make sure to add this folder name to assets_dir field like shown in the example. Then when linking to the images/files write the link in this format {{page.assets_dir}}/image.jpg}}. A markdown example would be:

[This is a pdf]({{page.assets_dir}}/file.pdf)
![This is an image]({{page.assets_dir}}/image.jpg)

So just fork, add a post and send a PR, or just push it directly here if you have access!

Theme

Jekyll Experiment

elec-club-iitb.github.io's People

Contributors

arunabh98 avatar darshan3 avatar riddhishb avatar robodhruv avatar thedebugger811 avatar udiboy1209 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.