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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17477700177377cd7125dcdaab31a6c5ccc853d7f4a2ad866fb055680803f41e
|
4
|
+
data.tar.gz: 2b03a6cca499eb059c8842fd1a5c4dbeefef44b538d2bd92df738fd795c9a10b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
|
-
|
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
|
-
|
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
|