Compare commits

...

6 Commits
2.4.2 ... 2.5.0

Author SHA1 Message Date
89ea6c5872 Upgrading Casper to 2.5.0 2018-08-16 13:59:03 +02:00
9d803067a4 🛠 Added .travis.yml and gscan tests (#470)
- Add gscan dependency & travis.yml file, so that we can run gscan as a test for this repo
- This check tells us whether or not the theme is valid & compatible with Ghost according to gscan
- We recommend that all themes do this!
2018-08-14 22:10:01 +01:00
0ea375643b Added required "ghost-theme" keyword
- We're going to start showing this as a warning in gscan
- The purpose is to give us a way to detect if a package is a valid Ghost theme
2018-08-13 14:29:56 +01:00
f31957bd0d Replaced {{author}} by {{primary_author}} in byline-single.hbs
refs https://github.com/TryGhost/gscan/issues/99

- single author usages will be deprecated in Ghost 2.0
- make Casper 100% compatible with Ghost 2.0
2018-08-12 15:02:03 +02:00
36841d4624 Set minimum Ghost version to 2.0 2018-08-11 20:22:43 +01:00
d41fcbbc8a Remove .kg-card-markdown styles
no issue
- `.kg-card-markdown` no longer exists in Ghost 2.x
2018-08-11 19:09:58 +01:00
7 changed files with 776 additions and 62 deletions

6
.travis.yml Normal file
View File

@ -0,0 +1,6 @@
language: node_js
sudo: false
node_js:
- "8"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1826,20 +1826,6 @@ Usage (In Ghost editor):
max-width: 920px; max-width: 920px;
} }
/* For Ghost 1.0 */
.kg-card-markdown {
display: flex;
flex-direction: column;
align-items: center;
max-width: 100%;
}
.post-template .kg-card-markdown > p:first-child {
font-size: 1.25em;
line-height: 1.5em;
}
/* ^ .kg-card-markdown will be will disappear in Ghost 2.0 */
.post-template .post-content > p:first-child { .post-template .post-content > p:first-child {
font-size: 1.25em; font-size: 1.25em;
line-height: 1.5em; line-height: 1.5em;

View File

@ -2,9 +2,9 @@
"name": "casper", "name": "casper",
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.", "description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
"demo": "https://demo.ghost.io", "demo": "https://demo.ghost.io",
"version": "2.4.2", "version": "2.5.0",
"engines": { "engines": {
"ghost": ">=1.2.0" "ghost": ">=2.0.0"
}, },
"license": "MIT", "license": "MIT",
"screenshots": { "screenshots": {
@ -12,8 +12,9 @@
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"scripts": { "scripts": {
"dev": "gulp", "dev": "gulp",
"zip": "gulp zip" "zip": "gulp zip",
"test": "gscan ."
}, },
"author": { "author": {
"name": "Ghost Foundation", "name": "Ghost Foundation",
@ -29,7 +30,8 @@
}, },
"keywords": [ "keywords": [
"ghost", "ghost",
"theme" "theme",
"ghost-theme"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
@ -40,6 +42,7 @@
"devDependencies": { "devDependencies": {
"autoprefixer": "6.3.6", "autoprefixer": "6.3.6",
"cssnano": "3.7.1", "cssnano": "3.7.1",
"gscan": "^2.0.0",
"gulp": "3.9.1", "gulp": "3.9.1",
"gulp-livereload": "3.8.1", "gulp-livereload": "3.8.1",
"gulp-postcss": "6.1.1", "gulp-postcss": "6.1.1",

View File

@ -1,5 +1,5 @@
{{!-- Everything inside the #author tags pulls data from the author --}} {{!-- Everything inside the #author tags pulls data from the author --}}
{{#author}} {{#primary_author}}
<section class="author-card"> <section class="author-card">
{{#if profile_image}} {{#if profile_image}}
@ -20,4 +20,4 @@
<a class="author-card-button" href="{{url}}">Read More</a> <a class="author-card-button" href="{{url}}">Read More</a>
</div> </div>
{{/author}} {{/primary_author}}

797
yarn.lock

File diff suppressed because it is too large Load Diff