runeblog 0.2.36 → 0.2.37

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: dcfdb93b7e151b307a4776601a4c171e5dba3a88a63b859d3c319bb796215981
4
- data.tar.gz: fa8e91e0f9be6fd7e0111a3b584fec90ff397b0079eb48969d3c2de40467b73e
3
+ metadata.gz: 132d1e47c6892b832f21544dfbb6cc1ea46d5ab4948f089842114b700725bf7e
4
+ data.tar.gz: 3b1bdf9527caa5415fc4d631ef772edad07fc79ebe6b5f3bef7acfa250b31e7d
5
5
  SHA512:
6
- metadata.gz: 4c40488f1169eef37e142b9550ec589737a345fcca6ceb669baebea94a2d651583cda37ee7d89f11ee83abac9f2ed29584ac3b41b0a6e87c50fff18bc54e13da
7
- data.tar.gz: 0b389d93a294814f62de4dba5065ba5ac15805e7ac068408d867e83b05901fc6e3848d57e539fc445781d34e564bdb6bd367f8bf59cd39fcc7ff8ee175f54f4a
6
+ metadata.gz: 3d2571ed899e5e33b85564f54bbab240fabf6944bd1c1867a68b1bcd9efec5b9dff92489a3a3ed4e28ad67c6e4e84af73ef60d178f2347582eb34d6644e11421
7
+ data.tar.gz: c326f5a238ba10ee6da0fdca4780a12b01130006f0e02049f252396f9f098cd4cf7cbcb5efabdcd61076c0d7d05e290fb8ae48ed9fae2c070ac3aa91fe475766
@@ -0,0 +1,8 @@
1
+ # Custom code for 'pages' widget
2
+
3
+ children = Dir["*.lt3"] - ["pages.lt3"]
4
+ children.each do |child|
5
+ dest = child.sub(/.lt3$/, ".html")
6
+ xlate src: child, dst: dest # , debug: true
7
+ end
8
+
@@ -319,6 +319,16 @@ def recent_posts # side-effect
319
319
  HTML
320
320
  end
321
321
 
322
+ def _run_local(widget)
323
+ Dir.chdir("widgets/#{widget}") do
324
+ require("./local") if File.exist?("local.rb")
325
+ end
326
+ rescue => err
327
+ STDOUT.puts err
328
+ STDOUT.puts err.backtrace.join("\n")
329
+ exit
330
+ end
331
+
322
332
  def sidebar
323
333
  if _args.include? "off"
324
334
  _body { } # iterate, do nothing
@@ -331,17 +341,24 @@ def sidebar
331
341
  wtag = :widgets/tag
332
342
  raise "Can't find #{wtag}" unless Dir.exist?(wtag)
333
343
  tcard = "#{tag}-card.html"
334
- if File.exist?(wtag/"SUBFILES")
335
- children = Dir[wtag/"*.lt3"] - [wtag/tag+".lt3"]
336
- children.each do |child|
337
- dest = child.sub(/.lt3$/, ".html")
338
- xlate src: child, dst: dest # , debug: true
339
- end
340
- end
344
+
345
+ _run_local(tag)
346
+
347
+ # if File.exist?(wtag/"SUBFILES")
348
+ # children = Dir[wtag/"*.lt3"] - [wtag/tag+".lt3"]
349
+ # children.each do |child|
350
+ # dest = child.sub(/.lt3$/, ".html")
351
+ # xlate src: child, dst: dest # , debug: true
352
+ # end
353
+ # end
341
354
  xlate cwd: wtag, src: tag, dst: tcard # , debug: true
342
355
  _include_file wtag/tcard
343
356
  end
344
357
  _out %[</div>]
358
+ rescue => err
359
+ puts "err = #{err}"
360
+ puts err.backtrace.join("\n")
361
+ exit
345
362
  end
346
363
 
347
364
  def stylesheet
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.36"
5
+ VERSION = "0.2.37"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.36
4
+ version: 0.2.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
@@ -95,12 +95,11 @@ files:
95
95
  - empty_view/themes/standard/widgets/news/list.data
96
96
  - empty_view/themes/standard/widgets/news/news.lt3
97
97
  - empty_view/themes/standard/widgets/pages/README
98
- - empty_view/themes/standard/widgets/pages/SUBFILES
99
98
  - empty_view/themes/standard/widgets/pages/disclaim.lt3
100
99
  - empty_view/themes/standard/widgets/pages/faq.lt3
101
- - empty_view/themes/standard/widgets/pages/generated.lt3
102
100
  - empty_view/themes/standard/widgets/pages/like-dislike.lt3
103
101
  - empty_view/themes/standard/widgets/pages/list.data
102
+ - empty_view/themes/standard/widgets/pages/local.rb
104
103
  - empty_view/themes/standard/widgets/pages/other-stuff.lt3
105
104
  - empty_view/themes/standard/widgets/pages/pages.lt3
106
105
  - empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3
@@ -1 +0,0 @@
1
- Causes other *.lt3 files to be generated
@@ -1,4 +0,0 @@
1
- <a href="faq.lt3">Frequently Asked Questions</a> <br>
2
- <a href="like-dislike.lt3">Likes and Dislikes</a> <br>
3
- <a href="disclaim.lt3">Disclaimer</a> <br>
4
- <a href="lifestory.lt3">My Life Story</a> <br>