jekyll-haml 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 646edf7909cfb7adeeec5b2f9dd308cfcea45948
4
- data.tar.gz: 5d1392a2a3154915062304f4218987633099897d
3
+ metadata.gz: 4f09431fdb4ba95fbf782e4448d67484e3d28871
4
+ data.tar.gz: 89f159d7725cafbe19adca230f1e5ce6ae8c73bd
5
5
  SHA512:
6
- metadata.gz: f58b9535bc4bd2707918c3c2670f9f3b320f42e8e24bffab991b800331aae6cdbbd56a9a94962f7515da392437855b53dfda7ddf57c4e8856cf04b7048195679
7
- data.tar.gz: f07c2459d92de2d4e81744cd369201c80369e0f2cfcc3b869d7b12fcdf4304dc1e567242f93346faae18eedd0c5ada538ff522af0ce0d138557351a58de55b6d
6
+ metadata.gz: 7bd0d9176599dde5f5483142ec46ab464677215fa2b3da63baa9a913f9e68738bf33cf2fc6f26cc9aa4b88857003776ca14e53aba45afff698ebd9db3235083d
7
+ data.tar.gz: 83080030bccc4b4645ddd3a51c25893df9160ada9605cdccc4cec7f9f4328fc2d24a2fb30b84dd06aacd580798cd7c9a5ec44cb09a12ec0cd5bd227e358a270d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.4 2016-06-01
2
+ ### minor enhancements
3
+ * Fixed loss of content in layout conversion - ([@sspreitzer][])
4
+
1
5
  ## 0.1.3 2015-12-08
2
6
  ### minor enhancements
3
7
  * Fixed an error with Jekyll 2.3.0 (and probably with prior versions) that crashes when building the site - ([@kalvinarts][])
data/README.md CHANGED
@@ -5,41 +5,63 @@ This gem provides a [Jekyll](http://github.com/mojombo/jekyll) converter for
5
5
 
6
6
  ## Installation
7
7
 
8
- If using [Bundler](http://gembundler.com), add this line to your application's Gemfile:
8
+ If using [Bundler](http://gembundler.com), add these lines to your application's Gemfile:
9
9
 
10
- gem 'jekyll-haml'
10
+ ```rb
11
+ group :jekyll_plugins do
12
+ gem 'jekyll-haml'
13
+ end
14
+ ```
11
15
 
12
- In a file within your Jekyll project's `_plugins` directory:
16
+ Alternatively, if you don't use Bundler, just update your Jekyll project's `_config.yml`:
13
17
 
14
- # _plugins/bundler.rb
15
- require "rubygems"
16
- require "bundler/setup"
17
- Bundler.require(:default)
18
+ ```yml
19
+ gems:
20
+ - jekyll-haml
21
+ ```
18
22
 
19
23
  ## Usage
20
24
 
21
- You'll be able to use all of Haml's tricks to write some really clean markup. You can use liquid filters easily by just rendering the liquid tags as shown below. The gem adds the liquid filter `haml` so you can render `_includes` that are written in Haml as well. Have fun!
22
-
23
- For clean content blocks, I find it helps to use Haml's `:markdown` filter if I can get away with it.
25
+ You'll be able to use all of Haml's tricks to write some really clean markup. You can use liquid filters easily by just rendering the liquid tags as shown below. Have fun!
24
26
 
25
27
  ```haml
26
28
  ---
27
29
  title: Story Time
28
30
  permalink: page/
29
31
  ---
32
+ .container
33
+ %h3= "{% title %}"
34
+
30
35
  :javascript
31
36
  $(document).ready(function(){});
37
+ ```
38
+
39
+ ### Markdown blocks
32
40
 
33
- %h3= "{% title %}"
41
+ For clean content blocks, I find it helps to use Haml's `:markdown` filter if I can get away with it.
42
+
43
+ ```haml
34
44
  .content
35
45
  :markdown
36
46
  *Dec 4, 2012* - [Author](http://github.com)
37
47
 
38
48
  Once upon a time, in a village by the sea...
49
+ ```
50
+
51
+ ### Partials
52
+
53
+ The gem adds the liquid filter `haml` so you can render `_includes` that are written in Haml as well.
39
54
 
40
- = "{% haml comments.haml %}"
55
+ ```liquid
56
+ {% haml comments.haml %}
41
57
  ```
42
58
 
59
+ ```haml
60
+ -# _includes/meta.haml
61
+ %meta{property: 'og:type', content: 'website'}
62
+ %meta{name: 'viewport', content: 'width=device-width'}
63
+ ```
64
+
43
65
  ## About
44
66
 
45
67
  I originally searched around the internet for a quick way to integrate HAML into my jekyll workflow and found a few around the internet to convert haml in different cases (layouts, partials, and posts). This gem is really just a collection of those techniques so they're easy to find and you can get back to creating your site using the slickest markup. It's made to drop in to your `Gemfile` just as easily as [jekyll-sass](https://github.com/noct/jekyll-sass).
@@ -1,10 +1,8 @@
1
1
  # Re-open Layout class to convert our HAML Layout content.
2
- # This solution redeclares the Layout class in a way that
3
- # don't risks Jekyll API updates anymore.
4
-
5
2
  module Jekyll
6
- class << Layout
3
+ class Layout
7
4
  alias old_initialize initialize
5
+
8
6
  def initialize(*args)
9
7
  old_initialize(*args)
10
8
  self.content = self.transform
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Haml
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Vincent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.2.2
78
+ rubygems_version: 2.4.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Convert HAML files to standard HTML files as part of your Jekyll build.