jekyll-page-boilerplate 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0bdff35c4fc0b98be3987b90be503a93864c8dcb0dec6358a1cdd07f19fdc88
4
- data.tar.gz: 8a11dca9014aaa518f9f56d4782077e3791b4342af84a8f917afe8d5b7eecf62
3
+ metadata.gz: 17477700177377cd7125dcdaab31a6c5ccc853d7f4a2ad866fb055680803f41e
4
+ data.tar.gz: 2b03a6cca499eb059c8842fd1a5c4dbeefef44b538d2bd92df738fd795c9a10b
5
5
  SHA512:
6
- metadata.gz: b9a614357a7bcb5c380ab20587b34779d18d12d06380f0511a15f8187ea22b28547b640aeba05029422de27cc3e0974ac724c0b13746220a6e3455f83abf67be
7
- data.tar.gz: 7533fd3e0811a14c04f505c444d1e61225bc624c54d9cd2aecace495884172c8628b04810d54e23639137334ea5ccdff4e65ab8dddeb8ed39c33e099e226def0
6
+ metadata.gz: 91381a908df2713f69036642a842f84da601f8616219ea362b18ded8f8c189452498a40d29c972f7e1832ba414ef8d4fdcd0bbf03aa97e8426582acb665c7b66
7
+ data.tar.gz: 7522e8fe98b9beb92b057f1159776ea53c9075fcede91b1a4d0c5632646fb0e25f602931a6b32b84d0bc4c061edaf49ed00715f1d51c70870c4355e0ee809bf0
@@ -1,6 +1,6 @@
1
1
  A boilerplate is a markdown file in the `_boilerplates` folder.
2
2
 
3
- ie. `_boilerplates/post.yml`
3
+ ie. `_boilerplates/post.md`
4
4
  ---
5
5
  _boilerplate: # boilerplate settings
6
6
  path: _posts # the path to create the new page under.
@@ -10,7 +10,7 @@ ie. `_boilerplates/post.yml`
10
10
  layout: post # everthing else will be copied to the new post.
11
11
  author: John Doe
12
12
 
13
- `$ boilerplate page post "Another one about pottery"` would create a new file `_posts/yyyy-mm-dd-another-one-about-pottery.markdown`
13
+ `$ boilerplate post -T "Another one about pottery"` would create a new file `_posts/yyyy-mm-dd-another-one-about-pottery.markdown`
14
14
  ---
15
15
  title: Another one about pottery
16
16
  created: 'yyyy-mm-dd hh:mm:ss -0000'
@@ -18,10 +18,13 @@ ie. `_boilerplates/post.yml`
18
18
  author: John Doe
19
19
  ---
20
20
 
21
- Usage: `$ boilerplate [page|init|help]`
21
+ Available Tags with `{{ boilerplate.xxx }}`:
22
+ - `.title`, `.name`
23
+ - `.path`, `.file`, `.suffix`
24
+ - `.time`, `.date`, `.timestamp`
25
+ - `.random_url`
26
+ - And anything you put under the `_boilerplate:` header
22
27
 
23
- `$ boilerplate init`: creates a example boilerplate at `_boilerplates/example.md`
24
28
 
25
- `$ boilerplate page <boilerplate-name> <post-title>`: Creates a new page from a boilerplate
26
29
 
27
- `$ boilerplate help`: shows this dialog.
30
+ Use `boilerplate help` for more details
@@ -93,11 +93,6 @@ class JekyllPageBoilerplate::Page
93
93
  end
94
94
  end
95
95
 
96
- def fill_template key, val
97
- @head.gsub! /\{{2}\s{0,}boilerplate\.#{key}\s{0,}\}{2}/, @config[key].to_s
98
- @body.gsub! /\{{2}\s{0,}boilerplate\.#{key}\s{0,}\}{2}/, @config[key].to_s
99
- end
100
-
101
96
  def get_body markdown
102
97
  return markdown
103
98
  end
@@ -1,5 +1,5 @@
1
1
  module JekyllPageBoilerplate
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
 
4
4
  DESCRIPTION = "A jekyll plugin that allows you to create new pages or posts from a boilerplate through the terminal."
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-page-boilerplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Ferney