Skip to content

Commit de4d77d

Browse files
committed
bump to 2.7.0
1 parent d948fab commit de4d77d

File tree

13 files changed

+283
-89
lines changed

13 files changed

+283
-89
lines changed

README_from-fork.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Casper
2+
3+
The default theme for [Ghost](http://github.com/tryghost/ghost/). This is the latest development version of Casper. If you're just looking to download the latest release, head over to the [releases](https://github.com/TryGhost/Casper/releases) page.
4+
5+
 
6+
7+
![screenshot-desktop](https://user-images.githubusercontent.com/120485/27221326-1e31d326-5280-11e7-866d-82d550a7683b.jpg)
8+
9+
 
10+
11+
# First time using a Ghost theme?
12+
13+
Ghost uses a simple templating language called [Handlebars](http://handlebarsjs.com/) for its themes.
14+
15+
We've documented our default theme pretty heavily so that it should be fairly easy to work out what's going on just by reading the code and the comments. Once you feel comfortable with how everything works, we also have full [theme API documentation](https://themes.ghost.org) which explains every possible Handlebars helper and template.
16+
17+
**The main files are:**
18+
19+
- `default.hbs` - The main template file
20+
- `index.hbs` - Used for the home page
21+
- `post.hbs` - Used for individual posts
22+
- `page.hbs` - Used for individual pages
23+
- `tag.hbs` - Used for tag archives
24+
- `author.hbs` - Used for author archives
25+
26+
One really neat trick is that you can also create custom one-off templates just by adding the slug of a page to a template file. For example:
27+
28+
- `page-about.hbs` - Custom template for the `/about/` page
29+
- `tag-news.hbs` - Custom template for `/tag/news/` archive
30+
- `author-ali.hbs` - Custom template for `/author/ali/` archive
31+
32+
33+
# Development
34+
35+
Casper styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need [Node](https://nodejs.org/), [Yarn](https://yarnpkg.com/) and [Gulp](https://gulpjs.com) installed globally. After that, from the theme's root directory:
36+
37+
```bash
38+
$ yarn install
39+
$ yarn dev
40+
```
41+
42+
Now you can edit `/assets/css/` files, which will be compiled to `/assets/built/` automatically.
43+
44+
The `zip` Gulp task packages the theme files into `dist/<theme-name>.zip`, which you can then upload to your site.
45+
46+
```bash
47+
$ yarn zip
48+
```
49+
50+
# PostCSS Features Used
51+
52+
- Autoprefixer - Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.
53+
- Variables - Simple pure CSS variables
54+
- [Color Function](https://github.com/postcss/postcss-color-function)
55+
56+
57+
# SVG Icons
58+
59+
Casper uses inline SVG icons, included via Handlebars partials. You can find all icons inside `/partials/icons`. To use an icon just include the name of the relevant file, eg. To include the SVG icon in `/partials/icons/rss.hbs` - use `{{> "icons/rss"}}`.
60+
61+
You can add your own SVG icons in the same manner.
62+
63+
64+
# Copyright & License
65+
66+
Copyright (c) 2013-2018 Ghost Foundation - Released under the [MIT license](LICENSE).

assets/built/infinitescroll.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/infinitescroll.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/jquery.fitvids.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/jquery.fitvids.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)