• Stars
    star
    463
  • Rank 94,661 (Top 2 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Minimal is the new cool.


If there's any issue you are facing in setting up this theme I'm there for you. Just create an issue in this repository (http://github.com/hemangsk/Gravity), (https://help.github.com/articles/creating-an-issue/) and I'll get back to you asap.

Welcome to Gravity


INSTALLATION

Dependencies

Gravity uses Jekyll and it's built-in SCSS compiler for the associated CSS, so the first thing you'll need is Jekyll itself:

$ gem install jekyll

In case you don't have the bundler gem installed already, you can install it as follows:

$ gem install bundler

For pagination, Gravity uses the jekyll-paginate gem :

$ gem install jekyll-paginate

USAGE

Once you have the required gems, you can go ahead and clone the Gravity repository or download a zip of the master branch.

Run :

$ jekyll serve

Jekyll should now be generating your content!


ADDING POSTS

The theme by default ships with starter posts located in _posts/. Delete these posts and add your content to the _posts folder to see them being served up by Jekyll. This would be a good guide to getting started on writing posts using Jekyll. We've added a concise guide below:

  • Create a .markdown file inside _posts folder.
  • Name the file according to the format YY-MM-DD-[short name for your post].
  • 2016-03-30-i-love-design.markdown
  • Write the Front Matter and content in the file.

FORMAT

---
layout: post | default | page
title: String POST TITLE
date: Time Stamp
categories: String | Array of Strings CATEGORY / CATEGORIES
---

---
layout: post
title: "The One with the Blackout"
date: 2016-03-30 19:45:31 +0530
categories: ["life", friends]
---

CREATE PAGES

  • Create a .md file in the root directory.
  • Name the file with the desired page link name. about.md design.md
  • Write the Front Matter and content in the file.

FORMAT

---
layout: page
title: String TITLE OF THE WEBPAGE
permalink: / String / PERMALINK FOR THE WEBPAGE
tagline: String OPTIONAL GRAVITY FEATURE : TAGLINE FOR THE PAGE
---

---
layout: page
title: "Science"
permalink: /science/
tagline: "Humanity is overrated."
---

Introducing

ARCHIVE PAGES

You can display a list of all the posts corresponding to a particular category on a standalone page using the ARCHIVE layout.

  • Create a .md file in the root directory.
  • Name the file. Preferred name will be the name of the category. *life.md
  • Write the Front Matter and content in the file.

FORMAT

---
layout: archive ARCHIVE PAGE LAYOUT
title: String TITLE OF THE WEBPAGE
permalink: / String / PERMALINK FOR THE WEBPAGE
tagline: String TAGLINE FOR THE PAGE
category: String NAME OF THE CATEGORY OF WHICH THE PAGE WILL SHOW POSTS
---

---
layout: archive
title: "Design"
permalink: "Design"
tagline: "It's all about perception"
category: "design"
---

DIRECTORY STRUCTURE

โ”œโ”€โ”€ css                                         # => Output of the combined SASS files
โ”‚ย ย  โ””โ”€โ”€ style.scss
โ”œโ”€โ”€ _includes                                   # => Contains partials that can be used with your layouts
โ”‚ย ย  โ”œโ”€โ”€ footer.html
โ”‚ย ย  โ”œโ”€โ”€ header.html
โ”‚ย ย  โ”œโ”€โ”€ head.html
โ”‚ย ย  โ”œโ”€โ”€ icon-github.html
โ”‚ย ย  โ”œโ”€โ”€ icon-github.svg
โ”‚ย ย  โ”œโ”€โ”€ icon-twitter.html
โ”‚ย ย  โ””โ”€โ”€ icon-twitter.svg
โ”œโ”€โ”€ _layouts                                    # => Layout related HTML files
โ”‚ย ย  โ”œโ”€โ”€ archive.html
โ”‚ย ย  โ”œโ”€โ”€ default.html
โ”‚ย ย  โ”œโ”€โ”€ page.html
โ”‚ย ย  โ””โ”€โ”€ post.html
โ”œโ”€โ”€ _posts                                      # => posts, dynamic content. Follow the format: YEAR-MONTH-DAY-title.MARKUP
โ”‚ย ย  โ”œโ”€โ”€ 2016-03-30-design-stories.markdown
โ”‚ย ย  โ”œโ”€โ”€ 2016-03-30-science0.markdown
โ”‚ย ย  โ”œโ”€โ”€ 2016-03-30-science.markdown
โ”‚ย ย  โ””โ”€โ”€ 2016-03-30-welcome-to-jekyll.markdown
โ””โ”€โ”€ _sass                                       # => SASS partials for styling
|   โ”œโ”€โ”€ _base.scss
|   โ”œโ”€โ”€ _layout.scss
|   โ””โ”€โ”€ _syntax-highlighting.scss
โ”œโ”€โ”€ about.md
โ”œโ”€โ”€ _config.yml                                 # => Configuration options or flags for your site go here
โ”œโ”€โ”€ design.md
โ”œโ”€โ”€ download.md
โ”œโ”€โ”€ feed.xml
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ LICENSE.txt                                 # => Licensing information
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ science.md

More Repositories

1

DevJournal

Jekyll theme for developers! ๐Ÿ’ป
HTML
104
star
2

automata-python

[WIP] ๐Ÿ“š A python automata library implementing Finite Automata, FA with Output and PDA
Python
21
star
3

hemangsk.github.io

Journal
TypeScript
8
star
4

safarnama

Blogging for the free flying spirits โ„๏ธ โ˜€๏ธ ๐Ÿ’ญ
HTML
6
star
5

ht_labs_task

Contains code for the work done for the story
Jupyter Notebook
3
star
6

capacitor-mlkit-language

Capacitor Plugin implementing Language Identification on Android & iOS using Google's on-device ML library - ML Kit
Swift
3
star
7

GSoCReport

Project Report for my Google Summer of Code 2017 work with coala
CSS
3
star
8

Markdown-Hacks

The Best Hacks for GitHub's Markdown. ๐Ÿ˜ƒ ๐Ÿš€ โ˜๏ธ
2
star
9

python-on

๐Ÿ Basic Python, Data Structures and Algorithms using Python & a Python Blog.
Python
2
star
10

try-ionic

Ionic App powered by http://webservices.coala.io
JavaScript
1
star
11

nexus-usict

Android App for all the happenings, sharing ideas and organising at college
Java
1
star
12

SolarEnergyIndia

HTML
1
star
13

python-fetchpdf

A python command line app to download all .pdf files from a link, faster than ligh...sound ๐Ÿš€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐ŸŽ‰
Python
1
star
14

capacitor-tests-example

An example capacitor plugin with JUnit Tests.
Java
1
star
15

BelloMath

Smartass calculator with a 'crazy' mode
Java
1
star
16

campwiki

๐Ÿ“š Community driven campus notes wiki ๐Ÿซ
HTML
1
star
17

LearningManagementSystem

[WIP] An online learning management system to manage assignments and projects for students and teachers.
TypeScript
1
star
18

gh-node-bot-prototype

A prototype of node.js bot ๐Ÿค– which can fetch coafile ๐Ÿ“„ generated using coala-quickstart ๐Ÿจ
JavaScript
1
star
19

software-engineering

Coupling, Cohesion, COCOMO & everything
HTML
1
star
20

Resuming

Jekyll theme to create a kickass resume! ๐Ÿ˜Ž ๐Ÿ“„ ๐Ÿ˜„
CSS
1
star
21

Moment

Jekyll theme for the Free Spirit. ๐Ÿ˜ƒ ๐ŸŽ‰
CSS
1
star
22

water-ice

Jekyll theme for the multitaskers! :bowtie: ๐ŸŽ‰
CSS
1
star
23

Flatlander-Gemstore

Source code of codeschool's AngularJS course
HTML
1
star
24

coafile-bot

I'm a bot code.
Python
1
star