Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ paginate: 15
baseurl: /
domain_name: 'http://yourblog-domain.com'
google_analytics: 'UA-XXXXXXXX-X'
navigation:
- label: About
url: /about.html

# Details for the RSS feed generator
url: 'blog url'
author: 'Your Name'
url: 'blog url'
author: 'Your Name'
bio: Here goes the author description. You might want to place some links too in here
location: Anytown, USA
website: https://google.com
13 changes: 13 additions & 0 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="nav">
<h3 class="nav-title">Menu</h3>
<a href="#" class="nav-close">
<span class="hidden">Close</span>
</a>
<ul>
{% for nav in site.navigation %}
<li class="{%if current%} nav-current{%endif%}" role="presentation"><a href="{{nav.url}}">{{nav.label}}</a></li>
{% endfor %}
</ul>
<a class="subscribe-button icon-feed" href="/rss.xml">Subscribe</a>
</div>
<span class="nav-cover"></span>
39 changes: 24 additions & 15 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,30 @@
<!-- Customisation -->
<link rel="stylesheet" type="text/css" href="/assets/css/main.css" />

<link rel='alternate' type='application/rss+xml' title='RSS' href='/rss.xml'>

</head>
<body class="{% if page.post_class %}{{page.post_class}}{% else %}home-template{% endif %}">

{{ content }}
<footer class="site-footer clearfix">
<section class="copyright">
<a href="{{ site.baseurl }}">{{ site.name }}</a> &copy;
{{date format="YYYY"}} &bull; All rights reserved.
</section>
<section class="poweredby">Made with Jekyll using
<a href="http://github.com/rosario/kasper">Kasper theme</a>
</section>
</footer>

<script type="text/javascript" src="/assets/js/jquery-1.11.1.min.js"></script>
<body class="{% if page.post_class %}{{page.post_class}}{% else %}home-template{% endif %} nav-closed">

{%if site.navigation %}
{% include navigation.html %}
{% endif %}

<div class="site-wrapper">

{{ content }}

<footer class="site-footer clearfix">
<section class="copyright">
<a href="{{ site.baseurl }}">{{ site.name }}</a> &copy;
{{'now' | date: "%Y"}} &bull; All rights reserved.
</section>
<section class="poweredby">Proudly published with <a href="https://jekyllrb.com">Jekyll</a>.</section>
</footer>

</div>

<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="/assets/js/index.js"></script>

Expand All @@ -47,6 +56,6 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</script>
</body>
</html>
30 changes: 13 additions & 17 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
---
layout: default
post_class: post-template page-template
cover: false
---

<nav class="main-nav 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>
</nav>

<header class="main-header post-head {%if page.cover%}" style="background-image: url({{page.cover}}){%else%}no-cover{%endif%}">
<nav class="main-nav {%if page.cover%}overlay{%endif%} clearfix">
{%if site.logo%}<a class="blog-logo" href="{{site.url}}"><img src="{{site.logo}}" alt="{{site.title}}" /></a>{%endif%}
{%if site.navigation %}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{% endif %}
</nav>
</header>

<main class="content" role="main">
<article class="post">
<!-- <header class="post-header">
<a id="blog-logo" href="{{site.baseurl}}">
{% if site.logo %}
<img src="{{site.logo}}" alt="{{ site.name }}" />
{% else %}
<span class="blog-title">{{ site.name }}</span>
{%endif%}
</a>
</header> -->
<article class="post page">

<h1 class="post-title">{{ page.title }}</h1>
<header class="post-header">
<h1 class="post-title">{{page.title}}</h1>
</header>

<section class="post-content">
{{content}}
</section>

</article>

</main>
63 changes: 45 additions & 18 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
post_class: post-template
---

<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ 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>
<header class="main-header post-head {% if page.cover %}" style="background-image: url({{page.cover}}){%else%}no-cover{%endif%}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
{%if site.logo%}<a class="blog-logo" href="{{ site.baseurl }}"><img src="{{site.logo}}" alt="{{site.name}}" /></a>{%endif%}
{%if site.navigation %}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{% endif %}
</nav>
</header>

Expand All @@ -18,10 +20,10 @@

<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<section class="post-meta">
<section class="post-meta">
<time class="post-date" datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time>
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
</section>
</header>
Expand All @@ -32,14 +34,14 @@ <h1 class="post-title">{{ page.title }}</h1>
<img src="{{site.logo}}" alt="{{ site.name }}" />
{% else %}
<span class="blog-title">{{ site.name }}</span>
{%endif%}
{%endif%}
</a>
</header> -->

<!-- <span class="post-meta">
<time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time>
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
</span> -->

Expand All @@ -55,7 +57,7 @@ <h5>Archive</h5>
<ul>
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
{% endfor %}
</ul>
</section>
{% endif %}
Expand All @@ -71,22 +73,47 @@ <h5>Archive</h5>
<!-- Author Name -->
<h4> {{ site.author }} </h4>
<!-- Author Bio -->
<p>
Here goes the author description. You might want to place some links too in here
</p>
</section>
{%if site.bio%}
<p>{{site.bio}}</p>
{%else%}
<p>Read <a href="{{site.baseurl}}">more posts</a> by this author.</p>
{%endif%}
<div class="author-meta">
{%if site.location%}<span class="author-location icon-location">{{site.location}}</span>{%endif%}
{%if site.website%}<span class="author-link icon-link"><a href="{{site.website}}">{{site.website}}</a></span>{%endif%}
</div>
</section>
{% endif %}

<!-- Share links section -->
{% include share.html %}

<!-- Disqus comments -->
{% if page.disqus %}
{% include disqus.html %}
{% endif %}

</footer>

</article>

</main>

<aside class="read-next">
{%if page.next%}
<a class="read-next-story {%if page.next.cover%}" style="background-image: url({{page.next.cover}}){%else%}no-cover{%endif%}" href="{{page.next.url}}">
<section class="post">
<h2>{{page.next.title}}</h2>
<p>{{ page.next.excerpt | truncatewords: 19 | strip_html}}&hellip;</p>
</section>
</a>
{%endif%}
{%if page.previous%}
<a class="read-next-story prev {%if page.previous.cover%}" style="background-image: url({{page.previous.cover}}){%else%}no-cover{%endif%}" href="{{page.previous.url}}">
<section class="post">
<h2>{{page.previous.title}}</h2>
<p>{{ page.previous.excerpt | truncatewords: 19 | strip_html}}&hellip;</p>
</section>
</a>
{%endif%}
</aside>
8 changes: 7 additions & 1 deletion about.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
layout: page
title: About me
title: About me
---

This is a static page. It could be an 'about page' if you'd like.

This is a demo blog for Ghost, it contains dummy content which allows you to click around and see what a Ghost blog running the default theme looks like.

We use this for testing and for reference!

If you'd like to set up your own blog, head on over to [https://ghost.org](https://ghost.org) and sign up.
Loading