runeblog 0.2.90 → 0.2.91

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: 365e66737ee3be0800f04dd3bda9eaca37cd6f76cd17db5d343eceff16749573
4
- data.tar.gz: da092312fc42edd3a662b45ca686b5c942353bb7f0d43bed209ff7085eb2718c
3
+ metadata.gz: 27cc38e2e368d435cd84531411f2e929a0bb629d4fcc3d05714db84c5a55a777
4
+ data.tar.gz: e7508aa230cac2adfddb9e7f9bd9175da281b801924ae567fee8315deb10de3a
5
5
  SHA512:
6
- metadata.gz: 67a954e3ce658970aadb244d6b35aee27c770a3e441033f3878deb6f991838418ecb59530163c42bfe88425d6c4c1e9684145b0c62e87b6f6a5244dd604f4e32
7
- data.tar.gz: 3e160483e7e9ec205d086db168d2b1254603fc2a4a6a18b789a360b38cc6c22eee4b221fbe0da6a132de4df7436f6bf18414e3bcab07db36cf683cb480178b38
6
+ metadata.gz: 27b4e7dcdc6d9a1b3bd82d6c1733267f21656d2efa8ad7f13667152bf09b9eab52ad4adc5aba330d4e0e3a2a8c7a79093d12a39b9dcdd0f6595ca0e0a419e364
7
+ data.tar.gz: 1034eb0b04e9c33a855be6fcdee7ee86408b9a65d4570db8416d4c4ae248137561261168c7cf941dfe86000be65da9375804b3b01f28d11889ce1fdfe76efaf8
@@ -0,0 +1 @@
1
+ .include ../../widgets/pages/faq.lt3
@@ -11,7 +11,7 @@
11
11
  $.seek global.lt3
12
12
  $.include blog/head.lt3
13
13
  <body>
14
- $.include blog/banner.lt3
14
+ $.include banner/banner.lt3
15
15
  <div class="content container-fluid mt-4">
16
16
  <div class="row">
17
17
  $.include blog/index.lt3
@@ -85,7 +85,8 @@ def code
85
85
  end
86
86
 
87
87
  def _read_navbar_data
88
- dir = @blog.root/:views/@blog.view/"themes/standard/banner/"
88
+ vdir = @blog.root/:views/@blog.view
89
+ dir = vdir/"themes/standard/banner/"
89
90
  datafile = dir/"list.data"
90
91
  File.readlines(datafile)
91
92
  end
@@ -97,6 +98,7 @@ def banner
97
98
  high = 250
98
99
  str2 = ""
99
100
  navbar = nil
101
+ vdir = @blog.root/:views/@blog.view
100
102
  lines = _body.to_a
101
103
 
102
104
  lines.each do |line|
@@ -130,15 +132,9 @@ def banner
130
132
  end
131
133
  str2 << "<td>" + File.read(file) + "</td>" + "\n"
132
134
  when "navbar"
133
- dir = @blog.root/:views/@blog.view/"themes/standard/banner/" + "\n"
134
- _make_navbar # horiz is default
135
- file = "banner/navbar.html"
136
- navbar = File.read(file)
135
+ navbar = _make_navbar # horiz is default
137
136
  when "vnavbar"
138
- dir = @blog.root/:views/@blog.view/"themes/standard/banner/"
139
- _make_navbar(:vert)
140
- file = "banner/vnavbar.html"
141
- navbar = File.read(file)
137
+ navbar = _make_navbar(:vert)
142
138
  when "break"
143
139
  str2 << " </tr>\n <tr>" + "\n"
144
140
  else
@@ -688,20 +684,20 @@ def _make_navbar(orient = :horiz)
688
684
  </td></tr></table>
689
685
  HTML
690
686
 
691
- html_file = @blog.root/:views/@blog.view/"themes/standard/banner"/name
687
+ html_file = @blog.root/:views/@blog.view/"themes/standard/banner/navbar"/name
692
688
  output = File.new(html_file, "w")
693
689
  output.puts start
694
690
  lines = _read_navbar_data
695
691
  lines = ["index Home"] + lines unless _args.include?("nohome")
696
692
  lines.each do |line|
697
693
  basename, cdata = line.chomp.strip.split(" ", 2)
698
- full = :banner/basename+".html"
694
+ full = :banner/:navbar/basename+".html"
699
695
  href_main = _main(full)
700
696
  if basename == "index" # special case
701
697
  output.puts %[#{li1} <a class="nav-link" href="index.html">#{cdata}<span class="sr-only">(current)</span></a> #{li2}]
702
698
  else
703
- dir = @blog.root/:views/@blog.view/"themes/standard/banner"
704
- dest = vdir/"remote/banner"/basename+".html"
699
+ dir = @blog.root/:views/@blog.view/"themes/standard/banner/navbar"
700
+ dest = vdir/"remote/banner/navbar"/basename+".html"
705
701
  preprocess cwd: dir, src: basename, dst: dest, call: ".nopara" # , debug: true
706
702
  output.puts %[#{li1} <a class="nav-link" #{href_main}>#{cdata}</a> #{li2}]
707
703
  end
@@ -39,6 +39,7 @@ module RuneBlog::REPL
39
39
 
40
40
  def cmd_config(arg, testing = false)
41
41
  hash = {"global.lt3 Global configuration" => "global.lt3",
42
+ "banner/top.lt3 Text portion of banner" => "banner/top.lt3",
42
43
  "blog/generate.lt3 Generator for view (usu not edited)" => "blog/generate.lt3",
43
44
  ".... head.lt3 HEAD info for view" => "blog/head.lt3",
44
45
  ".... banner.lt3 banner description" => "blog/banner.lt3",
@@ -75,10 +76,10 @@ module RuneBlog::REPL
75
76
  end
76
77
 
77
78
  def _manage_navbar(arg, testing = false) # cloned from manage_pages
78
- dir = @blog.view.dir/"themes/standard/navbar"
79
+ dir = @blog.view.dir/"themes/standard/banner/navbar"
79
80
  files = Dir.entries(dir) - %w[. .. navbar.lt3]
80
- new_item = " [New item] "
81
81
  main_file = "[ navbar.lt3 ]"
82
+ new_item = " [New item] "
82
83
  files = [main_file] + files + [new_item]
83
84
  num, fname = STDSCR.menu(title: "Edit navbar:", items: files)
84
85
  return if fname.nil?
@@ -472,6 +472,7 @@ class RuneBlog
472
472
  preprocess cwd: vdir/"themes/standard", deps: depend, force: true,
473
473
  src: "blog/generate.lt3", dst: vdir/:remote/"index.html",
474
474
  call: ".nopara"
475
+ copy!("#{vdir}/themes/standard/banner/*", "#{vdir}/remote/banner/") # includes navbar/
475
476
  copy("#{vdir}/assets/*", "#{vdir}/remote/assets/")
476
477
  copy_widget_html(view)
477
478
  rescue => err
@@ -3,7 +3,7 @@ if !defined?(RuneBlog::Path)
3
3
  # if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
4
4
 
5
5
  class RuneBlog
6
- VERSION = "0.2.90"
6
+ VERSION = "0.2.91"
7
7
 
8
8
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
9
9
  Path = File.dirname(path)
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.90
4
+ version: 0.2.91
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-18 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -91,7 +91,6 @@ files:
91
91
  - empty_view/assets/sky2.jpg
92
92
  - empty_view/posts/GIT_IS_DUMB
93
93
  - empty_view/remote/assets/GIT_IS_DUMB
94
- - empty_view/remote/banner/austin-pano.jpg
95
94
  - empty_view/remote/etc/GIT_IS_DUMB
96
95
  - empty_view/remote/permalink/GIT_IS_DUMB
97
96
  - empty_view/remote/widgets/ad/GIT_IS_DUMB
@@ -100,12 +99,12 @@ files:
100
99
  - empty_view/remote/widgets/pages/GIT_IS_DUMB
101
100
  - empty_view/remote/widgets/pinned/GIT_IS_DUMB
102
101
  - empty_view/themes/standard/README
103
- - empty_view/themes/standard/banner/about.lt3
104
- - empty_view/themes/standard/banner/contact.lt3
105
- - empty_view/themes/standard/banner/faq.lt3
106
- - empty_view/themes/standard/banner/list.data
102
+ - empty_view/themes/standard/banner/banner.lt3
103
+ - empty_view/themes/standard/banner/navbar/about.lt3
104
+ - empty_view/themes/standard/banner/navbar/contact.lt3
105
+ - empty_view/themes/standard/banner/navbar/faq.lt3
106
+ - empty_view/themes/standard/banner/navbar/list.data
107
107
  - empty_view/themes/standard/banner/top.lt3
108
- - empty_view/themes/standard/blog/banner.lt3
109
108
  - empty_view/themes/standard/blog/generate.lt3
110
109
  - empty_view/themes/standard/blog/head.lt3
111
110
  - empty_view/themes/standard/blog/index.lt3
@@ -1 +0,0 @@
1
- .include ../widgets/pages/faq.lt3