runeblog 0.2.39 → 0.2.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mkwidget +209 -0
  3. data/empty_view/themes/standard/blog/index.lt3 +0 -1
  4. data/empty_view/themes/standard/etc/blog.css.lt3 +6 -1
  5. data/empty_view/themes/standard/navbar/faq.lt3 +1 -0
  6. data/empty_view/themes/standard/navbar/navbar.lt3 +1 -0
  7. data/empty_view/themes/standard/post/generate.lt3 +9 -4
  8. data/empty_view/themes/standard/widgets/ad/ad.lt3 +8 -1
  9. data/empty_view/themes/standard/widgets/ad/ad1.png +0 -0
  10. data/empty_view/themes/standard/widgets/ad/ad2.png +0 -0
  11. data/empty_view/themes/standard/widgets/ad/ad3.png +0 -0
  12. data/empty_view/themes/standard/widgets/ad/ad4.png +0 -0
  13. data/empty_view/themes/standard/widgets/bydates/README +2 -0
  14. data/empty_view/themes/standard/widgets/bydates/bydates.lt3 +2 -0
  15. data/empty_view/themes/standard/widgets/bydates/bydates.rb +14 -0
  16. data/empty_view/themes/standard/widgets/bydates/card.css +1 -0
  17. data/empty_view/themes/standard/widgets/bydates/custom.rb +1 -0
  18. data/empty_view/themes/standard/widgets/bydates/local-vars.lt3 +12 -0
  19. data/empty_view/themes/standard/widgets/bydates/main.css +2 -0
  20. data/empty_view/themes/standard/widgets/bydates/pieces/card-head.lt3 +8 -0
  21. data/empty_view/themes/standard/widgets/bydates/pieces/card-tail.lt3 +4 -0
  22. data/empty_view/themes/standard/widgets/bydates/pieces/main-head.lt3 +10 -0
  23. data/empty_view/themes/standard/widgets/bydates/pieces/main-tail.lt3 +4 -0
  24. data/empty_view/themes/standard/widgets/links/README +2 -0
  25. data/empty_view/themes/standard/widgets/links/card.css +1 -0
  26. data/empty_view/themes/standard/widgets/links/custom.rb +1 -0
  27. data/empty_view/themes/standard/widgets/links/links.lt3 +1 -1
  28. data/empty_view/themes/standard/widgets/links/links.rb +14 -0
  29. data/empty_view/themes/standard/widgets/links/local-vars.lt3 +12 -0
  30. data/empty_view/themes/standard/widgets/links/main.css +2 -0
  31. data/empty_view/themes/standard/widgets/links/pieces/card-head.lt3 +8 -0
  32. data/empty_view/themes/standard/widgets/links/pieces/card-tail.lt3 +4 -0
  33. data/empty_view/themes/standard/widgets/links/pieces/main-head.lt3 +10 -0
  34. data/empty_view/themes/standard/widgets/links/pieces/main-tail.lt3 +4 -0
  35. data/empty_view/themes/standard/widgets/news/README +2 -0
  36. data/empty_view/themes/standard/widgets/news/card.css +1 -0
  37. data/empty_view/themes/standard/widgets/news/custom.rb +1 -0
  38. data/empty_view/themes/standard/widgets/news/local-vars.lt3 +12 -0
  39. data/empty_view/themes/standard/widgets/news/main.css +2 -0
  40. data/empty_view/themes/standard/widgets/news/news.rb +14 -0
  41. data/empty_view/themes/standard/widgets/news/pieces/card-head.lt3 +8 -0
  42. data/empty_view/themes/standard/widgets/news/pieces/card-tail.lt3 +4 -0
  43. data/empty_view/themes/standard/widgets/news/pieces/main-head.lt3 +10 -0
  44. data/empty_view/themes/standard/widgets/news/pieces/main-tail.lt3 +4 -0
  45. data/empty_view/themes/standard/widgets/pages/{pieces/card.css → card.css} +0 -0
  46. data/empty_view/themes/standard/widgets/pages/custom.rb +1 -0
  47. data/empty_view/themes/standard/widgets/pages/local-vars.lt3 +12 -0
  48. data/empty_view/themes/standard/widgets/pages/main.css +2 -0
  49. data/empty_view/themes/standard/widgets/pages/pages.rb +4 -1
  50. data/empty_view/themes/standard/widgets/pages/pieces/main-head.lt3 +3 -1
  51. data/empty_view/themes/standard/widgets/pinned/README +2 -0
  52. data/empty_view/themes/standard/widgets/pinned/card.css +1 -0
  53. data/empty_view/themes/standard/widgets/pinned/custom.rb +1 -0
  54. data/empty_view/themes/standard/widgets/pinned/local-vars.lt3 +12 -0
  55. data/empty_view/themes/standard/widgets/pinned/main.css +2 -0
  56. data/empty_view/themes/standard/widgets/pinned/pieces/card-head.lt3 +8 -0
  57. data/empty_view/themes/standard/widgets/pinned/pieces/card-tail.lt3 +4 -0
  58. data/empty_view/themes/standard/widgets/pinned/pieces/main-head.lt3 +10 -0
  59. data/empty_view/themes/standard/widgets/pinned/pieces/main-tail.lt3 +4 -0
  60. data/empty_view/themes/standard/widgets/pinned/pinned.lt3 +2 -0
  61. data/empty_view/themes/standard/widgets/pinned/pinned.rb +14 -0
  62. data/empty_view/themes/standard/widgets/search/README +2 -0
  63. data/empty_view/themes/standard/widgets/search/card.css +1 -0
  64. data/empty_view/themes/standard/widgets/search/custom.rb +1 -0
  65. data/empty_view/themes/standard/widgets/search/local-vars.lt3 +12 -0
  66. data/empty_view/themes/standard/widgets/search/main.css +2 -0
  67. data/empty_view/themes/standard/widgets/search/pieces/card-head.lt3 +8 -0
  68. data/empty_view/themes/standard/widgets/search/pieces/card-tail.lt3 +4 -0
  69. data/empty_view/themes/standard/widgets/search/pieces/main-head.lt3 +10 -0
  70. data/empty_view/themes/standard/widgets/search/pieces/main-tail.lt3 +4 -0
  71. data/empty_view/themes/standard/widgets/search/search.lt3 +2 -0
  72. data/empty_view/themes/standard/widgets/search/search.rb +14 -0
  73. data/empty_view/themes/standard/widgets/sitemap/README +2 -0
  74. data/empty_view/themes/standard/widgets/sitemap/card.css +1 -0
  75. data/empty_view/themes/standard/widgets/sitemap/custom.rb +1 -0
  76. data/empty_view/themes/standard/widgets/sitemap/local-vars.lt3 +12 -0
  77. data/empty_view/themes/standard/widgets/sitemap/main.css +2 -0
  78. data/empty_view/themes/standard/widgets/sitemap/pieces/card-head.lt3 +8 -0
  79. data/empty_view/themes/standard/widgets/sitemap/pieces/card-tail.lt3 +4 -0
  80. data/empty_view/themes/standard/widgets/sitemap/pieces/main-head.lt3 +10 -0
  81. data/empty_view/themes/standard/widgets/sitemap/pieces/main-tail.lt3 +4 -0
  82. data/empty_view/themes/standard/widgets/sitemap/sitemap.lt3 +2 -0
  83. data/empty_view/themes/standard/widgets/sitemap/sitemap.rb +14 -0
  84. data/empty_view/themes/standard/widgets/tag-cloud/OLD-example.lt3 +12 -0
  85. data/empty_view/themes/standard/widgets/tag-cloud/README +2 -0
  86. data/empty_view/themes/standard/widgets/tag-cloud/card.css +1 -0
  87. data/empty_view/themes/standard/widgets/tag-cloud/custom.rb +1 -0
  88. data/empty_view/themes/standard/widgets/tag-cloud/local-vars.lt3 +12 -0
  89. data/empty_view/themes/standard/widgets/tag-cloud/main.css +2 -0
  90. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-head.lt3 +8 -0
  91. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-tail.lt3 +4 -0
  92. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-head.lt3 +10 -0
  93. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-tail.lt3 +4 -0
  94. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3 +1 -10
  95. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.rb +14 -0
  96. data/lib/default.rb +1 -4
  97. data/lib/global.rb +8 -7
  98. data/lib/helpers-blog.rb +15 -15
  99. data/lib/liveblog.rb +62 -28
  100. data/lib/logging.rb +17 -8
  101. data/lib/post.rb +6 -6
  102. data/lib/publish.rb +4 -4
  103. data/lib/runeblog.rb +79 -47
  104. data/lib/runeblog_version.rb +1 -1
  105. data/lib/view.rb +2 -8
  106. data/lib/xlate.rb +2 -2
  107. data/test/austin.rb +150 -0
  108. data/test/make_blog.rb +23 -2
  109. metadata +88 -8
  110. data/empty_view/remote/widgets/links/list.data +0 -3
  111. data/empty_view/remote/widgets/news/list.data +0 -4
  112. data/empty_view/remote/widgets/pages/list.data +0 -4
  113. data/empty_view/themes/standard/widgets/calendar/calendar.lt3 +0 -6
  114. data/empty_view/themes/standard/widgets/pages/pieces/main.css +0 -1
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>External Links</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # news: Recent News
2
+ .set widget.name = "Recent News"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,14 @@
1
+ # Custom code for 'news' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class News
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Recent News</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # pages: Pages
2
+ .set widget.name = "Pages"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for pages widget
2
+ * { font-family: verdana }
@@ -5,11 +5,14 @@
5
5
  class ::RuneBlog::Widget
6
6
  class Pages
7
7
  def self.build
8
+ # build child pages
8
9
  children = Dir["*.lt3"] - ["pages.lt3"]
9
10
  children.each do |child|
10
11
  dest = child.sub(/.lt3$/, ".html")
11
- xlate src: child, dst: dest, debug: true
12
+ xlate src: child, dst: dest # , debug: true
12
13
  end
14
+ # build mainfile
15
+ # build cardfile
13
16
  end
14
17
 
15
18
  def self.edit_menu
@@ -3,6 +3,8 @@
3
3
  <html>
4
4
  <head>
5
5
  <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
6
8
  </head>
7
9
  <body>
8
- <h1>$card.title</h1>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # pinned: Pinned Posts
2
+ .set widget.name = "Pinned Posts"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Pinned Posts</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links pinned Pinned Posts
@@ -0,0 +1,14 @@
1
+ # Custom code for 'pinned' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Pinned
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # search: Search Posts
2
+ .set widget.name = "Search Posts"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Search Posts</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links search Search Posts
@@ -0,0 +1,14 @@
1
+ # Custom code for 'search' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Search
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # sitemap: Site Map
2
+ .set widget.name = "Site Map"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Site Map</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links sitemap Site Map
@@ -0,0 +1,14 @@
1
+ # Custom code for 'sitemap' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Sitemap
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ .mixin liveblog
2
+
3
+ .tag_cloud
4
+ https://google.com/,btn btn-dark m-1,Programming
5
+ https://google.com/,btn btn-danger m-1,Science Fiction
6
+ https://google.com/,btn btn-light m-1,Art
7
+ https://google.com/,btn btn-dark m-1,Robotics
8
+ https://google.com/,btn btn-warning m-1,Food and Travel
9
+ https://google.com/,btn btn-light m-1,DIY Hacks
10
+ https://google.com/,btn btn-info m-1,Surfing
11
+ .end
12
+
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # tag-cloud: Tag Cloud
2
+ .set widget.name = "Tag Cloud"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end