Skip to content

Commit

Permalink
Fixing the relative path of all contents to /jasper/
Browse files Browse the repository at this point in the history
  • Loading branch information
biomadeira committed Feb 7, 2015
1 parent 33387dd commit d6491af
Show file tree
Hide file tree
Showing 49 changed files with 606 additions and 731 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<figure class="error-image">
<img
class="error-ghost"
src="/assets/images/404.png"/>
src="{{ site.baseurl }}assets/images/404.png"/>
</figure>
<section class="error-message">
<h1 class="error-code">404</h1>
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# Jasper

This is a port of Ghost's default theme [Casper](https://github.com/tryghost/casper) for Jekyll based on the work of
[Kasper](https://github.com/rosario/kasper). You might well ask at this point why bother making a new port (repo)?
[Kasper](https://github.com/rosario/kasper).

You might well ask at this point why bother making a new port (repo)?
Although this is based on a fork of Kasper, there are some *exciting* additional features, making this port closer
to the full Casper Ghost install. The main difference still is the fact that Jasper expects a single author. With a
bit of tweeking it shouldn't be too difficult to enable a per-post author. Other less important bits that can still be
to the full Casper Ghost install.

The main difference still is the fact that Jasper expects a single author. With a
bit of tweeking it shouldn't be too difficult to enable a per-post author.

Other less important bits that can still be
addressed are the tag-descriptions and parsing 'Test Content' as a single tag, instead of as 'Test' and 'Content'. Feel
free to fork, and improve on this.

## View the live demo

[Jasper](https://biomadeira.github.io/jasper)
Live demo at [Jasper](https://biomadeira.github.io/jasper)

Here's the original [Casper](https://demo.ghost.io)

Expand Down
8 changes: 6 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ username: casper
bio: 'A paranormal expert and his daughter bunk in an abandoned house populated by 3 mischievous ghosts and one friendly one.'
location: 'Maine, USA'
url: 'http://biomadeira.github.io/jasper/'
image: '/assets/images/casper.png'
image: 'assets/images/casper.png'

# Jykell configuration
markdown: redcarpet
highlighter: pygments
paginate: 5
language: 'en-uk'
baseurl: http://biomadeira.github.io/jasper/
short_url: 'biomadeira.github.io/jasper'
google_analytics: 'UA-XXXXXXXX-X'
disqus: biomadeira

# this is a fix to properly run jasper on top of my personal
# biomadeira.github.io - all contents run on /jasper/
# for a normal use at the base of the server change it to "/"
baseurl: /jasper/

# Permalinks
permalink: /:title
# permalink: /author/:username
Expand Down
6 changes: 3 additions & 3 deletions _includes/author_pagination.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<nav class="pagination" role="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="/author/{{ site.username }}" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}author/{{ site.username }}" title="Previous Page">&laquo; Newer Posts</a>
{% else %}
<a class="newer-posts" href="/author/{{ site.username }}/page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}author/{{ site.username }}/page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
{% endif %}
{% endif %}
<span class="page-number"> Page {{ paginator.page }} of {{ paginator.total_pages }} </span>
{% if paginator.next_page %}
<a class="older-posts" href="/author/{{ site.username }}/page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
<a class="older-posts" href="{{ site.baseurl }}author/{{ site.username }}/page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
{% endif %}
</nav>
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<link rel="canonical" href="{{ site.baseurl }}" />
<meta name="generator" content="Jekyll 2.5.3" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.baseurl }}/rss.xml" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.baseurl }}rss.xml" />
4 changes: 2 additions & 2 deletions _includes/loop.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
{% for post in paginator.posts %}
<article class="post">
<header class="post-header">
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<h2 class="post-title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
</header>
<section class="post-excerpt">
<p>{{ post.content | truncatewords: 26 }} <a class="read-more" href="{{ post.url }}">&raquo;</a></p>
</section>
<footer class="post-meta">
{% if site.image %}<img class="author-thumb" src="{{ site.image }}" alt="Author image" nopin="nopin" />{% endif %}
{% if site.image %}<img class="author-thumb" src="{{ site.baseurl }}{{ site.image }}" alt="Author image" nopin="nopin" />{% endif %}
<!-- author -->
<a href='{{ site.baseurl }}author/{{ site.username }}'>{{ site.author }}</a>
<!-- [[tags prefix=" on "]] -->
Expand Down
6 changes: 3 additions & 3 deletions _includes/post_pagination.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<nav class="pagination" role="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="/" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}" title="Previous Page">&laquo; Newer Posts</a>
{% else %}
<a class="newer-posts" href="/page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
{% endif %}
{% endif %}
<span class="page-number"> Page {{ paginator.page }} of {{ paginator.total_pages }} </span>
{% if paginator.next_page %}
<a class="older-posts" href="/page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
<a class="older-posts" href="{{ site.baseurl }}page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
{% endif %}
</nav>
6 changes: 3 additions & 3 deletions _includes/tag_pagination.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<nav class="pagination" role="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="/tag/{{ page.tag }}" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}tag/{{ page.tag }}" title="Previous Page">&laquo; Newer Posts</a>
{% else %}
<a class="newer-posts" href="/tag/{{ page.tag }}/page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ site.baseurl }}tag/{{ page.tag }}/page{{ paginator.previous_page }}/" title="Previous Page">&laquo; Newer Posts</a>
{% endif %}
{% endif %}
<span class="page-number"> Page {{ paginator.page }} of {{ paginator.total_pages }} </span>
{% if paginator.next_page %}
<a class="older-posts" href="/tag/{{ page.tag }}/page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
<a class="older-posts" href="{{ site.baseurl }}tag/{{ page.tag }}/page{{ paginator.next_page }}/" title="Next Page">Older Posts &raquo;</a>
{% endif %}
</nav>
21 changes: 5 additions & 16 deletions _layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,18 @@
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />

<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="shortcut icon" href="{{ site.baseurl }}assets/images/favicon.ico">
<meta http-equiv="cleartype" content="on">

<link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
<link rel="stylesheet" href="/assets/css/ghost.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/ghost.min.css">
</head>
<body class="">
<main role="main" id="main">
<div id="container">
<section class="error-content error-404 js-error-container">
<section class="error-details">
<figure class="error-image">
<img
class="error-ghost"
src="/assets/images/404.png"/>
</figure>
<section class="error-message">
<h1 class="error-code">404asda</h1>
<h2 class="error-description">{{ content }}</h2>
<a class="error-link" href="{{ site.baseurl }}">Go to the front page →</a>
</section>
</section>
</section>

{{ content }}

</div>
</main>
<!-- Add Google Analytics -->
Expand Down
2 changes: 1 addition & 1 deletion _layouts/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% else %}
<title>{{ site.short_url }}</title>
{% endif %}
<link>{{ site.full_url }}</link>
<link>{{ site.url }}</link>
<description>{{ site.description }}</description>
<language>{{ site.language }}</language>
<managingEditor> {{ site.author }}</managingEditor>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/author.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Author
cover: '/assets/images/cover1.jpg'
cover: 'assets/images/cover1.jpg'
class: 'author-template'
---
<!-- < default}} -->
Expand All @@ -11,7 +11,7 @@

<!-- Everything inside the #author tags pulls data from the author -->
<!-- #author -->
<header class="main-header author-head {% if page.cover %}" style="background-image: url({{ page.cover }}) {% else %}no-cover{% endif %}">
<header class="main-header author-head {% if page.cover %}" style="background-image: url({{ site.baseurl }}{{ page.cover }}) {% else %}no-cover{% endif %}">
<nav class="main-nav overlay clearfix">
<a class="back-button icon-arrow-left" href="{{ site.baseurl }}">Home</a>
<a class="subscribe-button icon-feed" href="{{ site.baseurl }}author/{{ site.username }}/rss.xml">{{ site.author }}</a>
Expand All @@ -21,7 +21,7 @@
<section class="author-profile inner">
{% if site.image %}
<figure class="author-image">
<div class="img" style="background-image: url({{ site.image }})"><span class="hidden">{{ site.author }}'s Picture</span></div>
<div class="img" style="background-image: url({{ site.baseurl }}{{ site.image }})"><span class="hidden">{{ site.author }}'s Picture</span></div>
</figure>
{% endif %}
<h1 class="author-title">{{ site.author }}</h1>
Expand Down
12 changes: 6 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="shortcut icon" href="/assets/images/favicon.ico" >
<link rel="shortcut icon" href="{{ site.baseurl }}assets/images/favicon.ico" >

<!-- [[! Styles'n'Scripts ]] -->
<link rel="stylesheet" type="text/css" href="/assets/css/screen.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}assets/css/screen.css" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />

<!-- [[! Ghost outputs important style and meta data with this tag ]] -->
{% include head.html %}

<!-- Additional Jekyll Customisation -->
<link rel="stylesheet" type="text/css" href="/assets/css/main.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}assets/css/main.css" />

</head>
<body class="{% if page.class %}{{ page.class }}{% else %}home-template{% endif %}">
Expand All @@ -36,11 +36,11 @@
</footer>

<!-- [[! Ghost outputs important scripts and data with this tag ]] -->
<script type="text/javascript" src="/assets/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}assets/js/jquery-1.11.1.min.js"></script>

<!-- [[! The main JavaScript file for Casper ]] -->
<script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="/assets/js/index.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}assets/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}assets/js/index.js"></script>

<!-- Add Google Analytics -->
{% include analytics.html %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta http-equiv="cleartype" content="on">

<link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
<link rel="stylesheet" href="/assets/css/ghost.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/ghost.min.css">
</head>
<body class="">
<main role="main" id="main">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- Everything inside the #post tags pulls data from the page -->
<!-- #post -->

<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ page.cover }}){% else %}no-cover{% endif %}">
<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ site.baseurl }}{{ page.cover }}){% else %}no-cover{% endif %}">
<nav class="main-nav {% if page.cover %}overlay{% endif %} clearfix">
<a class="back-button icon-arrow-left" href="{{ site.baseurl }}">Home</a>
<a class="subscribe-button icon-feed" href="{{ site.baseurl }}rss.xml">Subscribe</a>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Everything inside the #post tags pulls data from the post -->
<!-- #post -->

<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ page.cover }}) {% else %}no-cover{% endif %}">
<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ site.baseurl }}{{ page.cover }}) {% else %}no-cover{% endif %}">
<nav class="main-nav {% if page.cover %} overlay {% endif %} clearfix">
<a class="back-button icon-arrow-left" href="{{ site.baseurl }}">Home</a>
<a class="subscribe-button icon-feed" href="{{ site.baseurl }}rss.xml">Subscribe</a>
Expand Down Expand Up @@ -54,7 +54,7 @@ <h1 class="post-title">{{ page.title }}</h1>

{% if site.image %}
<figure class="author-image">
<a class="img" href="{{ site.baseurl }}author/{{ site.username }}" style="background-image: url({{ site.image }})"><span class="hidden">{{ page.author }}'s Picture</span></a>
<a class="img" href="{{ site.baseurl }}author/{{ site.username }}" style="background-image: url({{ site.baseurl }}{{ site.image }})"><span class="hidden">{{ page.author }}'s Picture</span></a>
</figure>
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions _layouts/tag.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: default
no-cover: '/assets/images/cover1.jpg'
no-cover: 'assets/images/cover1.jpg'
title: Tags
class: 'tag-template'
---
<!-- < default}} -->
<!-- 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 {% if page.cover %}" style="background-image: url({{ page.cover }}) {% else %}no-cover{% endif %}">
<header class="main-header {% if page.cover %}" style="background-image: url({{ site.baseurl }}{{ page.cover }}) {% else %}no-cover{% endif %}">
<nav class="main-nav overlay clearfix">
<a class="back-button icon-arrow-left" href="{{ site.baseurl }}">Home</a>
<a class="subscribe-button icon-feed" href="{{ site.baseurl }}tag/{{ page.tag }}/rss.xml">{{ page.tag }}</a>
Expand Down
2 changes: 1 addition & 1 deletion _posts/1863-11-19-gettysburg-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
cover: false
title: Gettysburg Address
date: 1863-11-19 10:18:00
tags: ficiton
tags: fiction
subclass: 'post tag-fiction'
categories: 'casper'
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/1865-11-26-down-the-rabbit-hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
cover: false
title: Down The Rabbit Hole
date: 1865-11-26 10:18:00
tags: ficiton
tags: fiction
subclass: 'post tag-fiction'
categories: 'casper'
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/1871-03-18-looking-glass-house.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
cover: false
title: Looking-Glass house
date: 1871-03-18 10:18:00
tags: ficiton
tags: fiction
subclass: 'post tag-fiction'
categories: 'casper'
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/1912-07-24-out-to-sea.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
cover: '/assets/images/cover2.jpg'
cover: 'assets/images/cover2.jpg'
title: Out to Sea
date: 1912-07-24 10:18:00
tags: fiction
Expand Down
2 changes: 1 addition & 1 deletion _posts/1948-12-12-the-purpose-of-education.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
cover: '/assets/images/cover2.jpg'
cover: 'assets/images/cover2.jpg'
title: The Purpose of Education
date: 1948-12-12 10:18:00
tags: speaches
Expand Down
2 changes: 1 addition & 1 deletion _posts/2014-09-27-a-full-and-comprehensive-style-test.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
cover: '/assets/images/cover3.jpg'
cover: 'assets/images/cover3.jpg'
title: A Full and Comprehensive Style Test
date: 2014-09-27 10:18:00
tags: test content
Expand Down
6 changes: 3 additions & 3 deletions _site/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta http-equiv="cleartype" content="on">

<link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
<link rel="stylesheet" href="/assets/css/ghost.min.css">
<link rel="stylesheet" href="/jasper/assets/css/ghost.min.css">
</head>
<body class="">
<main role="main" id="main">
Expand All @@ -27,12 +27,12 @@
<figure class="error-image">
<img
class="error-ghost"
src="/assets/images/404.png"/>
src="/jasper/assets/images/404.png"/>
</figure>
<section class="error-message">
<h1 class="error-code">404</h1>
<h2 class="error-description">Page Not Found</h2>
<a class="error-link" href="/">Go to the front page →</a>
<a class="error-link" href="/jasper/">Go to the front page →</a>
</section>
</section>
</section>
Expand Down
14 changes: 10 additions & 4 deletions _site/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# Jasper

This is a port of Ghost's default theme [Casper](https://github.com/tryghost/casper) for Jekyll based on the work of
[Kasper](https://github.com/rosario/kasper). You might well ask at this point why bother making a new port (repo)?
[Kasper](https://github.com/rosario/kasper).

You might well ask at this point why bother making a new port (repo)?
Although this is based on a fork of Kasper, there are some *exciting* additional features, making this port closer
to the full Casper Ghost install. The main difference still is the fact that Jasper expects a single author. With a
bit of tweeking it shouldn't be too difficult to enable a per-post author. Other less important bits that can still be
to the full Casper Ghost install.

The main difference still is the fact that Jasper expects a single author. With a
bit of tweeking it shouldn't be too difficult to enable a per-post author.

Other less important bits that can still be
addressed are the tag-descriptions and parsing 'Test Content' as a single tag, instead of as 'Test' and 'Content'. Feel
free to fork, and improve on this.

## View the live demo

[Jasper](https://biomadeira.github.io/jasper)
Live demo at [Jasper](https://biomadeira.github.io/jasper)

Here's the original [Casper](https://demo.ghost.io)

Expand Down
Loading

0 comments on commit d6491af

Please sign in to comment.