dextery 0.0.3b → 0.0.3c

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +8 -8
  2. data/bin/dextery +1 -1
  3. data/dextery.gemspec +1 -1
  4. data/lib/dextery/template/.gitignore +10 -0
  5. data/lib/dextery/template/404.html +1 -0
  6. data/lib/dextery/template/README.md +46 -0
  7. data/lib/dextery/template/Rakefile +309 -0
  8. data/lib/dextery/template/_config.yml +131 -0
  9. data/lib/dextery/template/_drafts/jekyll-introduction-draft.md +412 -0
  10. data/lib/dextery/template/_includes/JB/analytics +16 -0
  11. data/lib/dextery/template/_includes/JB/analytics-providers/getclicky +12 -0
  12. data/lib/dextery/template/_includes/JB/analytics-providers/google +11 -0
  13. data/lib/dextery/template/_includes/JB/analytics-providers/mixpanel +11 -0
  14. data/lib/dextery/template/_includes/JB/categories_list +37 -0
  15. data/lib/dextery/template/_includes/JB/comments +16 -0
  16. data/lib/dextery/template/_includes/JB/comments-providers/disqus +14 -0
  17. data/lib/dextery/template/_includes/JB/comments-providers/facebook +9 -0
  18. data/lib/dextery/template/_includes/JB/comments-providers/intensedebate +6 -0
  19. data/lib/dextery/template/_includes/JB/comments-providers/livefyre +6 -0
  20. data/lib/dextery/template/_includes/JB/liquid_raw +32 -0
  21. data/lib/dextery/template/_includes/JB/pages_list +39 -0
  22. data/lib/dextery/template/_includes/JB/posts_collate +55 -0
  23. data/lib/dextery/template/_includes/JB/setup +22 -0
  24. data/lib/dextery/template/_includes/JB/sharing +8 -0
  25. data/lib/dextery/template/_includes/JB/tags_list +33 -0
  26. data/lib/dextery/template/_includes/themes/twitter/default.html +66 -0
  27. data/lib/dextery/template/_includes/themes/twitter/page.html +9 -0
  28. data/lib/dextery/template/_includes/themes/twitter/post.html +49 -0
  29. data/lib/dextery/template/_includes/themes/twitter/settings.yml +2 -0
  30. data/lib/dextery/template/_layouts/default.html +6 -0
  31. data/lib/dextery/template/_layouts/page.html +5 -0
  32. data/lib/dextery/template/_layouts/post.html +5 -0
  33. data/lib/dextery/template/_plugins/debug.rb +38 -0
  34. data/lib/dextery/template/_posts/core-samples/2011-12-29-jekyll-introduction.md +412 -0
  35. data/lib/dextery/template/archive.html +10 -0
  36. data/lib/dextery/template/assets/themes/twitter/bootstrap/css/bootstrap.2.2.2.min.css +782 -0
  37. data/lib/dextery/template/assets/themes/twitter/bootstrap/img/glyphicons-halflings-white.png +0 -0
  38. data/lib/dextery/template/assets/themes/twitter/bootstrap/img/glyphicons-halflings.png +0 -0
  39. data/lib/dextery/template/assets/themes/twitter/css/style.css +65 -0
  40. data/lib/dextery/template/atom.xml +28 -0
  41. data/lib/dextery/template/categories.html +22 -0
  42. data/lib/dextery/template/changelog.md +70 -0
  43. data/lib/dextery/template/index.md +46 -0
  44. data/lib/dextery/template/pages.html +13 -0
  45. data/lib/dextery/template/rss.xml +28 -0
  46. data/lib/dextery/template/sitemap.txt +8 -0
  47. data/lib/dextery/template/tags.html +21 -0
  48. metadata +45 -1
@@ -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>
@@ -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 %}
@@ -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 %}
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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,0 +1,39 @@
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 JB/pages_list
6
+ example:
7
+ <ul>
8
+ {% assign pages_list = site.pages %}
9
+ {% include JB/pages_list %}
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
+ {% if site.JB.pages_list.provider == "custom" %}
24
+ {% include custom/pages_list %}
25
+ {% else %}
26
+ {% for node in pages_list %}
27
+ {% if node.title != null %}
28
+ {% if group == null or group == node.group %}
29
+ {% if page.url == node.url %}
30
+ <li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
31
+ {% else %}
32
+ <li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
33
+ {% endif %}
34
+ {% endif %}
35
+ {% endif %}
36
+ {% endfor %}
37
+ {% endif %}
38
+ {% assign pages_list = nil %}
39
+ {% assign group = nil %}
@@ -0,0 +1,55 @@
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 JB/posts_collate
6
+ example:
7
+ {% assign posts_collate = site.posts %}
8
+ {% include JB/posts_collate %}
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
+ {% if site.JB.posts_collate.provider == "custom" %}
21
+ {% include custom/posts_collate %}
22
+ {% else %}
23
+ {% for post in posts_collate %}
24
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
25
+ {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
26
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
27
+ {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
28
+
29
+ {% if forloop.first %}
30
+ <h2>{{this_year}}</h2>
31
+ <h3>{{this_month}}</h3>
32
+ <ul>
33
+ {% endif %}
34
+
35
+ <li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></li>
36
+
37
+ {% if forloop.last %}
38
+ </ul>
39
+ {% else %}
40
+ {% if this_year != next_year %}
41
+ </ul>
42
+ <h2>{{next_year}}</h2>
43
+ <h3>{{next_month}}</h3>
44
+ <ul>
45
+ {% else %}
46
+ {% if this_month != next_month %}
47
+ </ul>
48
+ <h3>{{next_month}}</h3>
49
+ <ul>
50
+ {% endif %}
51
+ {% endif %}
52
+ {% endif %}
53
+ {% endfor %}
54
+ {% endif %}
55
+ {% assign posts_collate = nil %}
@@ -0,0 +1,22 @@
1
+ {% capture jbcache %}
2
+ <!--
3
+ - Dynamically set liquid variables for working with URLs/paths
4
+ -->
5
+ {% if site.JB.setup.provider == "custom" %}
6
+ {% include custom/setup %}
7
+ {% else %}
8
+ {% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
9
+ {% assign BASE_PATH = site.JB.BASE_PATH %}
10
+ {% assign HOME_PATH = site.JB.BASE_PATH %}
11
+ {% else %}
12
+ {% assign BASE_PATH = nil %}
13
+ {% assign HOME_PATH = "/" %}
14
+ {% endif %}
15
+
16
+ {% if site.JB.ASSET_PATH %}
17
+ {% assign ASSET_PATH = site.JB.ASSET_PATH %}
18
+ {% else %}
19
+ {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
20
+ {% endif %}
21
+ {% endif %}
22
+ {% endcapture %}{% assign jbcache = nil %}
@@ -0,0 +1,8 @@
1
+ {% if site.safe and site.JB.sharing.provider and page.JB.sharing != false %}
2
+
3
+ {% case site.JB.sharing.provider %}
4
+ {% when "custom" %}
5
+ {% include custom/sharing %}
6
+ {% endcase %}
7
+
8
+ {% endif %}
@@ -0,0 +1,33 @@
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 JB/tags_list
6
+ example:
7
+ <ul>
8
+ {% assign tags_list = site.tags %}
9
+ {% include JB/tags_list %}
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 site.JB.tags_list.provider == "custom" %}
21
+ {% include custom/tags_list %}
22
+ {% else %}
23
+ {% if tags_list.first[0] == null %}
24
+ {% for tag in tags_list %}
25
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
26
+ {% endfor %}
27
+ {% else %}
28
+ {% for tag in tags_list %}
29
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
30
+ {% endfor %}
31
+ {% endif %}
32
+ {% endif %}
33
+ {% assign tags_list = nil %}
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>{{ page.title }}</title>
6
+ {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
7
+ <meta name="author" content="{{ site.author.name }}">
8
+
9
+ <!-- Enable responsive viewport -->
10
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
+
12
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
13
+ <!--[if lt IE 9]>
14
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
15
+ <![endif]-->
16
+
17
+ <!-- Le styles -->
18
+ <link href="{{ ASSET_PATH }}/bootstrap/css/bootstrap.2.2.2.min.css" rel="stylesheet">
19
+ <link href="{{ ASSET_PATH }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
20
+
21
+ <!-- Le fav and touch icons -->
22
+ <!-- Update these with your own images
23
+ <link rel="shortcut icon" href="images/favicon.ico">
24
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
25
+ <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
26
+ <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
27
+ -->
28
+
29
+ <!-- atom & rss feed -->
30
+ <link href="{{ BASE_PATH }}{{ site.JB.atom_path }}" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed">
31
+ <link href="{{ BASE_PATH }}{{ site.JB.rss_path }}" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed">
32
+
33
+ </head>
34
+
35
+ <body>
36
+ <div class="navbar">
37
+ <div class="navbar-inner">
38
+ <div class="container-narrow">
39
+ <a class="brand" href="{{ HOME_PATH }}">{{ site.title }}</a>
40
+ <ul class="nav">
41
+ {% assign pages_list = site.pages %}
42
+ {% assign group = 'navigation' %}
43
+ {% include JB/pages_list %}
44
+ </ul>
45
+ </div>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="container-narrow">
50
+
51
+ <div class="content">
52
+ {{ content }}
53
+ </div>
54
+ <hr>
55
+ <footer>
56
+ <p>&copy; {{ site.time | date: '%Y' }} {{ site.author.name }}
57
+ with help from <a href="http://jekyllbootstrap.com" target="_blank" title="The Definitive Jekyll Blogging Framework">Jekyll Bootstrap</a>
58
+ and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>
59
+ </p>
60
+ </footer>
61
+
62
+ </div>
63
+
64
+ {% include JB/analytics %}
65
+ </body>
66
+ </html>
@@ -0,0 +1,9 @@
1
+ <div class="page-header">
2
+ <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
3
+ </div>
4
+
5
+ <div class="row-fluid">
6
+ <div class="span12">
7
+ {{ content }}
8
+ </div>
9
+ </div>
@@ -0,0 +1,49 @@
1
+ <div class="page-header">
2
+ <h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endif %}</h1>
3
+ </div>
4
+
5
+ <div class="row-fluid post-full">
6
+ <div class="span12">
7
+ <div class="date">
8
+ <span>{{ page.date | date_to_long_string }}</span>
9
+ </div>
10
+ <div class="content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {% unless page.categories == empty %}
15
+ <ul class="tag_box inline">
16
+ <li><i class="icon-folder-open"></i></li>
17
+ {% assign categories_list = page.categories %}
18
+ {% include JB/categories_list %}
19
+ </ul>
20
+ {% endunless %}
21
+
22
+ {% unless page.tags == empty %}
23
+ <ul class="tag_box inline">
24
+ <li><i class="icon-tags"></i></li>
25
+ {% assign tags_list = page.tags %}
26
+ {% include JB/tags_list %}
27
+ </ul>
28
+ {% endunless %}
29
+
30
+ <hr>
31
+ <div class="pagination">
32
+ <ul>
33
+ {% if page.previous %}
34
+ <li class="prev"><a href="{{ BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
35
+ {% else %}
36
+ <li class="prev disabled"><a>&larr; Previous</a></li>
37
+ {% endif %}
38
+ <li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">Archive</a></li>
39
+ {% if page.next %}
40
+ <li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
41
+ {% else %}
42
+ <li class="next disabled"><a>Next &rarr;</a>
43
+ {% endif %}
44
+ </ul>
45
+ </div>
46
+ <hr>
47
+ {% include JB/comments %}
48
+ </div>
49
+ </div>
@@ -0,0 +1,2 @@
1
+ theme :
2
+ name : twitter
@@ -0,0 +1,6 @@
1
+ ---
2
+ theme :
3
+ name : twitter
4
+ ---
5
+ {% include JB/setup %}
6
+ {% include themes/twitter/default.html %}