Skip to content

Commit f03a338

Browse files
committed
Updated README.md
1 parent 2f0e61c commit f03a338

1 file changed

Lines changed: 39 additions & 109 deletions

File tree

README.md

Lines changed: 39 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,42 @@
1-
## Jasper2
2-
3-
[![Build Status](https://travis-ci.org/jekyller/jasper2.svg?branch=master)](https://travis-ci.org/jekyller/jasper2)
4-
[![Ruby](https://img.shields.io/badge/ruby-2.4.2-blue.svg?style=flat)](http://travis-ci.org/jekyller/jasper2)
5-
[![Jekyll](https://img.shields.io/badge/jekyll-3.6.2-blue.svg?style=flat)](http://travis-ci.org/jekyller/jasper2)
6-
7-
This is a full-featured port of Ghost's default theme [Casper](https://github.com/tryghost/casper)
8-
*v2.1.9* for [Jekyll](https://jekyllrb.com/) / [GitHub Pages](https://pages.github.com/).
9-
10-
## Live Demo
11-
12-
[Ghost's Casper](https://demo.ghost.io) // [Jasper2](https://jekyller.github.io/jasper2)
13-
14-
![home page](https://raw.githubusercontent.com/jekyller/jasper2/master/assets/screenshot-desktop.jpg)
15-
16-
17-
## Features
18-
19-
* Out of the box support for multiple authors (via `_data/authors.yml`)
20-
* Full author information including: picture, bio, website, twitter, facebook, etc.
21-
* Tag description(s) and personalised covers (via `_data/tags.yml`)
22-
* Related posts view at the bottom of each post
23-
* All Ghost default pages: Author page(s), Tag page(s), About page(s), 404, etc.
24-
* Pagination (infinite scrolling or standard pagination, i.e. posts across multiple pages)
25-
* Atom Feeds by [Jekyll-feed](https://github.com/jekyll/jekyll-feed)
26-
* Toggleable subscribe button (requires an external service)
27-
* Code Syntax Highlight with [highlight.js](https://highlightjs.org/)
28-
* Support for Google Analytics tracking
29-
* Support for Disqus comments (not Ghost standard)
30-
31-
32-
## Getting Started
33-
34-
### Deployment
35-
36-
**Important:** For security reasons, Github does not allow plugins (under `_plugins/`) when
37-
deploying with Github Pages. This means:
38-
39-
**1)** that we need to generate your site locally (more details below) and push the resulting
40-
HTML (the contents of `_site/` or `../jasper2-pages/`) to a Github repository, that GitHub Pages
41-
then host;
42-
43-
**2)** built the site with [travis-ci](https://travis-ci.org/) (with goodies from
44-
[jekyll-travis](https://github.com/mfenner/jekyll-travis)) automatically pushing the
45-
generated HTML files to a *gh-pages* branch.
46-
This later approach is the one I am currently using to generate the live demo.
47-
48-
**3)** deploy the static website with Jekyll-compatible hosters, such as https://www.netlify.com/, that allow for deployment from the Github repo and publish the website using CDNs. Netlify has a free starter offer.
49-
50-
For option **1)** simply clone this repository (*master branch*), and then run
51-
`bundle exec jekyll serve` inside the directory. Upload the resulting `_site/` (or `../jasper2-pages/`)
52-
contents to your repository (*master branch* if uploading as your personal page
53-
(e.g. username.github.io) or *gh-pages branch* if uploading as a project page
54-
(as for the [demo](https://github.com/jekyller/jasper2/tree/gh-pages)).
55-
56-
For option **2)** you will need to set up travis-ci for your personal fork. Briefly all you
57-
need then is to change your details in *[\_config.yml](_config.yml)* so that you can push
58-
to your github repo. You will also need to generate a secure key to add to your
59-
*[.travis.yml](.travis.yml)* (you can find more info on how to do it in that file).
60-
Also make sure you read the documentation from
61-
[jekyll-travis](https://github.com/mfenner/jekyll-travis). This approach has clear
62-
advantages in that you simply push your file changes to GitHub and all the HTML files
63-
are generated for you and pushed to *gh-pages*. Also you get to know if everything is
64-
still fine with your site builds. Don't hesitate to contact me if you still have any
65-
issues (see below about issue tracking).
66-
67-
### Author Pages
68-
69-
In order to properly generate author pages you need to rename the field *author* in the
70-
front matter of every post to match that of your each author's *username* as defined
71-
in the *[\_data/authors.yml](_data/authors.yml)* file.
72-
With the latest update, multiple author blogs are now supported out of the box.
73-
74-
### Compiling Styles
75-
76-
Following on the way Casper styles are compiled as [described here](https://github.com/tryghost/casper#development):
77-
78-
Jasper2 styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node and Gulp installed globally. After that, from the theme's root directory:
79-
80-
```bash
81-
$ npm install
82-
$ gulp
1+
# AI4India
2+
Using AI for India
3+
4+
## Usage
5+
6+
### Adding a Post
7+
8+
- Create a markdown file (.md) file in any of the `_posts` directory (choose a sub-directory so that it will be organised). The `.md` file must contain this following front matter
9+
10+
```markdown
11+
---
12+
layout: post
13+
current: post
14+
cover: <path to image you as the cover image (/assets/images/<image name>)>
15+
navigation: True
16+
title: <Title of the post>
17+
date: <date and time>
18+
tags: <refer _data/tags.yml . Enter the tag which suits you or create a new one>
19+
class: post-template
20+
subclass: 'post tag-getting-started'
21+
author: <refer _data/author.yml . Enter the names which suits you or create a new one>
22+
---
8323
```
8424

85-
Now you can edit `/assets/css/` files, which will be compiled to `/assets/built/` automatically.
86-
87-
## Issues and Contributing
88-
89-
This install builds well with Ruby v2.4.2 and Jekyll v3.6.2. If you run into any problems
90-
please log them on the [issue tracker](https://github.com/jekyller/jasper2/issues).
91-
92-
Feel free pull-request your patches and fixes.
93-
94-
## Thanks
95-
96-
97-
Many thanks to the Ghost team for all the design work. Also many thanks to all contributors,
98-
that help keeping the project alive and updated :smile:
99-
100-
101-
## Copyright & License
102-
103-
Same licence as the one provided by Ghost's team. See Casper's theme [license](GHOST.txt).
104-
105-
Copyright (C) 2015-2018 - Released under the MIT License.
106-
107-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
108-
109-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25+
Example one
26+
27+
```markdown
28+
---
29+
layout: post
30+
current: post
31+
cover: assets/images/agriculture.jpg
32+
navigation: True
33+
title: Agriculture
34+
date: 2017-07-27 09:00:00
35+
tags: [Agriculture]
36+
class: post-template
37+
subclass: 'post tag-getting-started'
38+
author: lewis
39+
---
40+
```
11041

111-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
112-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42+
Then fill your content. Note that you can use markdown syntax for styling.

0 commit comments

Comments
 (0)