baron 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/baron.gemspec +32 -23
- data/lib/baron.rb +15 -13
- data/spec/baron_article_spec.rb +1 -1
- data/spec/baron_blog_engine_spec.rb +22 -20
- data/spec/baron_spec.rb +10 -22
- data/spec/sample_data/.gitignore +5 -0
- data/spec/sample_data/Gemfile +1 -1
- data/spec/sample_data/README.md +243 -0
- data/spec/sample_data/Rakefile +1 -1
- data/spec/sample_data/articles/favorites/1916-01-01-the-road-not-taken.txt +26 -0
- data/spec/sample_data/articles/north of boston/1914-01-01-the-pasture.txt +10 -0
- data/spec/sample_data/articles/north of boston/1914-01-02-mending-wall.txt +48 -0
- data/spec/sample_data/articles/north of boston/1914-01-03-the-death-of-the-hired-man.txt +211 -0
- data/spec/sample_data/articles/north of boston/1914-01-04-the-mountain.txt +121 -0
- data/spec/sample_data/articles/north of boston/1914-01-05-A-Hundred-callers.txt +196 -0
- data/spec/sample_data/articles/poems/1909-01-02-If.txt b/data/spec/sample_data/articles/other → authors/1909-01-02-If.txt +0 -0
- data/spec/sample_data/config.ru +63 -29
- data/spec/sample_data/images/robert-frost-small.png +0 -0
- data/spec/sample_data/images/robert-frost.png +0 -0
- data/spec/sample_data/pages/about.rhtml +9 -14
- data/spec/sample_data/resources/redirects.txt +1 -29
- data/spec/sample_data/resources/robots.txt +4 -1
- data/spec/sample_data/themes/typography/css/app.css +58 -0
- data/spec/sample_data/themes/{test → typography}/css/bootstrap-responsive.css +0 -0
- data/spec/sample_data/themes/{test → typography}/css/bootstrap-responsive.min.css +0 -0
- data/spec/sample_data/themes/{test → typography}/css/bootstrap.css +0 -0
- data/spec/sample_data/themes/{test → typography}/css/bootstrap.min.css +0 -0
- data/spec/sample_data/themes/typography/img/github.png +0 -0
- data/spec/sample_data/themes/{test → typography}/img/glyphicons-halflings-white.png +0 -0
- data/spec/sample_data/themes/{test → typography}/img/glyphicons-halflings.png +0 -0
- data/spec/sample_data/{images → themes/typography/img}/instagram.png +0 -0
- data/spec/sample_data/themes/typography/js/bootstrap.js +2159 -0
- data/spec/sample_data/themes/typography/js/bootstrap.min.js +6 -0
- data/spec/sample_data/themes/typography/js/image_alt.js +12 -0
- data/spec/sample_data/themes/typography/js/read_later.js +14 -0
- data/spec/sample_data/themes/typography/templates/archives.rhtml +18 -0
- data/spec/sample_data/themes/typography/templates/article.rhtml +14 -0
- data/spec/sample_data/themes/typography/templates/category.rhtml +17 -0
- data/spec/sample_data/themes/typography/templates/error.rhtml +3 -0
- data/spec/sample_data/themes/typography/templates/home.rhtml +28 -0
- data/spec/sample_data/themes/typography/templates/layout.rhtml +141 -0
- data/spec/spec_helper.rb +1 -1
- metadata +32 -23
- data/spec/sample_data/articles/2012-11-09-sample-post.txt +0 -11
- data/spec/sample_data/articles/poems/1916-01-01-the-road-not-taken.txt +0 -26
- data/spec/sample_data/images/import-csv-file-1.png +0 -0
- data/spec/sample_data/images/import-csv-file-2.png +0 -0
- data/spec/sample_data/images/import-csv-file-3.png +0 -0
- data/spec/sample_data/themes/test/css/app.css +0 -27
- data/spec/sample_data/themes/test/img/instagram.png +0 -0
- data/spec/sample_data/themes/test/templates/archives.rhtml +0 -14
- data/spec/sample_data/themes/test/templates/article.rhtml +0 -14
- data/spec/sample_data/themes/test/templates/category.rhtml +0 -15
- data/spec/sample_data/themes/test/templates/error.rhtml +0 -11
- data/spec/sample_data/themes/test/templates/home.rhtml +0 -26
- data/spec/sample_data/themes/test/templates/layout.rhtml +0 -90
@@ -1,14 +0,0 @@
|
|
1
|
-
<section id="posts">
|
2
|
-
<article>
|
3
|
-
<header>
|
4
|
-
<h1><%= @article.title %></h1>
|
5
|
-
<time><%= @article.date %></time> •
|
6
|
-
<a href="javascript:void(0)" onclick="read_later('<%= @article.path %>');">Read Later</a>
|
7
|
-
</header>
|
8
|
-
<section>
|
9
|
-
<%= @article.body %>
|
10
|
-
</section>
|
11
|
-
</article>
|
12
|
-
</section>
|
13
|
-
|
14
|
-
<!-- <a href="<%= @article.path %>">Permalink</a> • -->
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<section>
|
2
|
-
<header>
|
3
|
-
<h1><%= @params[:page_name] %></h1>
|
4
|
-
</header>
|
5
|
-
<section id="articles-list">
|
6
|
-
|
7
|
-
<% for @article in @articles %>
|
8
|
-
<div>
|
9
|
-
<div class="article-title"><a href="<%= @article.path %>"><%= @article.title %></a></div>
|
10
|
-
<div><%= @article.summary %></div>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
</section>
|
15
|
-
</section>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<section id="posts">
|
2
|
-
<% for @article in @articles[0...5] %>
|
3
|
-
<post>
|
4
|
-
<header>
|
5
|
-
<h1><a href="<%= @article.path %>"><%= @article.title %></a></h1>
|
6
|
-
<div class="post-details">
|
7
|
-
<time><%= @article.date %></time> •
|
8
|
-
<a href="javascript:void(0)" onclick="read_later('<%= @article.path %>');">Read Later</a>
|
9
|
-
</div>
|
10
|
-
</header>
|
11
|
-
<%= @article.summary %>
|
12
|
-
</post>
|
13
|
-
<% end %>
|
14
|
-
</section>
|
15
|
-
<div>
|
16
|
-
<div>
|
17
|
-
<% if @params[:page_forward] %>
|
18
|
-
<a href="<%= @params[:page_forward] %>">More articles</a>
|
19
|
-
<% end %>
|
20
|
-
</div>
|
21
|
-
<div>
|
22
|
-
<% if @params[:page_back] %>
|
23
|
-
<a href="<%= @params[:page_back] %>">Previous articles</a>
|
24
|
-
<% end %>
|
25
|
-
</div>
|
26
|
-
</div>
|
@@ -1,90 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title><%= @params[:page_title] %></title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
-
<meta name="description" content="">
|
8
|
-
<% if !@config[:google_webmaster].empty? %>
|
9
|
-
<meta name="google-site-verification" content="<%= @config[:google_webmaster] %>" />
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<link href="<%= @theme_root %>/css/bootstrap.css" rel="stylesheet">
|
13
|
-
<link href="<%= @theme_root %>/css/app.css" rel="stylesheet">
|
14
|
-
<link href="<%= @theme_root %>/css/bootstrap-responsive.css" rel="stylesheet">
|
15
|
-
|
16
|
-
<!-- [if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
17
|
-
|
18
|
-
<!-- Fav and touch icons -->
|
19
|
-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<%= @theme_root %>/img/apple-icon-144.png">
|
20
|
-
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<%= @theme_root %>/img/apple-icon-114.png">
|
21
|
-
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<%= @theme_root %>/img/apple-icon-72.png">
|
22
|
-
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="<%= @theme_root %>/img/apple-icon-57.png">
|
23
|
-
<link rel="shortcut icon" href="/images/favicon.png">
|
24
|
-
|
25
|
-
</head>
|
26
|
-
<body>
|
27
|
-
<!-- PAGE CONTAINER -->
|
28
|
-
<div class="container-fluid" style="max-width: 40em; margin: 0 auto">
|
29
|
-
|
30
|
-
<!-- SIDEBAR -->
|
31
|
-
<div class="row-fluid">
|
32
|
-
<div class="span3">
|
33
|
-
<div class="sidebar-nav">
|
34
|
-
<h1 style="text-align:left"><a href="/" class="blog-title"><%= @config[:title] %></a></h1>
|
35
|
-
<h4>Categories</h4>
|
36
|
-
<ul>
|
37
|
-
<% for @category in @categories %>
|
38
|
-
<li>
|
39
|
-
<a href="<%= @category[:path] %>" class="nav-links"><%= @category[:name] %> (<%= @category[:count] %>)</a>
|
40
|
-
</li>
|
41
|
-
<% end %>
|
42
|
-
</ul>
|
43
|
-
<h4>Navigation</h4>
|
44
|
-
<ul>
|
45
|
-
<li><a href="/archives" class="nav-links">Archives</a></li>
|
46
|
-
<li><a href="/feed.rss" class="nav-links">RSS Feed</a></li>
|
47
|
-
</ul>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<!-- MAIN CONTENT -->
|
52
|
-
<div class="golden-ratio-container span9">
|
53
|
-
<div class="posts">
|
54
|
-
<%= @content %>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<!-- FOOTER -->
|
60
|
-
<div class="row-fluid footer">
|
61
|
-
<p> © <script>document.write(new Date().getFullYear());</script> All rights reserved.</p>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<!-- ALL PARAMS -->
|
65
|
-
<p>@params : <%= @params.inspect %></p>
|
66
|
-
<p>@config : <%= @config.inspect %></p>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
|
70
|
-
<script src="/js/image_alt.js" type="text/javascript" charset="utf-8"></script>
|
71
|
-
<script src="/js/read_later.js" type="text/javascript" charset="utf-8"></script>
|
72
|
-
|
73
|
-
|
74
|
-
<% if !@config[:google_analytics].empty? %>
|
75
|
-
<script type="text/javascript">
|
76
|
-
|
77
|
-
var _gaq = _gaq || [];
|
78
|
-
_gaq.push(['_setAccount', '<%= @config[:google_analytics] %>']);
|
79
|
-
_gaq.push(['_trackPageview']);
|
80
|
-
|
81
|
-
(function() {
|
82
|
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
83
|
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
84
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
85
|
-
})();
|
86
|
-
|
87
|
-
</script>
|
88
|
-
<% end %>
|
89
|
-
</body>
|
90
|
-
</html>
|