runeblog 0.2.76 → 0.2.77

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: b0c80c77d6bdb17bf32c8a90ed26aa3e98b43493c7b38f7341a359e53bda7cff
4
- data.tar.gz: 89d0a30d6f2ac56b932c8fd65d966ddcebed9320627ec032ae2d2ac68971a2e6
3
+ metadata.gz: bfd45d7f160becf53463b3d7155903923442bd09ad5bda3060073ae1ce026451
4
+ data.tar.gz: b6821e7aa9e5d363bdfbb93545cad68fcdd1d3288ffaef9661691f0fdf9a8925
5
5
  SHA512:
6
- metadata.gz: 6bc7626f7e00f7e656982c3bb6f5fea92da173ae430a1b4cdb888dfb170a6af84c33dcd99b6541f57e67c716e23ed484e947ba616f43156dacc7242a97871af2
7
- data.tar.gz: dd235b09c2f2f592f5a16afa574c62949731cbd634945b79e6969cfdfedbd9eb1132dad5bbd976416354972b4b9bf9d585e75bcd7aec264ec1d40c8f57e92a34
6
+ metadata.gz: '04480d91caa79a7373398e29b25c4cb3af1c7057fd766350d03f5a0e7aa6d84edd5d2b12a00fb67c813695723d0423f5a0e5a32c811211679b105d39eb7ae780'
7
+ data.tar.gz: 4ecaa3247239a822399a494643001c0a70346695284fada297aee876bf441168d44a1c6b0722c2ecc8338e0872087b2b44044470aed03aff6b4544f28b7dfb0d
@@ -4,6 +4,7 @@
4
4
  . The user will more often edit blog/index.lt3 in
5
5
  . the process of blog setup.
6
6
  . --------------------------------------------------
7
+ .nopara
7
8
 
8
9
  .mixin liveblog
9
10
 
@@ -8,16 +8,12 @@
8
8
  <table width=100% cellpadding=7>
9
9
  <tr>
10
10
  <td width=14% valign=top align=right style="margin-top: -1px;">
11
- <!-- <span class="post-date mt-1 mb-1" style="margin-top: 3px; text-align: right"> -->
12
- <font size=-1>#{date}</font>
13
- <!-- </span> -->
11
+ <font size=-1>#{date}</font>
14
12
  </td>
15
13
  <td>
16
- <!-- <span class="post-title-box"> -->
17
- <span class="post-title-text"><a href="#{url}" style="margin-top: -5px">#{title}</a></span>
18
- <b>#{teaser_text}</b>&nbsp;&nbsp;
19
- <a style="text-decoration: none" href="#{url}"><small>Keep reading...</small></a>
20
- <!-- </span> -->
14
+ <span class="post-title-text"><a href="#{url}" style="margin-top: -5px">#{title}</a></span>
15
+ <b>#{teaser_text}</b>&nbsp;&nbsp;
16
+ <a style="text-decoration: none" href="#{url}"><small>Keep reading...</small></a>
21
17
  </td>
22
18
  </tr>
23
19
  </table>
@@ -11,9 +11,12 @@
11
11
  .seek global.lt3
12
12
  .include vars.lt3
13
13
 
14
+ . FIXME
15
+
14
16
  .head
15
17
  og:title $title
16
18
  description $teaser
19
+ style blog.css
17
20
  .end
18
21
 
19
22
  <body>
@@ -108,7 +108,6 @@ module RuneBlog::Helpers
108
108
 
109
109
  def subdirs(dir)
110
110
  log!(enter: __method__, args: [dir], level: 3)
111
- STDERR.puts dir
112
111
  dirs = Dir.entries(dir) - %w[. ..]
113
112
  dirs.reject! {|x| ! File.directory?("#@root/views/#{x}") }
114
113
  dirs
@@ -496,7 +496,7 @@ def head # Does NOT output tags
496
496
  # "style" => %[<link rel="stylesheet" href="etc/blog.css">],
497
497
  # ^ FIXME
498
498
  "feed" => %[<link type="application/atom+xml" rel="alternate" href="#{_var(:host)}/feed.xml" title="#{_var(:blog)}">],
499
- "favicon" => %[<link rel="shortcut icon" type="image/x-icon" href="../etc/favicon.ico">\n <link rel="apple-touch-icon" href="../etc/favicon.ico">]
499
+ "favicon" => %[<link rel="shortcut icon" type="image/x-icon" href="etc/favicon.ico">\n <link rel="apple-touch-icon" href="etc/favicon.ico">]
500
500
  }
501
501
  result = {}
502
502
  lines = _body
@@ -511,7 +511,7 @@ def head # Does NOT output tags
511
511
  text = File.read(file)
512
512
  result["script"] = Livetext.new.transform(text)
513
513
  when "style"
514
- result["style"] = %[<link rel="stylesheet" href="('/etc/#{remain}')">]
514
+ result["style"] = %[<link rel="stylesheet" href="etc/#{remain}">]
515
515
  # Later: allow other overrides
516
516
  when ""; break
517
517
  else
@@ -431,12 +431,12 @@ class RuneBlog
431
431
  log!(enter: __method__, args: [view])
432
432
  vdir = @root/:views/view
433
433
  @theme = @root/:views/view/:themes/:standard
434
- depend = [vdir/"remote/etc/blog.css", @theme/"global.lt3",
434
+ depend = [vdir/"remote/etc/blog.css.lt3", @theme/"global.lt3",
435
435
  @theme/"blog/head.lt3",
436
436
  # @theme/"navbar/navbar.lt3",
437
437
  @theme/"blog/index.lt3"] # FIXME what about assets?
438
- xlate cwd: vdir/"themes/standard/etc", deps: depend,
439
- src: "blog.css.lt3", copy: vdir/"remote/etc/" # , debug: true
438
+ xlate cwd: vdir/"themes/standard/etc", # deps: depend, debug: true,
439
+ src: "blog.css.lt3", copy: vdir/"remote/etc/" # , dst: "blog.css"
440
440
  xlate cwd: vdir/"themes/standard", deps: depend, force: true,
441
441
  src: "blog/generate.lt3", dst: vdir/:remote/"index.html"
442
442
  copy("#{vdir}/assets/*", "#{vdir}/remote/assets/")
@@ -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.76"
5
+ VERSION = "0.2.77"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -22,11 +22,11 @@ def preprocess(cwd: Dir.pwd, src:,
22
22
  dst: (strip = true; File.basename(src).sub(/.lt3$/,"")),
23
23
  deps: [], copy: nil, debug: false, force: false)
24
24
  src += LEXT unless src.end_with?(LEXT)
25
- dst += ".html" unless (dst.end_with?(".html")) # || strip)
25
+ dst += ".html" unless (dst.end_with?(".html") || strip)
26
26
  sp = " "*12
27
27
  Dir.chdir(cwd) do
28
28
  if debug
29
- puts "#{sp} -- preprocess
29
+ puts "#{sp} -- preprocess "
30
30
  puts "#{sp} src: #{src}"
31
31
  puts "#{sp} dst: #{dst}"
32
32
  puts "#{sp} in: #{Dir.pwd}"
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.76
4
+ version: 0.2.77
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-12-10 00:00:00.000000000 Z
11
+ date: 2019-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext