runeblog 0.2.76 → 0.2.77
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/empty_view/themes/standard/blog/generate.lt3 +1 -0
- data/empty_view/themes/standard/blog/post_entry.lt3 +4 -8
- data/empty_view/themes/standard/post/generate.lt3 +3 -0
- data/lib/helpers-blog.rb +0 -1
- data/lib/liveblog.rb +2 -2
- data/lib/runeblog.rb +3 -3
- data/lib/runeblog_version.rb +1 -1
- data/lib/xlate.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd45d7f160becf53463b3d7155903923442bd09ad5bda3060073ae1ce026451
|
4
|
+
data.tar.gz: b6821e7aa9e5d363bdfbb93545cad68fcdd1d3288ffaef9661691f0fdf9a8925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '04480d91caa79a7373398e29b25c4cb3af1c7057fd766350d03f5a0e7aa6d84edd5d2b12a00fb67c813695723d0423f5a0e5a32c811211679b105d39eb7ae780'
|
7
|
+
data.tar.gz: 4ecaa3247239a822399a494643001c0a70346695284fada297aee876bf441168d44a1c6b0722c2ecc8338e0872087b2b44044470aed03aff6b4544f28b7dfb0d
|
@@ -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
|
-
|
12
|
-
<font size=-1>#{date}</font>
|
13
|
-
<!-- </span> -->
|
11
|
+
<font size=-1>#{date}</font>
|
14
12
|
</td>
|
15
13
|
<td>
|
16
|
-
|
17
|
-
|
18
|
-
|
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>
|
16
|
+
<a style="text-decoration: none" href="#{url}"><small>Keep reading...</small></a>
|
21
17
|
</td>
|
22
18
|
</tr>
|
23
19
|
</table>
|
data/lib/helpers-blog.rb
CHANGED
data/lib/liveblog.rb
CHANGED
@@ -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="
|
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="
|
514
|
+
result["style"] = %[<link rel="stylesheet" href="etc/#{remain}">]
|
515
515
|
# Later: allow other overrides
|
516
516
|
when ""; break
|
517
517
|
else
|
data/lib/runeblog.rb
CHANGED
@@ -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/"
|
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/")
|
data/lib/runeblog_version.rb
CHANGED
data/lib/xlate.rb
CHANGED
@@ -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")
|
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.
|
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-
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|