runeblog 0.2.55 → 0.2.56

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: fc38d28b7bb52c2b14c41a1e6ad0c875fcd9bc47fbd6186a04e6fcecb87bf16e
4
- data.tar.gz: a9435a225a6f5f45cbd1b77fbb53ba68d5748a1b3a576a3acc8b3c0a536f32a5
3
+ metadata.gz: ccac3f162a763826c1eeaed68d656887860601c83b52a5df2ff1f25a42e54687
4
+ data.tar.gz: 275a5ec1d3b89937fdd95ea051ed17d9dfba8b4d05448d67cb32a688255a270b
5
5
  SHA512:
6
- metadata.gz: 251256c19fc4c4b8a0001c52f96485dc9d69ac41247548b18b1fd91ed911819903f1cc7d75b3f83ac81cec544c816a2b9b4694509c90831f4e1b6fa0c57479d2
7
- data.tar.gz: aceab9142ab242538a34ae66d02ecd3380be11f6e3a16c0c75fe82430220f1442e6d895d0df8260f5ff617511b83c4bfb7495c920363ab5ec032e4ad22cb0d79
6
+ metadata.gz: 5c1d684ff80ad64969f68d5cb753d6785551a45c8887786d9071bb79b4b6fed360776355201294779f38417615946ab351b071e03ca2ec25fbe1b5aa8484cc44
7
+ data.tar.gz: 568cddf381190b876596952f87824e45689cb9b13e0ac9e52128504af42f24d414bc151b962d7255d07cb26f8bf2c78c5f021247f98026baabe5bd6645eff549
@@ -0,0 +1,4 @@
1
+ <div style="text-align: center; color: white; background: #101035">
2
+ <h1>Around Austin</h1><br>
3
+ The view from downtown...
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div style="text-align: center; color: white; background: #101035">
2
+ <h1>Around Austin</h1><br>
3
+ The view from downtown...
4
+ </div>
@@ -14,22 +14,7 @@
14
14
  .include blog/head.lt3
15
15
  <body>
16
16
 
17
- .set color = #101035
18
-
19
- . FIXME
20
- <table width=100% bgcolor=$color>
21
- <tr>
22
- <td width=30% bgcolor=$color>
23
- <div style="text-align: center; color: white">
24
- <h1>Around Austin</h1><br>
25
- The view from downtown...
26
- </div>
27
- </td>
28
- <td><img src=assets/austin-pano.jpg width=100%></img>
29
- </tr>
30
- </table>
31
-
32
- $.include navbar/navbar.lt3
17
+ $.banner text: top.html image: austin-pano.jpg // navbar
33
18
  <div class="content container-fluid mt-4">
34
19
  <div class="row">
35
20
  $.include blog/index.lt3
@@ -87,33 +87,41 @@ def backlink
87
87
  end
88
88
 
89
89
  def banner # still experimental
90
- _out "<table>"
91
- _body do |line|
92
- pieces = line.split
93
- cols = pieces.size
94
- span = cols == 2 ? 1 : 2 # whaaat?
95
- _out " <tr>"
96
- pieces.each do |piece|
97
- _out " <td colspan=#{span}>"
98
- case
99
- when piece.start_with?("navbar")
100
- file = "navbar/navbar.html"
101
- _out File.read(file)
102
- when piece.start_with?("text")
103
- file = piece.split(":")[1]
104
- file ||= "banner/text.html"
105
- _out File.read(file)
106
- when piece.start_with?("image")
107
- image = piece.split(":")[1]
108
- image ||= "banner/banner.jpg"
109
- _out " <img src=#{image} height=100></img>"
110
- else
111
- _out " '#{piece}' isn't known"
112
- end
113
- _out " </td>"
90
+ _out "<table width=100% bgcolor=#101035>"
91
+ _out " <tr>"
92
+ enum = _args.each
93
+ count = 0
94
+ span = 1
95
+ loop do
96
+ count += 1
97
+ arg = enum.next
98
+ case arg
99
+ when "image"
100
+ image = "banner/banner.jpg"
101
+ _out " <td colspan=#{span}><img src=#{image} height=150></img></td>"
102
+ when "image:"
103
+ image = "banner/#{enum.next}"
104
+ _out " <td colspan=#{span}><img src=#{image} height=150></img></td>"
105
+ when "text"
106
+ file = "banner/text.html"
107
+ _out "<td colspan=#{span}>" + File.read(file) + "</td>"
108
+ when "text:"
109
+ file = "banner/#{enum.next}"
110
+ _out "<td colspan=#{span}>" + File.read(file) + "</td>"
111
+ when "navbar"
112
+ file = "navbar/navbar.html"
113
+ _out "<td colspan=#{span}><div style='text-align: center'>" + File.read(file) + "</div></td>"
114
+ when "vnavbar"
115
+ file = "navbar/vnavbar.html"
116
+ _out "<td colspan=#{span}>" + File.read(file) + "</td>"
117
+ when "//"
118
+ span = count - 1
119
+ _out " </tr>\n <tr>"
120
+ else
121
+ _out " '#{arg}' isn't known"
114
122
  end
115
- _out " </tr>"
116
123
  end
124
+ _out " </tr>"
117
125
  _out "</table>"
118
126
  end
119
127
 
@@ -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.55"
5
+ VERSION = "0.2.56"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -34,6 +34,7 @@ spec = Gem::Specification.new do |s|
34
34
  s.files = main + misc + test + empty_view
35
35
  s.homepage = 'https://github.com/Hal9000/runeblog'
36
36
  s.license = "Ruby"
37
+ s.post_install_message = "\n Success! Run 'blog' command and type h for help.\n "
37
38
  end
38
39
 
39
40
  spec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.55
4
+ version: 0.2.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -65,15 +65,19 @@ files:
65
65
  - empty_view/assets/austin-pano.jpg
66
66
  - empty_view/assets/sky2.jpg
67
67
  - empty_view/remote/assets/GIT_IS_DUMB
68
+ - empty_view/remote/banner/austin-pano.jpg
69
+ - empty_view/remote/banner/top.html
68
70
  - empty_view/remote/etc/GIT_IS_DUMB
69
71
  - empty_view/remote/navbar/GIT_IS_DUMB
70
72
  - empty_view/remote/permalink/GIT_IS_DUMB
71
73
  - empty_view/themes/standard/README
72
74
  - empty_view/themes/standard/banner/about.lt3
75
+ - empty_view/themes/standard/banner/austin-pano.jpg
73
76
  - empty_view/themes/standard/banner/blog-banner.jpg
74
77
  - empty_view/themes/standard/banner/contact.lt3
75
78
  - empty_view/themes/standard/banner/faq.lt3
76
79
  - empty_view/themes/standard/banner/navbar.lt3
80
+ - empty_view/themes/standard/banner/top.html
77
81
  - empty_view/themes/standard/blog/generate.lt3
78
82
  - empty_view/themes/standard/blog/head.lt3
79
83
  - empty_view/themes/standard/blog/index.lt3
@@ -218,7 +222,7 @@ homepage: https://github.com/Hal9000/runeblog
218
222
  licenses:
219
223
  - Ruby
220
224
  metadata: {}
221
- post_install_message:
225
+ post_install_message: "\n Success! Run 'blog' command and type h for help.\n "
222
226
  rdoc_options: []
223
227
  require_paths:
224
228
  - lib