Skip to content

Commit d901fd7

Browse files
author
Eric Kepes
committed
Initial pass with the Jekyll Bootstrapper sample code.
1 parent e76f5a9 commit d901fd7

Some content is hidden

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

41 files changed

+1543
-85
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
_site/*
2+
_theme_packages/*
3+
4+
Thumbs.db
5+
.DS_Store
6+
7+
!.gitkeep
8+
9+
.rbenv-version
10+
.rvmrc
11+
12+
.idea/*

404.html

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

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Jekyll-Bootstrap
2+
3+
The quickest way to start and publish your Jekyll powered blog. 100% compatible with GitHub pages
4+
5+
## Usage
6+
7+
For all usage and documentation please see: <http://jekyllbootstrap.com>
8+
9+
## Version
10+
11+
0.2.9 - stable and versioned using [semantic versioning](http://semver.org/).
12+
13+
## Contributing
14+
15+
This repository tracks 2 projects:
16+
17+
- **Jekyll-Bootstrap Framework.**
18+
The framework for which users should clone and build their blog on top of is available in the master branch.
19+
20+
To contribute to the framework please make sure to checkout your branch based on `jb-development`!!
21+
This is very important as it allows me to accept your pull request without having to publish a public version release.
22+
23+
Small, atomic Features, bugs, etc.
24+
Use the `jb-development` branch but note it will likely change fast as pull requests are accepted.
25+
Please rebase as often as possible when working.
26+
Work on small, atomic features/bugs to avoid upstream commits affecting/breaking your development work.
27+
28+
For Big Features or major API extensions/edits:
29+
This is the one case where I'll accept pull-requests based off the master branch.
30+
This allows you to work in isolation but it means I'll have to manually merge your work into the next public release.
31+
Translation : it might take a bit longer so please be patient! (but sincerely thank you).
32+
33+
- **Jekyll-Bootstrap Documentation Website.**
34+
The documentation website at <http://jekyllbootstrap.com> is maintained in the gh-pages branch.
35+
Please fork and contribute documentation additions to this branch only.
36+
37+
The master and gh-pages branch do not share the same ancestry. Please treat them as completely separate git repositories!
38+
39+
40+
## License
41+
42+
[Creative Commons](http://creativecommons.org/licenses/by-nc-sa/3.0/)

_config.yml

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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+
5+
exclude: [".rvmrc", ".rbenv-version", "README.md", "Rakefile", "changelog.md"]
6+
auto: true
7+
pygments: true
8+
9+
# Themes are encouraged to use these universal variables
10+
# so be sure to set them if your theme uses them.
11+
#
12+
title : Pittsburgh TechFest
13+
tagline: Pittsburgh TechFest is a community-run conference for the developer community in Southwestern Pennsylvania and the surrounding areas.
14+
author :
15+
name : Name Lastname
16+
17+
github : username
18+
twitter : username
19+
feedburner : feedname
20+
21+
# The production_url is only used when full-domain names are needed
22+
# such as sitemap.txt
23+
# Most places will/should use BASE_PATH to make the urls
24+
#
25+
# If you have set a CNAME (pages.github.com) set your custom domain here.
26+
# Else if you are pushing to username.github.com, replace with your username.
27+
# Finally if you are pushing to a GitHub project page, include the project name at the end.
28+
#
29+
production_url : http://pghtechfest.com
30+
31+
# All Jekyll-Bootstrap specific configurations are namespaced into this hash
32+
#
33+
JB :
34+
version : 0.2.9
35+
36+
# All links will be namespaced by BASE_PATH if defined.
37+
# Links in your website should always be prefixed with {{BASE_PATH}}
38+
# however this value will be dynamically changed depending on your deployment situation.
39+
#
40+
# CNAME (http://yourcustomdomain.com)
41+
# DO NOT SET BASE_PATH
42+
# (urls will be prefixed with "/" and work relatively)
43+
#
44+
# GitHub Pages (http://username.github.com)
45+
# DO NOT SET BASE_PATH
46+
# (urls will be prefixed with "/" and work relatively)
47+
#
48+
# GitHub Project Pages (http://username.github.com/project-name)
49+
#
50+
# A GitHub Project site exists in the `gh-pages` branch of one of your repositories.
51+
# REQUIRED! Set BASE_PATH to: http://username.github.com/project-name
52+
#
53+
# CAUTION:
54+
# - When in Localhost, your site will run from root "/" regardless of BASE_PATH
55+
# - Only the following values are falsy: ["", null, false]
56+
# - When setting BASE_PATH it must be a valid url.
57+
# This means always setting the protocol (http|https) or prefixing with "/"
58+
BASE_PATH : false
59+
60+
# By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme.
61+
# ex: [BASE_PATH]/assets/themes/[THEME-NAME]
62+
#
63+
# Override this by defining an absolute path to assets here.
64+
# ex:
65+
# http://s3.amazonaws.com/yoursite/themes/watermelon
66+
# /assets
67+
#
68+
ASSET_PATH : false
69+
70+
# These paths are to the main pages Jekyll-Bootstrap ships with.
71+
# Some JB helpers refer to these paths; change theme here if needed.
72+
#
73+
archive_path: /archive.html
74+
categories_path : /categories.html
75+
tags_path : /tags.html
76+
77+
# Settings for comments helper
78+
# Set 'provider' to the comment provider you want to use.
79+
# Set 'provider' to false to turn commenting off globally.
80+
#
81+
comments :
82+
provider : disqus
83+
disqus :
84+
short_name : jekyllbootstrap
85+
livefyre :
86+
site_id : 123
87+
intensedebate :
88+
account : 123abc
89+
facebook :
90+
appid : 123
91+
num_posts: 5
92+
width: 580
93+
colorscheme: light
94+
95+
# Settings for analytics helper
96+
# Set 'provider' to the analytics provider you want to use.
97+
# Set 'provider' to false to turn analytics off globally.
98+
#
99+
analytics :
100+
provider : google
101+
google :
102+
tracking_id : 'UA-123-12'
103+
getclicky :
104+
site_id :
105+
mixpanel :
106+
token : '_MIXPANEL_TOKEN_'
107+
108+
# Settings for sharing helper.
109+
# Sharing is for things like tweet, plusone, like, reddit buttons etc.
110+
# Set 'provider' to the sharing provider you want to use.
111+
# Set 'provider' to false to turn sharing off globally.
112+
#
113+
sharing :
114+
provider : false
115+
116+
# Settings for all other include helpers can be defined by creating
117+
# a hash with key named for the given helper. ex:
118+
#
119+
# pages_list :
120+
# provider : "custom"
121+
#
122+
# Setting any helper's provider to 'custom' will bypass the helper code
123+
# and include your custom code. Your custom file must be defined at:
124+
# ./_includes/custom/[HELPER]
125+
# where [HELPER] is the name of the helper you are overriding.
126+

_includes/JB/analytics

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %}
2+
3+
{% case site.JB.analytics.provider %}
4+
{% when "google" %}
5+
{% include JB/analytics-providers/google %}
6+
{% when "getclicky" %}
7+
{% include JB/analytics-providers/getclicky %}
8+
{% when "mixpanel" %}
9+
{% include JB/analytics-providers/mixpanel %}
10+
{% when "custom" %}
11+
{% include custom/analytics %}
12+
{% endcase %}
13+
14+
{% endif %}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script type="text/javascript">
2+
var clicky_site_ids = clicky_site_ids || [];
3+
clicky_site_ids.push({{ site.JB.analytics.getclicky.site_id }});
4+
(function() {
5+
var s = document.createElement('script');
6+
s.type = 'text/javascript';
7+
s.async = true;
8+
s.src = '//static.getclicky.com/js';
9+
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
10+
})();
11+
</script>
12+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/{{ site.JB.analytics.getclicky.site_id }}ns.gif" /></p></noscript>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script type="text/javascript">
2+
var _gaq = _gaq || [];
3+
_gaq.push(['_setAccount', '{{ site.JB.analytics.google.tracking_id }}']);
4+
_gaq.push(['_trackPageview']);
5+
6+
(function() {
7+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
8+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
9+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
10+
})();
11+
</script>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script type="text/javascript">
2+
var mpq = [];
3+
mpq.push(["init", "{{ site.JB.analytics.mixpanel.token}}"]);
4+
(function(){var b,a,e,d,c;b=document.createElement("script");b.type="text/javascript";
5+
b.async=true;b.src=(document.location.protocol==="https:"?"https:":"http:")+
6+
"//api.mixpanel.com/site_media/js/api/mixpanel.js";a=document.getElementsByTagName("script")[0];
7+
a.parentNode.insertBefore(b,a);e=function(f){return function(){mpq.push(
8+
[f].concat(Array.prototype.slice.call(arguments,0)))}};d=["init","track","track_links",
9+
"track_forms","register","register_once","identify","name_tag","set_config"];for(c=0;c<
10+
d.length;c++){mpq[d[c]]=e(d[c])}})();
11+
</script>

_includes/JB/categories_list

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 JB/categories_list
6+
example:
7+
<ul>
8+
{% assign categories_list = site.categories %}
9+
{% include JB/categories_list %}
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 site.JB.categories_list.provider == "custom" %}
21+
{% include custom/categories_list %}
22+
{% else %}
23+
{% if categories_list.first[0] == null %}
24+
{% for category in categories_list %}
25+
<li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category }}-ref">
26+
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
27+
</a></li>
28+
{% endfor %}
29+
{% else %}
30+
{% for category in categories_list %}
31+
<li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category[0] }}-ref">
32+
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
33+
</a></li>
34+
{% endfor %}
35+
{% endif %}
36+
{% endif %}
37+
{% assign categories_list = nil %}

_includes/JB/comments

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% if site.JB.comments.provider and page.comments != false %}
2+
3+
{% case site.JB.comments.provider %}
4+
{% when "disqus" %}
5+
{% include JB/comments-providers/disqus %}
6+
{% when "livefyre" %}
7+
{% include JB/comments-providers/livefyre %}
8+
{% when "intensedebate" %}
9+
{% include JB/comments-providers/intensedebate %}
10+
{% when "facebook" %}
11+
{% include JB/comments-providers/facebook %}
12+
{% when "custom" %}
13+
{% include custom/comments %}
14+
{% endcase %}
15+
16+
{% endif %}
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div id="disqus_thread"></div>
2+
<script type="text/javascript">
3+
{% if site.safe == false %}var disqus_developer = 1;{% endif %}
4+
var disqus_shortname = '{{ site.JB.comments.disqus.short_name }}'; // required: replace example with your forum shortname
5+
{% if page.wordpress_id %}var disqus_identifier = '{{page.wordpress_id}} {{site.production_url}}/?p={{page.wordpress_id}}';{% endif %}
6+
/* * * DON'T EDIT BELOW THIS LINE * * */
7+
(function() {
8+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11+
})();
12+
</script>
13+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14+
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div id="fb-root"></div>
2+
<script>(function(d, s, id) {
3+
var js, fjs = d.getElementsByTagName(s)[0];
4+
if (d.getElementById(id)) return;
5+
js = d.createElement(s); js.id = id;
6+
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={{ site.JB.comments.facebook.appid }}";
7+
fjs.parentNode.insertBefore(js, fjs);
8+
}(document, 'script', 'facebook-jssdk'));</script>
9+
<div class="fb-comments" data-href="{{ site.production_url }}" data-num-posts="{{ site.JB.comments.facebook.num_posts }}" data-width="{{ site.JB.comments.facebook.width }}" data-colorscheme="{{ site.JB.comments.facebook.colorscheme }}"></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
var idcomments_acct = '{{ site.JB.comments.intensedebate.account }}';
3+
var idcomments_post_id;
4+
var idcomments_post_url;
5+
</script>
6+
<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script type='text/javascript' src='http://zor.livefyre.com/wjs/v1.0/javascripts/livefyre_init.js'></script>
2+
<script type='text/javascript'>
3+
var fyre = LF({
4+
site_id: {{ site.JB.comments.livefyre.site_id }}
5+
});
6+
</script>

_includes/JB/liquid_raw

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 JB/liquid_raw
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 JB/liquid_raw %}
23+
24+
As seen here, you must use "|." and ".|" as opening and closing brackets.
25+
-->{% endcomment%}
26+
27+
{% if site.JB.liquid_raw.provider == "custom" %}
28+
{% include custom/liquid_raw %}
29+
{% else %}
30+
<pre><code>{{text | replace:"|.", "&#123;" | replace:".|", "&#125;" | replace:">", "&gt;" | replace:"<", "&lt;" }}</code></pre>
31+
{% endif %}
32+
{% assign text = nil %}

0 commit comments

Comments
 (0)