Permalink
Browse files

Update blog to ruhohspec v1.0

  • Loading branch information...
1 parent e4f8152 commit 5041982f426ce6fe29debc8f2fc9921be53b5832 @plusjade plusjade committed Jun 5, 2012
Showing with 114 additions and 88 deletions.
  1. +1 −2 .gitignore
  2. +2 −0 README.md
  3. +0 −34 _config.yml
  4. +0 −13 _pages/index.html
  5. +0 −10 _templates/themes/twitter/manifest.yml
  6. +4 −1 config.ru
  7. +14 −0 config.yml
  8. 0 {_media → media}/.gitkeep
  9. +2 −2 {_pages → pages}/about.md
  10. +0 −2 {_pages → pages}/archive.html
  11. +0 −9 {_pages → pages}/categories.html
  12. +26 −0 pages/index.html
  13. +0 −2 {_pages → pages}/pages.html
  14. +0 −2 {_pages → pages}/tags.html
  15. 0 {_templates → }/partials/categories_list
  16. 0 {_templates → }/partials/pages_list
  17. 0 {_templates → }/partials/posts_collate
  18. 0 {_templates → }/partials/posts_list
  19. 0 {_templates → }/partials/tags_list
  20. 0 {_posts → posts}/.gitkeep
  21. 0 _site.yml → site.yml
  22. 0 themes/twitter/javascripts/.gitkeep
  23. +3 −6 {_templates → }/themes/twitter/layouts/default.html
  24. +1 −1 {_templates → }/themes/twitter/layouts/page.html
  25. +2 −2 {_templates → }/themes/twitter/layouts/post.html
  26. BIN {_templates/themes/twitter/bootstrap/img → themes/twitter/media}/glyphicons-halflings-white.png
  27. BIN {_templates/themes/twitter/bootstrap/img → themes/twitter/media}/glyphicons-halflings.png
  28. +2 −2 {_templates/themes/twitter/bootstrap/css → themes/twitter/stylesheets}/bootstrap.min.css
  29. +16 −0 {_templates/themes/twitter/css → themes/twitter/stylesheets}/style.css
  30. +23 −0 themes/twitter/theme.yml
  31. 0 {_templates/syntax/google_prettify → themes/twitter/widgets/google_prettify/stylesheets}/default.css
  32. 0 {_templates/syntax/google_prettify → themes/twitter/widgets/google_prettify/stylesheets}/desert.css
  33. 0 ...syntax/google_prettify → themes/twitter/widgets/google_prettify/stylesheets}/sons-of-obsidian.css
  34. 0 ...mplates/syntax/google_prettify → themes/twitter/widgets/google_prettify/stylesheets}/sunburst.css
  35. 0 ...yntax/google_prettify → themes/twitter/widgets/google_prettify/stylesheets}/twitter-bootstrap.css
  36. +5 −0 widgets/analytics/config.yml
  37. +12 −0 widgets/comments/config.yml
  38. +1 −0 widgets/google_prettify/config.yml
View
@@ -1,2 +1 @@
-_deploy.yml
-_compiled/*
+compiled/*
View
@@ -1,5 +1,7 @@
A default blog scaffold for **ruhoh** compatible static blog parsers.
+**This version is for [ruhohSpec v1.0](http://ruhoh.com/universal-blog-api/) and is only compatible with ruhoh gem v0.4.x**
+
See <http://ruhoh.com> for more information.
## Usage and Documentation
View
@@ -1,34 +0,0 @@
----
-RuhohSpec: '0.2'
-
-theme : twitter
-permalink: /:categories/:title
-
-production_url : http://sample.com
-
-comments :
- provider : disqus
- disqus :
- short_name : jekyllbootstrap
- livefyre :
- site_id : 123
- intensedebate :
- account : 123abc
- facebook :
- appid : 123
- num_posts: 5
- width: 580
- colorscheme: light
-
-analytics :
- provider : false # change tracking id then enable here
- google :
- tracking_id : 'UA-123-12'
- getclicky :
- site_id :
-
-syntax :
- provider : google_prettify
- google_prettify :
- theme: twitter-bootstrap
- linenums : true
View
@@ -1,13 +0,0 @@
----
-title: Home
-description:
-
-layout : page
----
-
-<h3>Start</h3>
-<p>
- Ruhoh is all about the command-line.
- <br>Check out the goods:
-</p>
-<pre><code>$ ruhoh help</code></pre>
@@ -1,10 +0,0 @@
----
-RuhohSpec: '0.1'
-name : twitter
-website : http://twitter.github.com/bootstrap
-git_url : git://github.com/ruhoh/theme-twitter.git
-source_url : https://github.com/ruhoh/theme-twitter
-
-author:
- name : "Jacob Thornton and Mark Otto"
- website : http://twitter.github.com/bootstrap
View
@@ -1,3 +1,6 @@
require 'rack'
require 'ruhoh'
-run Ruhoh::Program.preview
+run Ruhoh::Program.preview
+
+# To preview your blog in "production" mode:
+# run Ruhoh::Program.preview(:env => 'production')
View
@@ -0,0 +1,14 @@
+---
+# Usage: http://ruhoh.com/usage/configure/
+
+RuhohSpec: '1.0'
+theme : twitter
+production_url : http://sample.com
+
+posts:
+ permalink: /:categories/:title/
+ summary_lines: 20
+ latest: 10
+
+pages:
+ permalink: 'pretty'
File renamed without changes.
@@ -1,6 +1,6 @@
---
title : About Me
description:
-
-layout : page
---
+
+Hello, how are you?
@@ -1,7 +1,5 @@
---
description:
-
-layout: page
---
{{# db.posts.collated }}
@@ -1,17 +1,8 @@
---
description:
-
-layout: page
---
<ul class="tag_box inline">
-{{# page.test?to_tags }}
- {{> tags_list }}
-{{/ page.test?to_tags }}
-</ul>
-
-
-<ul class="tag_box inline">
{{# categories }}
{{> categories_list }}
{{/ categories }}
View
@@ -0,0 +1,26 @@
+---
+title: Home
+description:
+---
+
+<h2>Start</h2>
+<p>
+ Ruhoh is all about the command-line.
+ <br>Check out the goods:
+</p>
+<pre><code>$ ruhoh help</code></pre>
+
+
+<h2>Latest Posts</h2>
+
+{{# posts_latest }}
+<div class="post">
+ <h3 class="title"><a href="{{url}}">{{title}}</a> <span class="date">{{ date }}</span></h3>
+
+ {{{ summary }}}
+
+ <div class="more">
+ <a href="{{url}}" class="btn">read more..</a>
+ </div>
+</div>
+{{/ posts_latest }}
@@ -1,7 +1,5 @@
---
description:
-
-layout: page
---
<ul>
@@ -1,7 +1,5 @@
---
description:
-
-layout: page
---
<ul class="tag_box inline">
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
File renamed without changes.
No changes.
@@ -1,5 +1,3 @@
----
----
<!DOCTYPE html>
<html lang="en">
<head>
@@ -16,8 +14,7 @@
<![endif]-->
<!-- Le styles -->
- <link href="{{ paths.theme }}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <link href="{{ paths.theme }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
+ {{{ assets }}}
<!-- Le fav and touch icons -->
<!-- Update these with your own images
@@ -46,7 +43,7 @@
<div class="container">
<div class="content">
- {{ content }}
+ {{{ content }}}
</div>
<footer>
@@ -58,7 +55,7 @@
</div> <!-- /container -->
- {{{ syntax }}}
+ {{{ google_prettify }}}
{{{ analytics }}}
</body>
</html>
@@ -8,6 +8,6 @@
<div class="row">
<div class="span12">
- {{ content }}
+ {{{ content }}}
</div>
</div>
@@ -7,7 +7,7 @@
<div class="row">
<div class="span8">
- {{ content }}
+ {{{ content }}}
<hr>
<div class="pagination">
<ul>
@@ -19,7 +19,7 @@
<li class="prev disabled"><a>&larr; Previous</a></li>
{{/ page?previous }}
- <li><a href="/archive.html">Archive</a></li>
+ <li><a href="/archive">Archive</a></li>
{{# page?next }}
<li class="next"><a href="{{ url }}" title="{{ title }}">Next &rarr;</a></li>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -35,6 +35,22 @@ html, body {
margin: -20px -20px 20px;
}
+/* posts index */
+.post > h3.title {
+ position:relative;
+ padding-top:10px;
+ border-top:3px solid #eee;
+}
+.post > h3.title span.date {
+ position:absolute;
+ right:0;
+ font-size:0.9em;
+}
+.post > .more {
+ margin:10px 0;
+ text-align:left;
+}
+
/* tag_box ======================================================== */
.tag_box {
View
@@ -0,0 +1,23 @@
+{
+ "stylesheets" : {
+ "default" : [
+ "bootstrap.min.css",
+ "style.css"
+ ],
+
+ "widgets" : {
+ "google_prettify" : "twitter-bootstrap.css"
+ }
+
+ },
+
+ "scripts" : {
+ "default" : [
+ ]
+ },
+
+ "manifest" : {
+ "author" : "Jacob Thornton and Mark Otto",
+ "website" : "http://twitter.github.com/bootstrap"
+ }
+}
@@ -0,0 +1,5 @@
+layout : google
+google :
+ tracking_id : 'UA-123-12'
+getclicky :
+ site_id :
@@ -0,0 +1,12 @@
+layout : disqus
+disqus :
+ short_name : jekyllbootstrap
+livefyre :
+ site_id : 123
+intensedebate :
+ account : 123abc
+facebook :
+ appid : 123
+ num_posts: 5
+ width: 580
+ colorscheme: light
@@ -0,0 +1 @@
+linenums : true

0 comments on commit 5041982

Please sign in to comment.