octopress-content-for 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/octopress-content-for/version.rb +1 -1
- metadata +1 -3
- data/assets/docs/changelog.markdown +0 -12
- data/assets/docs/index.markdown +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85dfd258b6dfc437b3363caa9dc10e9f22c360bd
|
4
|
+
data.tar.gz: 1170e5e09feb79bf87e72a876148a705700201d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f251912cebc9a06b55cec82dcc2cb23f7c18cda3c1160460b5684b485f6053cc31f3baec856dfb77b11a64ff80770405963e649fa93fbf7a79d67eea38a119d
|
7
|
+
data.tar.gz: 4aaf8216ff1b88124c1d1c10c11aecca9be95d1a3f0ffabe4528b9385eae879595c5d100d41ea4cc8e8c411643f9004b7f2f6d05bc1175d441f7034fdf77419b
|
data/CHANGELOG.md
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-content-for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -110,8 +110,6 @@ files:
|
|
110
110
|
- LICENSE.txt
|
111
111
|
- README.md
|
112
112
|
- Rakefile
|
113
|
-
- assets/docs/changelog.markdown
|
114
|
-
- assets/docs/index.markdown
|
115
113
|
- lib/octopress-content-for.rb
|
116
114
|
- lib/octopress-content-for/version.rb
|
117
115
|
- octopress-content-for.gemspec
|
data/assets/docs/index.markdown
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: "Octopress Content For"
|
3
|
-
---
|
4
|
-
|
5
|
-
Add content_for and yield tags to Jekyll with conditional rendering and in-line filters.
|
6
|
-
|
7
|
-
[![Build Status](https://travis-ci.org/octopress/content-for.svg)](https://travis-ci.org/octopress/content-for)
|
8
|
-
[![Gem Version](http://img.shields.io/gem/v/octopress-content-for.svg)](https://rubygems.org/gems/octopress-content-for)
|
9
|
-
[![License](http://img.shields.io/:license-mit-blue.svg)](http://octopress.mit-license.org)
|
10
|
-
|
11
|
-
## Installation
|
12
|
-
|
13
|
-
Add this line to your application's Gemfile:
|
14
|
-
|
15
|
-
gem 'octopress-content-for'
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install octopress-content-for
|
24
|
-
|
25
|
-
Next add it to your gems list in Jekyll's `_config.yml`
|
26
|
-
|
27
|
-
gems:
|
28
|
-
- octopress-content-for
|
29
|
-
|
30
|
-
## Usage
|
31
|
-
|
32
|
-
Use it like a typical `content_for` tag.
|
33
|
-
|
34
|
-
{% content_for awesome_content %}
|
35
|
-
some content
|
36
|
-
{% endcontent_for %}
|
37
|
-
|
38
|
-
{% yield awesome_content %} //=> some content
|
39
|
-
|
40
|
-
Use in-line filters.
|
41
|
-
|
42
|
-
{% yield awesome_content | upcase %} //=> SOME CONTENT
|
43
|
-
|
44
|
-
Use conditional rendering in both `content_for` and `yield` tags.
|
45
|
-
|
46
|
-
{% content_for footer unless page.footer == false %}
|
47
|
-
Footer!
|
48
|
-
{% endcontent_for %}
|
49
|
-
|
50
|
-
{% yield footer if page.footer %}
|
51
|
-
|
52
|
-
## Contributing
|
53
|
-
|
54
|
-
1. Fork it ( https://github.com/octopress/content-for/fork )
|
55
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
56
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
57
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
58
|
-
5. Create a new Pull Request
|