almanac 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Almanac is the most elegant mountable blog engine that can be easily hooked up i
|
|
3
3
|
|
4
4
|
## Main Features
|
5
5
|
- Slick default design that can be easily customized.
|
6
|
-
- Markdown for
|
6
|
+
- kramdown (better Markdown) for all input fields.
|
7
7
|
- Drafts that make sense.
|
8
8
|
- Easy Google Analytics support.
|
9
9
|
- Akismet support for spam filtering in comments.
|
@@ -70,6 +70,18 @@ Lastly, you'll have to specify the name of your user model. Create a `config/ini
|
|
70
70
|
Almanac.user_class = "User" # other possibilities: "Author", "Writer", etc.
|
71
71
|
```
|
72
72
|
|
73
|
+
## Kramdown
|
74
|
+
[Kramdown](http://kramdown.rubyforge.org/index.html) is the superset of Markdown. All input fields can use it. Check out all [syntax rules](http://kramdown.rubyforge.org/syntax.html) for kramdown. One of the best examples of kramdown usage is code highlighting that is part of Almanac. In your post you can simply write:
|
75
|
+
|
76
|
+
```
|
77
|
+
~~~ruby
|
78
|
+
def foo
|
79
|
+
puts "bar"
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
And it will generate a nice looking block of Ruby code once your post is published.
|
84
|
+
|
73
85
|
## Extending
|
74
86
|
Almanac is a mountable Rails engine, which means that all of its controllers, views and models can be rewritten in your main application. E.g. if you want to change the main layout view, create a `app/views/layouts/almanac/application.html.haml` file in your project directory that will be used automatically by Rails instead of the default Almanac layout.
|
75
87
|
|
@@ -89,4 +101,4 @@ Go back to the `almanac` directory and run `rspec spec`.
|
|
89
101
|
- Write code for a feature or bug fix.
|
90
102
|
- Add Rspec tests for it.
|
91
103
|
- Commit, do not make changes to rakefile or version.
|
92
|
-
- Submit a pull request.
|
104
|
+
- Submit a pull request.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
%html
|
3
3
|
%head
|
4
4
|
%title
|
5
|
-
= (@blog) ? ((@blog.title) ? @blog.title : "Almanac Blog") : "Almanac Blog"
|
5
|
+
= (@blog) ? ((@blog.title) ? ((@post and @post.published) ? "#{@post.title} - #{@blog.title}" : @blog.title) : "Almanac Blog") : "Almanac Blog"
|
6
6
|
= auto_discovery_link_tag(:rss, "#{root_path}posts.rss")
|
7
7
|
= stylesheet_link_tag "almanac/application", :media => "all"
|
8
8
|
= javascript_include_tag "almanac/application"
|
data/lib/almanac/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almanac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|