Compare commits

...

11 Commits

Author SHA1 Message Date
Hannah Wolfe
1deac8284c Upgrading Casper to 1.4.0
- version bump commit
2017-07-20 20:52:40 +01:00
John O'Nolan
4c5a48af97 Update readme for Casper 1.4 2017-06-19 13:55:18 +01:00
Marge Marshall
3888fd30fc fixed input for checkboxes and radio buttons on chrome and safari (#299)
closes #271
2017-06-19 13:27:49 +01:00
John O'Nolan
2ed0e02eae Revert #310
This breaks line wrapping completely, so text does not wrap to a new line when it reaches the width of its containing element
2017-06-19 13:25:53 +01:00
Kevin Ansfield
7dd5f54e69 Add beta warning to README 2017-06-08 19:17:04 +01:00
Kevin Ansfield
51d444f32f Merge branch 'ghost-1.0' 2017-06-08 19:09:49 +01:00
Phoenix Eve Aspacio
2334ca8aa4 Allow line breaks from Bio (#310) 2017-06-05 09:06:47 +01:00
Katharina Irrgang
be6b9750d9 add default posts per page to package.json (#309)
refs https://github.com/TryGhost/Ghost/issues/8131, refs https://github.com/TryGhost/gscan/issues/40

- we would like to show a recommendation for theme validation
- this recommendation could look like "package.json `config.posts_per_page` is recommended. Default is 5`
2017-06-01 13:10:23 +07:00
Katharina Irrgang
5487b4da8d 🔥 rename images (#304)
refs https://github.com/TryGhost/Ghost/issues/8348
- `profile_image` && `cover_image` for author and fallback
- `feature_image` for tag/post
2017-04-24 17:00:00 +01:00
Aileen Nowak
ccf903feff 🤖 Remove favcicon html tag (#282)
refs TryGhost/Ghost#7688

Removes `<link rel="shortcut icon" href="{{asset "favicon.ico"}}">` from `default.hbs` as it will be rendered now via `ghost_head`.
2017-03-14 18:12:07 +01:00
Hannah Wolfe
3d74b1b918 Remove explicit {{meta_description}}
refs TryGhost/Ghost#4424

- as  of https://github.com/TryGhost/Ghost/pull/8150, `{{ghost_head}}` will output the meta description if Ghost is able to determine a sensible value to output.
2017-03-14 18:12:07 +01:00
10 changed files with 20 additions and 24 deletions

View File

@ -1,10 +1,7 @@
# Casper
The default theme for [Ghost](http://github.com/tryghost/ghost/).
To download, visit the [releases](https://github.com/TryGhost/Casper/releases) page.
The default theme for [Ghost](http://github.com/tryghost/ghost/). Casper 1.4 is the last release of Casper's original design, created to be compatible **ONLY with Ghost 1.0** and above. If you are running an earlier version of Ghost, you will need [Casper 1.3.7](https://github.com/TryGhost/Casper/releases/tag/1.3.7). For all other versions of Ghost, we recommend switching to the [latest release](https://github.com/TryGhost/Casper/releases) of Casper, with an updated design.
## Copyright & License
Copyright (c) 2013-2017 Ghost Foundation - Released under the [MIT license](LICENSE).

View File

@ -446,7 +446,7 @@ margin on the iframe, cause it breaks stuff. */
margin: 0;
}
textarea, select, input {
textarea, select, input:not([type="radio"]):not([type="checkbox"]){
width: 260px;
padding: 6px 9px;
margin: 0 0 5px 0;

View File

@ -5,7 +5,7 @@
{{!-- Everything inside the #author tags pulls data from the author --}}
{{#author}}
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
<header class="main-header author-head {{#if cover_image}}" style="background-image: url({{cover_image}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
@ -15,9 +15,9 @@
</header>
<section class="author-profile inner">
{{#if image}}
{{#if profile_image}}
<figure class="author-image">
<div class="img" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></div>
<div class="img" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></div>
</figure>
{{/if}}
<h1 class="author-title">{{name}}</h1>

View File

@ -7,15 +7,11 @@
{{!-- Page Meta --}}
<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />
{{!-- Mobile Meta --}}
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{!-- Brand icon --}}
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />

View File

@ -2,7 +2,7 @@
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{!-- The big featured header --}}
<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
<header class="main-header {{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}

View File

@ -2,7 +2,7 @@
"name": "casper",
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
"demo": "https://demo.ghost.io",
"version": "1.3.6",
"version": "1.4.0",
"engines": {
"ghost": ">=0.9.0 <1.0.0"
},
@ -23,6 +23,9 @@
"Personal Blogs"
]
},
"config": {
"posts_per_page": 5
},
"keywords": [
"ghost",
"theme"

View File

@ -6,8 +6,8 @@
{{!-- Everything inside the #post tags pulls data from the page --}}
{{#post}}
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
<header class="main-header post-head {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if feature_image}}overlay{{/if}} clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>

View File

@ -13,7 +13,7 @@
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">&raquo;</a></p>
</section>
<footer class="post-meta">
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{author}}
{{tags prefix=" on "}}
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMMM YYYY"}}</time>

View File

@ -6,8 +6,8 @@
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
<header class="main-header post-head {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if feature_image}}overlay{{/if}} clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
@ -34,9 +34,9 @@
{{!-- Everything inside the #author tags pulls data from the author --}}
{{#author}}
{{#if image}}
{{#if profile_image}}
<figure class="author-image">
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
<a class="img" href="{{url}}" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}
@ -90,7 +90,7 @@
{{!-- Links to Previous/Next posts --}}
<aside class="read-next">
{{#next_post}}
<a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
<a class="read-next-story {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}" href="{{url}}">
<section class="post">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}&hellip;</p>
@ -98,7 +98,7 @@
</a>
{{/next_post}}
{{#prev_post}}
<a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
<a class="read-next-story prev {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}" href="{{url}}">
<section class="post">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}&hellip;</p>

View File

@ -2,7 +2,7 @@
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{!-- If we have a tag cover, display that - else blog cover - else nothing --}}
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
<header class="main-header tag-head {{#if tag.feature_image}}" style="background-image: url({{tag.feature_image}}){{else}}{{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}