GithubHelp home page GithubHelp logo

tryghost / casper Goto Github PK

View Code? Open in Web Editor NEW
2.5K 83.0 2.8K 5.7 MB

The default theme for Ghost

Home Page: https://demo.ghost.io

License: MIT License

JavaScript 15.81% CSS 57.02% Handlebars 27.16%
ghost ghost-theme publishing blogging magazine

casper's People

Contributors

acburdine avatar aileen avatar allouis avatar cobbspur avatar daniellockyer avatar erisds avatar halfdan avatar jakegiltsoff avatar jitendravyas avatar johnonolan avatar kevinansfield avatar kezzbracey avatar kirrg001 avatar lukaszklis avatar mankittens avatar minimaluminium avatar naz avatar novaugust avatar pauladamdavis avatar peterzimon avatar rafaelstz avatar renovate-bot avatar renovate[bot] avatar rishabhgrg avatar sam-lord avatar sanne-san avatar tauromachian avatar ybbuc avatar yoranbrondsema avatar zce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

casper's Issues

Can't read header text on light background images

From an email;

There is just one thing though, if I uploaded a picture for the Cover with a lot of white color, the blog title and description can't be read. I advice it is best if both the title and description have tiny shadows on them.

Settings naming

Related to #11

I actually meant to raise a naming issue about this - potentially better as "blog" rather than "settings" ? as in blog.title or blog.logo or blog.globalthingrelatingtotheblog

Rename "settings" to "blog". We may have other types of setting exposed to the frontend soon.

Feature should be first post

Casper was never intended to have the concept of featured posts, but the first post on the homepage should always be displayed in full.

At the moment we have 2 different templates (partials) for displaying a post, the list one you see on the homepage, and the the "feature" one which you see when you click through to a post

As per http://john.onolan.org/, it was intended that the first post on the home page would be displayed in full.

Originally, I interpreted this as a post marked as a feature. But this is incorrect. Rather, it should just be the very first post in the list.

  • - Remove the concept of features, including renaming the feature template to something else
  • - Always display the first post on the homepage in full, using what is currently the "feature" partial template.

Really long post title does not display correctly

From @aboutte:

Summary of Issue

Really long post title does not display correctly
  

Steps to reproduce

  • crate a new post
  • Title it: "a REALLY LOOOooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo title!"
      
    Observed result

screen shot 2013-08-18 at 11 21 36 am
screen shot 2013-08-18 at 11 22 28 am

Desired result

Smaller font size?

Additional Information

Client OS: Mac OS X 10.8.4
Server OS: CentOS 6
Node Version: 0.10.16
Ghost Build Number: 0.2.1
Latest Commit: e765af4
Browser: Chrome 28.0.1500.95

The user location in small size screen is ugly! See the image!

After setting user location, it is ugly in small size screen such as iphone. You can just resize your browser to test. I think the location shoud be in the middle of the line which will be better. See the image!
14-4-11 21 31 18
Then I dig into the css code, at line 687 of the assets/css/screen.css, I found the code below:

.author-meta li {
    float: left;
    margin-left: 10px; /* space to the left of the bullet */
}

After I detele float: left, everything is ok. I wonder anyone has the same feeling.

Add "tag.hbs" and "package.json"

I thought it might be helpful if I add in a "tag.hbs" file and a "package.json".

I've just styled the tag archive page to look much like the single post page.

I've also set the version number to 0.2.0 but I'm not sure if that's correct?

Will submit a pull request shortly.

iPhone Emoji Girl

Not sure if this is an issue but when running Casper 1.0.0 and you're in a post there is a link to 'Home' but there is also an emoji to the left of this. I did take a screenshot but can't seem to attach it from my iPhone.

Header renders differently on posts and pages

Found by @AJ-Acevedo

The Ghost text in the header with the class blog-logo looks different on a post page than it does on a static page.

The header of static pages look like this:
ghost-page

The header of post page looks like this:
ghost-post

Mac OS X 10.9.1
node 0.10.24
ruby 2.0.0p353
Sass 3.2.12
Dev Mode
DB: SQLite

Images break out on refresh rather than load

This was originally raised on Ghost.

In 0efa582 @JohnONolan added a new feature to Casper, where images break out and become wider than the text.

However, that only seems to be happening on refresh, or second load, it never happens the first time. I have reproduced this on Firefox, so it doesn't seem to be part of the same issue as the big-font rendering issue which happens in Chrome/Safari?

For an example, visit hannah.wf and click on 'Spring Reflections'. Here it is in gif form:

image

It breaks out after I hit Cmd + R.

Better support for full-bleed responsive images

It would be nice if large images could break outside the width of the post content, but small images stayed centered, and all images went full-bleed on smaller screens. BUT CAN IT BE DONE?

Link and link icon get separated with long URL

Originally reported by @andyboutte here: TryGhost/Ghost#3514


Summary of Issue

With a long Website the link and link icon fall on separate lines

Steps to reproduce

Observed result

The link icon stays on the line with the Location but the URL falls to the next line

screen shot 2014-07-31 at 9 43 09 pm

Desired result

The link and the link icon should stay together

screen shot 2014-07-31 at 9 43 57 pm

Additional Information

Client OS: Mac OS X 10.9.4
Server OS: Mac OS X 10.9.4
Node Version: v0.10.21
Ghost Build Number: 0.5.0 rc1
Latest Commit:
Ghost Database: SQLite3
Browser: Chrome 36.0.1985.125

invisible text

ghosty ghost

very weird but sometimes text becomes invisible... when i inspect elements and change some style causing browser to redraw then it appears. still many people end up seeing blank page when they visit 😿

Images does not "center" on some mobile devices

On mobile devices, embedded images in blog posts may not be "centered", like they do on desktop PC/Mac browsers.

Here's a screenshot of the "image center" issue.

What is shown on my desktop PC:

xspswe7

What is shown on my smartphone (Nexus 4):

pqrwzzf

Hide away anything which doesn't work in Casper

Casper currently has quite a few bits and pieces in it which don't work, these should be removed so that deployed blogs don't look weird or act broken.

Please hide (comment out) the following, and anything else you can find

  • - Post footer content
  • - Picture of John

Bug: If a Tag is Really Long, the Title CSS is Messed Up

Originally raised as TryGhost/Ghost#3668 by @dbalders


Issue Summary

If you have a really long tag, the whole header is messed up and bleeds in with the rss feed making it un-clickable.

screen shot 2014-08-07 at 7 51 23 pm

Steps to Reproduce

  1. Create a really long tag on a post
  2. Go to that tag's page

Technical details:

  • Ghost Version: 0.5.0-rc2
  • Client OS: Mac 10.9
  • Server OS: Mac 10.9
  • Browser: Chrome
  • Database: SQLite
  • Local

Problem with the asset path

I downloaded the repo directly and made some changes on the post.hbs. After the compressed zip file is uploaded, the rendered page shows an error for the asset path of CSS/JS files:

<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />

=>

<link rel="stylesheet" type="text/css" href="&lt;link rel=" stylesheet"="">

Droid Sans font does not support all languages

First of all, I wanted to say that I absolutely love Ghost, it is swesome! I also really like Casper theme, but it uses Droid Serif font, which does not support all the letters in my language (e.g, ā, ē, ī). I replaced it with Noto Serif, which is very similar, but I wanted to address this issue, because Casper is the default theme.

Links outside posts aren't obvious

I have to think about which items on the page might be links. They might be more noticeable on better monitors, but it makes for bad UX for everyone else.

Error in CSS syntax

Ghost v0.3.2

screen.css

321 line. not correct hierarchy:
table.plain {
tbody > tr:nth-child(odd) > td,
tbody > tr:nth-child(odd) > th {
background: transparent;
}
}

and 414 line. Invalid value:
break-word

Height of blog cover is smaller on page 2 vs. on the homepage

The height of blog cover is smaller on page 2, etc. compared to the homepage.

Screenshot of blog cover on homepage (in the latest Firefox):

bqxk3jj

Screenshot of blog cover on page 2:

hqeiujf

You can see a "live" version of this bug on my blog here. Please note that I tweaked the capser theme so that the blog cover height is 38% instead of 60%, but I checked and this does not affect the bug in any way.

Upon further investigation, I have found that on blog homepage, the html source contains:

<body class="home-template">

But on page 2, page 3, etc., the html source contains this instead:

<body class="archive-template">

If you look in "content/themes/casper/assets/css/screen.css", search for "archive-template" yields the following:

.archive-template .site-head {
    height: auto; 
    padding-bottom: 5rem;
}

Note that the height is "auto". If you look at the main theme section, however, you will see:

.site-head {
    position: relative;
    display: table;
    width: 100%;
    height: 60%; 
    ... ...
}

And you see the height is "60%" here. This explains why the blog cover is much less in height on page 2. Is this "by design"? Or is the "archive-template" incorrectly used on page 2, etc.?

Thank you for looking into this.

Clean up facebook share

When you try to share a post on facebook and your blog is using the the Casper theme, the result is the below. I think with a few meta tags we could clean that up real nice.

image

Sexier typography for posts

Currently the typography on posts could use some love.

  • Headings are not clearly relating to their correct content (closer to the paragraph above or simply sitting in the middle with no clear relation)
  • Line-height could use some adjusting, perhaps with a baseline grid to make sure a reading experience isn't tiring

Some helpful posts to better the typography overall beyond just the above:
Grids from typography
Between the lines
Fluid Type

default.hbs meta tag is invalid

On line 5:
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />

should be:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Add Social Media tags

Right now Casper doesn't seem to have any tags that let social media sites such as Facebook or Twitter easily parse the content for their previews; thus sharing Ghost articles requires manual work to provide as much information as possible at a glance. (See this forum post for a user reporting problems with Facebook sharing and pre-filled information)

Implementation of these tags would improve sharing and encourage theme developers to include them as well.

Information on various tags:
Open Graph Protocol (Facebook)
Twitter Cards

Embedded Gists Styling

Someone on twitter has reported that the styles of embedded gists look a little wonky.

You can include this tag in a post to test it out for yourself.

<script src="https://gist.github.com/jgable/6598091.js"></script>

Bug: Go back to home page

When you are on tags template and dont have a {{blog.logo}} you cant go back to home page, because the {{blog.title}} doesn`t have a link on it.

Fixup un-scoped IDs

Any id's such as #ghost need to be removed or scoped to the part of the page they apply to

Background color is not set

I just got this comment on my blog using Ghost 0.3.3-azure.

"Your blog's theme is not dark-background-friendly at all. Apparently the text is defined as gray, but the background is not defined. My default background is gray so it looks... not great!"

This seems to cause some issue on Firefox where you can set the preferred background color to e.g. dark. Probably other browsers have the same features too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.