Skip to content

Commit 4c18e3c

Browse files
committed
version 0.0.1
0 parents  commit 4c18e3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2558
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_site/*
2+
3+
Thumbs.db
4+
.DS_Store
5+
6+
!.gitkeep

404.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sorry this page does not exist =(

README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Jekyll-Bootstrap
2+
3+
This is a clean install of the core Jekyll Bootstrap framework you can clone and run your Jekyll blog with.
4+
5+
Jekyll-bootstrap is the quickest and most hassle-free way to get your new Jekyll powered website up and running.
6+
100% compatible with GitHub pages.
7+
8+
## Usage
9+
10+
For all usage and documentation please see: <http://jekyllbootstrap.com>
11+
12+
## Version
13+
14+
0.0.1 - stable but not versioned.
15+
16+
This version is stable and readily deployable to GitHub Pages and production Jekyll installs.
17+
However, please expect fast updates that are not backwards compatible with older installs.
18+
When development reaches 0.1.0, version compatibility between releases will be respected.
19+
20+
## Development
21+
22+
Development is active!
23+
24+
## Contributing
25+
26+
This repository tracks 2 projects:
27+
28+
- **Jekyll-Bootstrap Framework.**
29+
The framework for which users should clone and build their blog on top of is available in the master branch.
30+
Please fork and contribute additions to the framework itself here.
31+
32+
- **Jekyll-Bootstrap Documentation Website.**
33+
The documentation website at <http://jekyllbootstrap.com> is maintained in the gh-pages branch.
34+
Please fork and contribute documentation additions to this branch only.
35+
36+
The master and gh-pages branch do not share the same ancestry. Please treat them as completely separate git repositories!
37+
38+
39+
## License
40+
41+
[Creative Commons](http://creativecommons.org/licenses/by-nc-sa/3.0/)

Rakefile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
require "rubygems"
2+
require 'rake'
3+
4+
desc "Switch between Jekyll-bootstrap themes."
5+
task :switch_theme, :theme do |t, args|
6+
theme_path = File.join(File.dirname(__FILE__), "_includes", "themes", args.theme)
7+
layouts_path = File.join(File.dirname(__FILE__), "_layouts")
8+
9+
abort("rake aborted: './_includes/themes/#{args.theme}' directory not found.") unless Dir.exists?(theme_path)
10+
abort("rake aborted: './_layouts' directory not found.") unless Dir.exists?(layouts_path)
11+
12+
Dir.glob("#{theme_path}/*") do |filename|
13+
puts "Generating '#{args.theme}' layout: #{File.basename(filename)}"
14+
15+
open("#{layouts_path}/#{File.basename(filename)}", 'w') do |page|
16+
if File.basename(filename, ".html").downcase == "default"
17+
page.puts "---"
18+
page.puts "---"
19+
page.puts "{% assign theme_asset_path = \"/assets/themes/#{args.theme}\" %}"
20+
else
21+
page.puts "---"
22+
page.puts "layout: default"
23+
page.puts "---"
24+
end
25+
page.puts "{% include themes/#{args.theme}/#{File.basename(filename)} %}"
26+
end
27+
end
28+
end # task :switch_theme
29+

_config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This is the default format.
2+
# For more see: https://github.com/mojombo/jekyll/wiki/Permalinks
3+
permalink: /:categories/:year/:month/:day/:title
4+
auto: true
5+
pygments: true
6+
var:
7+
archive_path: /archive.html
8+
categories_path : /categories.html
9+
tags_path : /tags.html
10+
11+
production_url : http://username.github.com # or your custom domain name
12+
title : My Blog =)
13+
14+
author :
15+
name : Name Lastname
16+
17+
github : username
18+
twitter : username
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{% comment %}<!--
2+
The categories_list include is a listing helper for categories.
3+
Usage:
4+
1) assign the 'categories_list' variable to a valid array of tags.
5+
2) include helpers/categories_list.html.
6+
example:
7+
<ul>
8+
{% assign categories_list = site.categories %}
9+
{% include helpers/categories_list.html %}
10+
</ul>
11+
12+
Notes:
13+
Categories can be either a Hash of Category objects (hashes) or an Array of category-names (strings).
14+
The encapsulating 'if' statement checks whether categories_list is a Hash or Array.
15+
site.categories is a Hash while page.categories is an array.
16+
17+
This helper can be seen in use at: ../_layouts/default.html
18+
-->{% endcomment %}
19+
20+
{% if categories_list.first[0] == null %}
21+
{% for category in categories_list %}
22+
<li><a href="{{ site.var.categories_path }}#{{ category }}-ref">
23+
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
24+
</a></li>
25+
{% endfor %}
26+
{% else %}
27+
{% for category in categories_list %}
28+
<li><a href="{{ site.var.categories_path }}#{{ category[0] }}-ref">
29+
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
30+
</a></li>
31+
{% endfor %}
32+
{% endif %}
33+
34+
{% assign categories_list = null %}

_includes/helpers/liquid_raw.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{% comment%}<!--
2+
The liquid_raw helper is a way to display raw liquid code, as opposed to parsing it.
3+
Normally you'd use Liquid's built in 'raw' tag.
4+
The problem is GitHub Jekyll does not support the current Liquid release.
5+
GitHub Jekyll supports the deprecated 'literal' tag.
6+
Using one will break the other if you plan to deploy to GitHub pages.
7+
see: https://github.com/mojombo/jekyll/issues/425
8+
9+
Since I don't want to mess with Liquid versions, I'll just rewrite the way I
10+
intend to give liquid examples. It's not an elegant by any means:
11+
12+
Usage:
13+
1) Define a 'text' variable with the block of liquid code you intend to display.
14+
2) Pass the text variable to include helpers/liquid_raw.html.
15+
16+
example:
17+
{% capture text %}|.% for tag in tags_list %.|
18+
<li><a href="|.{ site.var.tags_path }.||.{ tag[0] }.|-ref">|.{ tag[0] }.| <span>|.{tag[1].size}.|</span></a></li>
19+
|.% endfor %.|
20+
21+
|.% assign tags_list = null %.|{% endcapture %}
22+
{% include helpers/liquid_raw.html %}
23+
24+
As seen here, you must use "|." and ".|" as opening and closing brackets.
25+
-->{% endcomment%}
26+
27+
<pre><code>{{text | replace:"|.", "&#123;" | replace:".|", "&#125;" | replace:">", "&gt;" | replace:"<", "&lt;" }}</code></pre>
28+
29+
{% assign text = null %}

_includes/helpers/pages_list.html

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% comment %}<!--
2+
The pages_list include is a listing helper.
3+
Usage:
4+
1) assign the 'pages_list' variable to a valid array of pages or posts.
5+
2) include helpers/pages_list.html.
6+
example:
7+
<ul>
8+
{% assign pages_list = site.pages %}
9+
{% include helpers/pages_list.html %}
10+
</ul>
11+
12+
Grouping: (optional):
13+
assign the 'group' variable to constrain the list to only pages/posts
14+
in the given group. Note you must define the group manually in the page/post
15+
meta-data to use this feature.
16+
Grouping is mainly helpful for non-post pages.
17+
If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
18+
i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)
19+
20+
This helper can be seen in use at: ../_layouts/default.html
21+
-->{% endcomment %}
22+
23+
24+
{% for node in pages_list %}
25+
{% if group == null or group == node.group %}
26+
27+
{% if page.url == node.url %}
28+
<li><a href="{{node.url}}" class="active">{{node.title}}</a></li>
29+
{% else %}
30+
<li><a href="{{node.url}}">{{node.title}}</a></li>
31+
{% endif %}
32+
33+
{% endif %}
34+
{% endfor %}
35+
36+
{% assign pages_list = null %}
37+
{% assign group = null %}

_includes/helpers/posts_collate.html

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{% comment %}<!--
2+
Collate_posts helper. Collated posts by year and month.
3+
Usage:
4+
1) assign the 'posts_collate' variable to a valid array of posts.
5+
2) include helpers/posts_collate.html.
6+
example:
7+
{% assign posts_collate = site.posts %}
8+
{% include helpers/posts_collate.html %}
9+
10+
Ordering:
11+
Posts are displayed in reverse chronological order.
12+
For normal chronological order:
13+
1) Change the for loop to this:
14+
=> 'for post in site.posts reversed'
15+
2) Next make sure to change 'post.previous.date' to:
16+
=> 'post.next.date'
17+
18+
-->{% endcomment %}
19+
20+
{% for post in posts_collate %}
21+
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
22+
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
23+
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
24+
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
25+
26+
{% if forloop.first %}
27+
<h2>{{this_year}}</h2>
28+
<h3>{{this_month}}</h3>
29+
<ul>
30+
{% endif %}
31+
32+
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
33+
34+
{% if forloop.last %}
35+
</ul>
36+
{% else %}
37+
{% if this_year != next_year %}
38+
</ul>
39+
<h2>{{next_year}}</h2>
40+
<h3>{{next_month}}</h3>
41+
<ul>
42+
{% else %}
43+
{% if this_month != next_month %}
44+
</ul>
45+
<h3>{{next_month}}</h3>
46+
<ul>
47+
{% endif %}
48+
{% endif %}
49+
{% endif %}
50+
{% endfor %}
51+
52+
{% assign posts_collate = null %}

_includes/helpers/tags_list.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% comment %}<!--
2+
The tags_list include is a listing helper for tags.
3+
Usage:
4+
1) assign the 'tags_list' variable to a valid array of tags.
5+
2) include helpers/tags_list.html.
6+
example:
7+
<ul>
8+
{% assign tags_list = site.tags %}
9+
{% include helpers/tags_list.html %}
10+
</ul>
11+
12+
Notes:
13+
Tags can be either a Hash of tag objects (hashes) or an Array of tag-names (strings).
14+
The encapsulating 'if' statement checks whether tags_list is a Hash or Array.
15+
site.tags is a Hash while page.tags is an array.
16+
17+
This helper can be seen in use at: ../_layouts/default.html
18+
-->{% endcomment %}
19+
20+
{% if tags_list.first[0] == null %}
21+
{% for tag in tags_list %}
22+
<li><a href="{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
23+
{% endfor %}
24+
{% else %}
25+
{% for tag in tags_list %}
26+
<li><a href="{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
27+
{% endfor %}
28+
{% endif %}
29+
30+
{% assign tags_list = null %}

_includes/production/analytics.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!--
2+
Drop your analytics in here.
3+
This will only be included when published to GitHub.
4+
We use "site.safe" variable which is true on GitHub.
5+
-->
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
4+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5+
<head>
6+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
7+
<title>{{ page.title }} &larr; {{ page.top }}</title>
8+
<meta name="author" content="{{ site.author.name }}" />
9+
10+
<link rel="start" href="/" />
11+
12+
{% if page.keywords %}
13+
<meta name="keywords" content="{{ page.keywords }}">
14+
{% endif %}
15+
16+
{% if page.feed %}
17+
<link rel="alternate" type="application/atom+xml" href="{{ page.feed }}" title="RSS feed" />
18+
{% endif %}
19+
20+
<!-- syntax highlighting CSS -->
21+
<link rel="stylesheet" href="{{ theme_asset_path }}/css/syntax.css" type="text/css" />
22+
23+
<!-- Homepage CSS -->
24+
<link rel="stylesheet" href="{{ theme_asset_path }}/css/screen.css" type="text/css" />
25+
26+
</head>
27+
<body id="{{ page.section }}">
28+
<div id="site">
29+
30+
<div id="header">
31+
<h1>
32+
<a href="/" title="{{ site.title }}">{{ site.title }}</a>
33+
<span class="byline">&larr; <a href="/">{{ site.author.name }}</a></span>
34+
</h1>
35+
<ul class="nav">
36+
<li><a class="home" href="/">Home</a></li>
37+
<li><a href="/archive.html">Archive</a></li>
38+
<li><a href="/pages.html">Pages</a></li>
39+
<li><a href="/categories.html">Categories</a></li>
40+
<li><a href="/tags.html">Tags</a></li>
41+
</ul>
42+
</div>
43+
44+
{{ content }}
45+
46+
<div id="footer">
47+
<address>
48+
<span class="copyright">
49+
Content by <a href="/info/site.html">{{ site.author.name }}</a>. Design by
50+
<a href="http://mark.reid.name/">Mark Reid</a>
51+
<br/>
52+
(<a rel="licence" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Some rights reserved</a>)
53+
</span>
54+
<span class="engine">
55+
Powered by <a href="http://github.com/mojombo/jekyll/" title="A static, minimalist CMS">Jekyll</a>
56+
</span>
57+
</address>
58+
</div>
59+
60+
</div>
61+
62+
<!--[if IE 6]>
63+
<script type="text/javascript">
64+
/*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; }
65+
var IE6UPDATE_OPTIONS = {
66+
icons_path: "http://static.ie6update.com/hosted/ie6update/images/"
67+
}
68+
</script>
69+
<script type="text/javascript" src="http://static.ie6update.com/hosted/ie6update/ie6update.js"></script>
70+
<![endif]-->
71+
{% if site.safe %}
72+
{% include production/analytics.html %}
73+
{% endif %}
74+
</body>
75+
</html>

_includes/themes/mark-reid/page.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div id="page">
2+
3+
<h1 class="emphnext">{{ page.title }}</h1>
4+
{{ content }}
5+
6+
</div><!-- End Page -->

0 commit comments

Comments
 (0)