octopress-ink 1.0.0.alpha.30 → 1.0.0.alpha.31
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 +4 -4
- data/.gitignore +1 -0
- data/lib/octopress-ink/assets/page.rb +1 -1
- data/lib/octopress-ink/assets/sass.rb +1 -1
- data/lib/octopress-ink/helpers/path.rb +2 -1
- data/lib/octopress-ink/jekyll/page.rb +19 -5
- data/lib/octopress-ink/version.rb +1 -1
- data/test/expected/test_pages/feed/index.xml +1 -0
- data/test/expected/test_pages/plugin_page.html +1 -0
- data/test/expected/test_pages/plugin_page_override.html +1 -0
- data/test/{site/test_layouts/theme.html → expected/test_pages/theme_page.html} +1 -1
- data/test/expected/test_pages/three.html +1 -0
- data/test/plugins/awesome-sauce/pages/test_pages/one.html +4 -0
- data/test/plugins/awesome-sauce/pages/test_pages/two.html +4 -0
- data/test/plugins/test-theme/config.yml +2 -2
- data/test/plugins/test-theme/pages/test_pages/one.xml +4 -0
- data/test/plugins/test-theme/pages/{sub/test.md → test_pages/three.md} +0 -0
- data/test/plugins/test-theme/pages/{pages-test.md → test_pages/two.md} +1 -1
- data/test/source/_plugins/awesome-sauce/config.yml +3 -0
- data/test/source/_plugins/theme/config.yml +3 -2
- data/test/source/test_pages/plugin_page_override.html +3 -0
- data/test/source/test_tags/abort_posts.html +5 -0
- data/test/source/test_tags/abort_true.html +1 -1
- data/test/test.rb +20 -7
- metadata +26 -58
- data/test/site/2014/02/01/test-post.html +0 -14
- data/test/site/favicon.ico +0 -1
- data/test/site/favicon.png +0 -1
- data/test/site/index.html +0 -34
- data/test/site/pages-tet.html +0 -13
- data/test/site/robots.txt +0 -1
- data/test/site/stylesheets/all-5f4148b9fde2541e99deb55ebf3fe695.css +0 -36
- data/test/site/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +0 -8
- data/test/site/test_config/plugin_config.html +0 -2
- data/test/site/test_config/theme_config.html +0 -2
- data/test/site/test_layouts/local.html +0 -3
- data/test/site/test_layouts/plugin_layout.html +0 -3
- data/test/site/test_layouts/test_markdown.html +0 -13
- data/test/site/test_layouts/theme_override.html +0 -14
- data/test/site/test_tags/abort_false.html +0 -1
- data/test/site/test_tags/abort_true.html +0 -1
- data/test/site/test_tags/assign.html +0 -23
- data/test/site/test_tags/capture.html +0 -21
- data/test/site/test_tags/content_for.html +0 -1
- data/test/site/test_tags/filter.html +0 -4
- data/test/site/test_tags/include.html +0 -33
- data/test/site/test_tags/render.html +0 -34
- data/test/site/test_tags/return.html +0 -23
- data/test/site/test_tags/wrap.html +0 -29
- data/test/source/pages-tet.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 151c2e157990b6006902c5f324f688c5178e3f3c
|
4
|
+
data.tar.gz: 4b3c2fce8765c43f16c0e300f68ba1456359b709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9ea816fbf836ed9922b1f74f187bc13d37a6cea25856b76d15567f27f995a1bbe7d2c83af90369383f385ff8fa8b9e19e75d44ea9cecdfb9fdfd066e541270
|
7
|
+
data.tar.gz: e5d04078d3ed1160d6c16a5301d074aa9e3c3d669808cd58d5faac5d9963673a37a0e4fc5814c41255dd86bedada18ee57549c6597e6bb5da71b092f0575cd54
|
data/.gitignore
CHANGED
@@ -16,7 +16,7 @@ module Octopress
|
|
16
16
|
"<link href='#{Filters.expand_url(File.join(@dir, @file))}' media='#{media}' rel='stylesheet' type='text/css'>"
|
17
17
|
end
|
18
18
|
|
19
|
-
# TODO: choose user path before local path.
|
19
|
+
# TODO: see if this is done TODO: choose user path before local path.
|
20
20
|
def user_load_path
|
21
21
|
File.join(Plugins.site.source, Plugins.custom_dir, @dir, File.dirname(@file)).sub /\/\.$/, ''
|
22
22
|
end
|
@@ -46,13 +46,14 @@ module Octopress
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.find_page(page)
|
49
|
-
find_page_by_dest
|
49
|
+
find_page_by_dest page_destination(page)
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.find_page_by_dest(dest)
|
53
53
|
Plugins.site.pages.clone.each do |p|
|
54
54
|
return p if page_destination(p) == dest
|
55
55
|
end
|
56
|
+
return false
|
56
57
|
end
|
57
58
|
|
58
59
|
def self.remove_page(dest)
|
@@ -13,17 +13,31 @@ module Octopress
|
|
13
13
|
super(site, base, dir, name)
|
14
14
|
end
|
15
15
|
|
16
|
+
def destination(dest)
|
17
|
+
path = File.join(dest, self.url)
|
18
|
+
if self.url =~ /\/$/
|
19
|
+
if self.ext == '.xml'
|
20
|
+
path = File.join(path, "index.xml")
|
21
|
+
else
|
22
|
+
path = File.join(path, "index.html")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
path
|
26
|
+
end
|
16
27
|
|
17
28
|
# Allow pages to read url from plugin configuration
|
18
29
|
#
|
19
30
|
def url
|
20
|
-
@url
|
31
|
+
if @url
|
32
|
+
@url
|
33
|
+
else
|
21
34
|
begin
|
22
|
-
|
23
|
-
|
24
|
-
|
35
|
+
if path_config = self.data['url_config']
|
36
|
+
config = @plugin_config
|
37
|
+
path_config.split('.').each { |key| config = config[key] }
|
38
|
+
@url = config if config.is_a? String
|
39
|
+
end
|
25
40
|
rescue; end
|
26
|
-
else
|
27
41
|
super
|
28
42
|
end
|
29
43
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<tag>fooo</tag>
|
@@ -0,0 +1 @@
|
|
1
|
+
Page two from plugin
|
@@ -0,0 +1 @@
|
|
1
|
+
This page should not be overwritten by the plugin page.
|
@@ -0,0 +1 @@
|
|
1
|
+
<p>SUB BABY</p>
|
File without changes
|
data/test/test.rb
CHANGED
@@ -18,6 +18,16 @@ def test(file, dir)
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
def test_missing(file, dir)
|
22
|
+
if File.exist? File.join dir, file
|
23
|
+
@failures[file] = "File #{file} should not exist"
|
24
|
+
pout "F".red
|
25
|
+
@has_failed = true
|
26
|
+
else
|
27
|
+
pout ".".green
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
21
31
|
def build(config='')
|
22
32
|
config = ['_config.yml'] << config
|
23
33
|
`rm -rf site && bundle exec jekyll build --config #{config.join(',')}`
|
@@ -41,13 +51,15 @@ build
|
|
41
51
|
def test_tags(dir)
|
42
52
|
tags = %w{content_for abort_false include assign capture wrap render filter}
|
43
53
|
tags.each { |file| test("test_tags/#{file}.html", dir) }
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
54
|
+
|
55
|
+
tags = %w{abort_true, abort_posts}
|
56
|
+
tags.each { |file| test_missing("test_tags/#{file}.html", dir) }
|
57
|
+
end
|
58
|
+
|
59
|
+
def test_pages(dir)
|
60
|
+
pages = %w{plugin_page plugin_page_override theme_page three}
|
61
|
+
pages.each { |file| test("test_pages/#{file}.html", dir) }
|
62
|
+
test("test_pages/feed/index.xml", dir)
|
51
63
|
end
|
52
64
|
|
53
65
|
def test_post(dir)
|
@@ -102,6 +114,7 @@ end
|
|
102
114
|
|
103
115
|
test_post('expected')
|
104
116
|
test_tags('expected')
|
117
|
+
test_pages('expected')
|
105
118
|
test_layouts('expected')
|
106
119
|
test_stylesheets('concat_css')
|
107
120
|
test_configs('expected')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -161,6 +161,11 @@ files:
|
|
161
161
|
- test/expected/test_layouts/plugin_layout.html
|
162
162
|
- test/expected/test_layouts/theme.html
|
163
163
|
- test/expected/test_layouts/theme_override.html
|
164
|
+
- test/expected/test_pages/feed/index.xml
|
165
|
+
- test/expected/test_pages/plugin_page.html
|
166
|
+
- test/expected/test_pages/plugin_page_override.html
|
167
|
+
- test/expected/test_pages/theme_page.html
|
168
|
+
- test/expected/test_pages/three.html
|
164
169
|
- test/expected/test_tags/abort_false.html
|
165
170
|
- test/expected/test_tags/assign.html
|
166
171
|
- test/expected/test_tags/capture.html
|
@@ -173,6 +178,8 @@ files:
|
|
173
178
|
- test/plugins/awesome-sauce/files/robots.txt
|
174
179
|
- test/plugins/awesome-sauce/includes/some-include.html
|
175
180
|
- test/plugins/awesome-sauce/layouts/test-layout.html
|
181
|
+
- test/plugins/awesome-sauce/pages/test_pages/one.html
|
182
|
+
- test/plugins/awesome-sauce/pages/test_pages/two.html
|
176
183
|
- test/plugins/awesome-sauce/plugin.rb
|
177
184
|
- test/plugins/awesome-sauce/stylesheets/plugin-media-test.css
|
178
185
|
- test/plugins/awesome-sauce/stylesheets/plugin-test.css
|
@@ -186,8 +193,9 @@ files:
|
|
186
193
|
- test/plugins/test-theme/javascripts/foo.js
|
187
194
|
- test/plugins/test-theme/layouts/default.html
|
188
195
|
- test/plugins/test-theme/layouts/test.html
|
189
|
-
- test/plugins/test-theme/pages/
|
190
|
-
- test/plugins/test-theme/pages/
|
196
|
+
- test/plugins/test-theme/pages/test_pages/one.xml
|
197
|
+
- test/plugins/test-theme/pages/test_pages/three.md
|
198
|
+
- test/plugins/test-theme/pages/test_pages/two.md
|
191
199
|
- test/plugins/test-theme/plugin.rb
|
192
200
|
- test/plugins/test-theme/stylesheets/_colors.scss
|
193
201
|
- test/plugins/test-theme/stylesheets/main.scss
|
@@ -198,31 +206,6 @@ files:
|
|
198
206
|
- test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
199
207
|
- test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
|
200
208
|
- test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
201
|
-
- test/site/2014/02/01/test-post.html
|
202
|
-
- test/site/favicon.ico
|
203
|
-
- test/site/favicon.png
|
204
|
-
- test/site/index.html
|
205
|
-
- test/site/pages-tet.html
|
206
|
-
- test/site/robots.txt
|
207
|
-
- test/site/stylesheets/all-5f4148b9fde2541e99deb55ebf3fe695.css
|
208
|
-
- test/site/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
209
|
-
- test/site/test_config/plugin_config.html
|
210
|
-
- test/site/test_config/theme_config.html
|
211
|
-
- test/site/test_layouts/local.html
|
212
|
-
- test/site/test_layouts/plugin_layout.html
|
213
|
-
- test/site/test_layouts/test_markdown.html
|
214
|
-
- test/site/test_layouts/theme.html
|
215
|
-
- test/site/test_layouts/theme_override.html
|
216
|
-
- test/site/test_tags/abort_false.html
|
217
|
-
- test/site/test_tags/abort_true.html
|
218
|
-
- test/site/test_tags/assign.html
|
219
|
-
- test/site/test_tags/capture.html
|
220
|
-
- test/site/test_tags/content_for.html
|
221
|
-
- test/site/test_tags/filter.html
|
222
|
-
- test/site/test_tags/include.html
|
223
|
-
- test/site/test_tags/render.html
|
224
|
-
- test/site/test_tags/return.html
|
225
|
-
- test/site/test_tags/wrap.html
|
226
209
|
- test/source/.gitignore
|
227
210
|
- test/source/_includes/foo.html
|
228
211
|
- test/source/_layouts/head.html
|
@@ -237,7 +220,6 @@ files:
|
|
237
220
|
- test/source/_posts/2014-02-01-test-post.md
|
238
221
|
- test/source/favicon.png
|
239
222
|
- test/source/index.md
|
240
|
-
- test/source/pages-tet.md
|
241
223
|
- test/source/stylesheets/_foo.scss
|
242
224
|
- test/source/stylesheets/site.sass
|
243
225
|
- test/source/stylesheets/test.css
|
@@ -248,10 +230,12 @@ files:
|
|
248
230
|
- test/source/test_layouts/test_markdown.md
|
249
231
|
- test/source/test_layouts/theme.html
|
250
232
|
- test/source/test_layouts/theme_override.html
|
233
|
+
- test/source/test_pages/plugin_page_override.html
|
251
234
|
- test/source/test_render/_f.html
|
252
235
|
- test/source/test_render/_var.html
|
253
236
|
- test/source/test_tags/_test_render.md
|
254
237
|
- test/source/test_tags/abort_false.html
|
238
|
+
- test/source/test_tags/abort_posts.html
|
255
239
|
- test/source/test_tags/abort_true.html
|
256
240
|
- test/source/test_tags/assign.html
|
257
241
|
- test/source/test_tags/capture.html
|
@@ -312,6 +296,11 @@ test_files:
|
|
312
296
|
- test/expected/test_layouts/plugin_layout.html
|
313
297
|
- test/expected/test_layouts/theme.html
|
314
298
|
- test/expected/test_layouts/theme_override.html
|
299
|
+
- test/expected/test_pages/feed/index.xml
|
300
|
+
- test/expected/test_pages/plugin_page.html
|
301
|
+
- test/expected/test_pages/plugin_page_override.html
|
302
|
+
- test/expected/test_pages/theme_page.html
|
303
|
+
- test/expected/test_pages/three.html
|
315
304
|
- test/expected/test_tags/abort_false.html
|
316
305
|
- test/expected/test_tags/assign.html
|
317
306
|
- test/expected/test_tags/capture.html
|
@@ -324,6 +313,8 @@ test_files:
|
|
324
313
|
- test/plugins/awesome-sauce/files/robots.txt
|
325
314
|
- test/plugins/awesome-sauce/includes/some-include.html
|
326
315
|
- test/plugins/awesome-sauce/layouts/test-layout.html
|
316
|
+
- test/plugins/awesome-sauce/pages/test_pages/one.html
|
317
|
+
- test/plugins/awesome-sauce/pages/test_pages/two.html
|
327
318
|
- test/plugins/awesome-sauce/plugin.rb
|
328
319
|
- test/plugins/awesome-sauce/stylesheets/plugin-media-test.css
|
329
320
|
- test/plugins/awesome-sauce/stylesheets/plugin-test.css
|
@@ -337,8 +328,9 @@ test_files:
|
|
337
328
|
- test/plugins/test-theme/javascripts/foo.js
|
338
329
|
- test/plugins/test-theme/layouts/default.html
|
339
330
|
- test/plugins/test-theme/layouts/test.html
|
340
|
-
- test/plugins/test-theme/pages/
|
341
|
-
- test/plugins/test-theme/pages/
|
331
|
+
- test/plugins/test-theme/pages/test_pages/one.xml
|
332
|
+
- test/plugins/test-theme/pages/test_pages/three.md
|
333
|
+
- test/plugins/test-theme/pages/test_pages/two.md
|
342
334
|
- test/plugins/test-theme/plugin.rb
|
343
335
|
- test/plugins/test-theme/stylesheets/_colors.scss
|
344
336
|
- test/plugins/test-theme/stylesheets/main.scss
|
@@ -349,31 +341,6 @@ test_files:
|
|
349
341
|
- test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
350
342
|
- test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
|
351
343
|
- test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
352
|
-
- test/site/2014/02/01/test-post.html
|
353
|
-
- test/site/favicon.ico
|
354
|
-
- test/site/favicon.png
|
355
|
-
- test/site/index.html
|
356
|
-
- test/site/pages-tet.html
|
357
|
-
- test/site/robots.txt
|
358
|
-
- test/site/stylesheets/all-5f4148b9fde2541e99deb55ebf3fe695.css
|
359
|
-
- test/site/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
360
|
-
- test/site/test_config/plugin_config.html
|
361
|
-
- test/site/test_config/theme_config.html
|
362
|
-
- test/site/test_layouts/local.html
|
363
|
-
- test/site/test_layouts/plugin_layout.html
|
364
|
-
- test/site/test_layouts/test_markdown.html
|
365
|
-
- test/site/test_layouts/theme.html
|
366
|
-
- test/site/test_layouts/theme_override.html
|
367
|
-
- test/site/test_tags/abort_false.html
|
368
|
-
- test/site/test_tags/abort_true.html
|
369
|
-
- test/site/test_tags/assign.html
|
370
|
-
- test/site/test_tags/capture.html
|
371
|
-
- test/site/test_tags/content_for.html
|
372
|
-
- test/site/test_tags/filter.html
|
373
|
-
- test/site/test_tags/include.html
|
374
|
-
- test/site/test_tags/render.html
|
375
|
-
- test/site/test_tags/return.html
|
376
|
-
- test/site/test_tags/wrap.html
|
377
344
|
- test/source/.gitignore
|
378
345
|
- test/source/_includes/foo.html
|
379
346
|
- test/source/_layouts/head.html
|
@@ -388,7 +355,6 @@ test_files:
|
|
388
355
|
- test/source/_posts/2014-02-01-test-post.md
|
389
356
|
- test/source/favicon.png
|
390
357
|
- test/source/index.md
|
391
|
-
- test/source/pages-tet.md
|
392
358
|
- test/source/stylesheets/_foo.scss
|
393
359
|
- test/source/stylesheets/site.sass
|
394
360
|
- test/source/stylesheets/test.css
|
@@ -399,10 +365,12 @@ test_files:
|
|
399
365
|
- test/source/test_layouts/test_markdown.md
|
400
366
|
- test/source/test_layouts/theme.html
|
401
367
|
- test/source/test_layouts/theme_override.html
|
368
|
+
- test/source/test_pages/plugin_page_override.html
|
402
369
|
- test/source/test_render/_f.html
|
403
370
|
- test/source/test_render/_var.html
|
404
371
|
- test/source/test_tags/_test_render.md
|
405
372
|
- test/source/test_tags/abort_false.html
|
373
|
+
- test/source/test_tags/abort_posts.html
|
406
374
|
- test/source/test_tags/abort_true.html
|
407
375
|
- test/source/test_tags/assign.html
|
408
376
|
- test/source/test_tags/capture.html
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
-
<title>Test Post</title>
|
7
|
-
<meta name="viewport" content="width=device-width">
|
8
|
-
</head>
|
9
|
-
<body class=" ">
|
10
|
-
<div class='local-override'><p>Test post <strong>strong</strong> <em>emphasized</em> <a href="http://example.com">some link</a></p>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/test/site/favicon.ico
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
default favicon
|
data/test/site/favicon.png
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
override favicon
|
data/test/site/index.html
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
-
<title>Your New Jekyll Site</title>
|
7
|
-
<meta name="viewport" content="width=device-width">
|
8
|
-
</head>
|
9
|
-
<body class=" ">
|
10
|
-
<div class='local-override'><p>Test plugin assets and overrides:</p>
|
11
|
-
|
12
|
-
<ul>
|
13
|
-
<li>stylesheets</li>
|
14
|
-
<li>javascripts</li>
|
15
|
-
<li>files</li>
|
16
|
-
<li>images</li>
|
17
|
-
<li>fonts</li>
|
18
|
-
<li>sass plugin</li>
|
19
|
-
</ul>
|
20
|
-
|
21
|
-
<p>Test configurations</p>
|
22
|
-
|
23
|
-
<ul>
|
24
|
-
<li>sass compression</li>
|
25
|
-
<li>sass line numbers</li>
|
26
|
-
<li>concat_css</li>
|
27
|
-
<li>concat_js</li>
|
28
|
-
</ul>
|
29
|
-
|
30
|
-
<p>one <span class='separator'></b> two <span class='separator'></b> three <span class='separator'></b> four five</p>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
</body>
|
34
|
-
</html>
|
data/test/site/pages-tet.html
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
-
<title></title>
|
7
|
-
<meta name="viewport" content="width=device-width">
|
8
|
-
</head>
|
9
|
-
<body class=" ">
|
10
|
-
<p>Testing pages override. <strong>strong</strong> <em>emphasized</em> <a href="http://example.com">a link</a></p>
|
11
|
-
|
12
|
-
</body>
|
13
|
-
</html>
|
data/test/site/robots.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I like robots
|
@@ -1,36 +0,0 @@
|
|
1
|
-
/* Theme: classic */
|
2
|
-
body {
|
3
|
-
margin: 2px;
|
4
|
-
padding: 2px;
|
5
|
-
}
|
6
|
-
|
7
|
-
.main {
|
8
|
-
color: #444;
|
9
|
-
}
|
10
|
-
|
11
|
-
body {
|
12
|
-
background: black;
|
13
|
-
}
|
14
|
-
|
15
|
-
/* Plugin: awesome-sauce */
|
16
|
-
.plugin-widget {
|
17
|
-
background: red;
|
18
|
-
color: #fff;
|
19
|
-
}
|
20
|
-
|
21
|
-
/* Plugin: user stylesheets */
|
22
|
-
.css-plugin {
|
23
|
-
background: #fed;
|
24
|
-
}
|
25
|
-
|
26
|
-
body {
|
27
|
-
display: table;
|
28
|
-
}
|
29
|
-
|
30
|
-
body {
|
31
|
-
background: #aaa111;
|
32
|
-
}
|
33
|
-
|
34
|
-
div {
|
35
|
-
display: table;
|
36
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
-
<title></title>
|
7
|
-
<meta name="viewport" content="width=device-width">
|
8
|
-
</head>
|
9
|
-
<body class=" ">
|
10
|
-
<p><strong>strong</strong> <em>emphasized</em> <a href="http://example.com">a link</a></p>
|
11
|
-
|
12
|
-
</body>
|
13
|
-
</html>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
-
<title></title>
|
7
|
-
<meta name="viewport" content="width=device-width">
|
8
|
-
</head>
|
9
|
-
<body class=" ">
|
10
|
-
<div class='local-override'>Load a layout from the theme override
|
11
|
-
</div>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
Woohoo
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
## Simple assign
|
2
|
-
yep → yep
|
3
|
-
yep → yep
|
4
|
-
|
5
|
-
## Conditional assign
|
6
|
-
'' → ''
|
7
|
-
nope → nope
|
8
|
-
nope → nope
|
9
|
-
yep → yep
|
10
|
-
|
11
|
-
## Cascading assign
|
12
|
-
nope → nope
|
13
|
-
foo → foo
|
14
|
-
'' → ''
|
15
|
-
|
16
|
-
## Additive assign
|
17
|
-
yepyep → yepyep
|
18
|
-
|
19
|
-
## Complex assignment
|
20
|
-
awesome → awesome
|
21
|
-
AWESOME → AWESOME
|
22
|
-
whatever-man → whatever-man
|
23
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
## Simple capture
|
3
|
-
hi → hi
|
4
|
-
|
5
|
-
## Conditional capture
|
6
|
-
'' → ''
|
7
|
-
hi → hi
|
8
|
-
'' → ''
|
9
|
-
hi → hi
|
10
|
-
hi → hi
|
11
|
-
|
12
|
-
## Additive capture
|
13
|
-
hihi → hihi
|
14
|
-
|
15
|
-
## Complex capture
|
16
|
-
hi → hi
|
17
|
-
um, hi → um, hi
|
18
|
-
|
19
|
-
|
20
|
-
## Test filters
|
21
|
-
foo bar baz booga → foo bar baz booga
|
@@ -1 +0,0 @@
|
|
1
|
-
Testing content_for → Testing content_for
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
## Testing a simple include
|
4
|
-
Testing Include → Testing Include
|
5
|
-
|
6
|
-
## Local var passing
|
7
|
-
Testing Include var_test → Testing Include var_test
|
8
|
-
|
9
|
-
## Filter testing
|
10
|
-
TESTING INCLUDE → TESTING INCLUDE
|
11
|
-
'' → ''
|
12
|
-
|
13
|
-
## Conditional Include
|
14
|
-
'' → ''
|
15
|
-
'' → ''
|
16
|
-
'' → ''
|
17
|
-
Testing Include → Testing Include
|
18
|
-
Testing Include → Testing Include
|
19
|
-
Testing Include var_test → Testing Include var_test
|
20
|
-
|
21
|
-
## Plugin wraps
|
22
|
-
include from plugin → include from plugin
|
23
|
-
Yo Dawg, I heard you like includes. → Yo Dawg, I heard you like includes.
|
24
|
-
'' → ''
|
25
|
-
Yo Dawg, I heard you like includes. → Yo Dawg, I heard you like includes.
|
26
|
-
|
27
|
-
## Ternary include
|
28
|
-
, I heard you like includes. → , I heard you like includes.
|
29
|
-
Testing Include → Testing Include
|
30
|
-
|
31
|
-
## Theme Include override
|
32
|
-
include from theme override → include from theme override
|
33
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
## Simple render
|
8
|
-
Testing Render → Testing Render
|
9
|
-
Testing Render whatever → Testing Render whatever
|
10
|
-
|
11
|
-
## File name stored in variable
|
12
|
-
Testing Render → Testing Render
|
13
|
-
|
14
|
-
## Post conditional render
|
15
|
-
'' → ''
|
16
|
-
Testing Render → Testing Render
|
17
|
-
|
18
|
-
## Test Variables
|
19
|
-
kittens → kittens
|
20
|
-
|
21
|
-
## Test Filters
|
22
|
-
KITTENS → KITTENS
|
23
|
-
MITTENS → MITTENS
|
24
|
-
|
25
|
-
## Ternary include
|
26
|
-
kittens → kittens
|
27
|
-
Testing Render → Testing Render
|
28
|
-
|
29
|
-
## Render markdown with local vars
|
30
|
-
<p><strong>page vars</strong></p> → <p><strong>page vars</strong></p>
|
31
|
-
|
32
|
-
## Render raw
|
33
|
-
Testing Render {{ include.var }} → Testing Render {{ include.var }}
|
34
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
## Simple return
|
4
|
-
bar → bar
|
5
|
-
|
6
|
-
## Conditional return
|
7
|
-
bar → bar
|
8
|
-
'' → ''
|
9
|
-
|
10
|
-
## Ternary return
|
11
|
-
nope → nope
|
12
|
-
|
13
|
-
## Cascading return
|
14
|
-
nope → nope
|
15
|
-
bar → bar
|
16
|
-
|
17
|
-
## Test local variables
|
18
|
-
yep → yep
|
19
|
-
|
20
|
-
## Returns with filters
|
21
|
-
2013-07-21T18:59:00-05:00 → 2013-07-21T18:59:00-05:00
|
22
|
-
2013-07-21T18:59:00-05:00 → 2013-07-21T18:59:00-05:00
|
23
|
-
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
## Testing a simple wrap
|
4
|
-
[- Testing Include -] → [- Testing Include -]
|
5
|
-
|
6
|
-
## Local var passing
|
7
|
-
[- Testing Include var_test -] → [- Testing Include var_test -]
|
8
|
-
|
9
|
-
## Filter testing
|
10
|
-
[- TESTING INCLUDE -] → [- TESTING INCLUDE -]
|
11
|
-
[= TESTING INCLUDE =] → [= TESTING INCLUDE =]
|
12
|
-
[- TESTING FILTERS -] → [- TESTING FILTERS -]
|
13
|
-
|
14
|
-
## Conditional wrap
|
15
|
-
'' → ''
|
16
|
-
'' → ''
|
17
|
-
[- Testing Include -] → [- Testing Include -]
|
18
|
-
[- Testing Include -] → [- Testing Include -]
|
19
|
-
|
20
|
-
## Plugin wraps
|
21
|
-
[- include from plugin -] → [- include from plugin -]
|
22
|
-
[- Yo Dawg, I heard you like includes. -] → [- Yo Dawg, I heard you like includes. -]
|
23
|
-
|
24
|
-
## Wrap render
|
25
|
-
[- Testing Render -] → [- Testing Render -]
|
26
|
-
|
27
|
-
## Wrap yield
|
28
|
-
|
29
|
-
[- Testing wrap yield -] → [- Testing wrap yield -]
|