runeblog 0.2.62 → 0.2.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.lt3 +43 -6
- data/README.md +45 -6
- data/empty_view/remote/widgets/ad/GIT_IS_DUMB +2 -0
- data/empty_view/remote/widgets/links/GIT_IS_DUMB +2 -0
- data/empty_view/remote/widgets/news/GIT_IS_DUMB +2 -0
- data/empty_view/remote/widgets/pages/GIT_IS_DUMB +2 -0
- data/empty_view/remote/widgets/pinned/GIT_IS_DUMB +2 -0
- data/empty_view/themes/standard/blog/generate.lt3 +1 -1
- data/lib/liveblog.rb +14 -180
- data/lib/runeblog.rb +0 -10
- data/lib/runeblog_version.rb +1 -1
- metadata +6 -8
- data/empty_view/themes/standard/widgets/bydates/bydates.lt3 +0 -2
- data/empty_view/themes/standard/widgets/links/links.lt3 +0 -2
- data/empty_view/themes/standard/widgets/news/news.lt3 +0 -2
- data/empty_view/themes/standard/widgets/pages/pages.lt3 +0 -2
- data/empty_view/themes/standard/widgets/pinned/pinned.lt3 +0 -2
- data/empty_view/themes/standard/widgets/search/search.lt3 +0 -2
- data/empty_view/themes/standard/widgets/sitemap/sitemap.lt3 +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eed573a3a6125d04994f9219e96c3f780ddfa6be6fe7601b61faab6ae4af14f1
|
4
|
+
data.tar.gz: 2ea2a8821dfa7b6fa2027d09857ba7857e982ba28e0b4b4df0d5939fb41a7e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '022598ff36e40f4f519912535255f8edf2bf02c412677d40d6c4b0720ccd712f8bdc81db2d31012d7687c04665ad5e2ce38bc1ea903b1afb96f6c4b62d56fd2a'
|
7
|
+
data.tar.gz: af41884ac8a5d475d5b04d295edc1faaf41254fe9bf06dfea3d12d3d1d6aca2a9374bedbd24f03e9502fc6a1dfddab9798dd4d10090b88f940b9a3ea986abadb
|
data/README.lt3
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.mixin markdown
|
2
2
|
<div style="float: left; align: left; vertical-align: bottom">
|
3
|
-
<img src="raido4.png" width="210" height="295" align="left"></img>
|
3
|
+
<img src="readme/raido4.png" width="210" height="295" align="left"></img>
|
4
4
|
</div>
|
5
5
|
<h1>runeblog</h1><b>Runeblog</b> is a blogging tool written in Ruby. It has these basic characteristics:
|
6
6
|
<ul>
|
@@ -80,8 +80,9 @@ a new blog repo. Enter `y for yes.
|
|
80
80
|
|
81
81
|
You'll then enter the editor (vim for now) to add configuration info to the `global.lt3 file.
|
82
82
|
|
83
|
-
<pre><b>FIXME add menu screenshot here</b></pre>
|
84
|
-
<pre><b>FIXME add vim screenshot here</b></pre>
|
83
|
+
<!-- <pre><b>FIXME add menu screenshot here</b></pre> -->
|
84
|
+
<!-- <pre><b>FIXME add vim screenshot here</b></pre> -->
|
85
|
+
<img src="readme/vim-global.png" width="494" height="696" align="left"></img>
|
85
86
|
|
86
87
|
The next thing you should do is to create at least one view of your own. Use the
|
87
88
|
`[new view] command for this. Note that the current view is displayed as part of the prompt.
|
@@ -95,7 +96,7 @@ To create a new post, use the `[new post] command (also abbreviated `post or sim
|
|
95
96
|
prompted for a title:
|
96
97
|
|
97
98
|
<pre>
|
98
|
-
<b>[
|
99
|
+
<b>[mystuff]</b> new post<br>
|
99
100
|
<b>Title:</b> This is my first post
|
100
101
|
</pre>
|
101
102
|
|
@@ -118,7 +119,7 @@ browse...
|
|
118
119
|
|
119
120
|
You can use the `config command to choose a file to edit.
|
120
121
|
|
121
|
-
<
|
122
|
+
<img src="readme/config-menu.png" width="700" height="547" align="left"></img>
|
122
123
|
|
123
124
|
The meaning and interaction of these files will be explained later. *FIXME
|
124
125
|
|
@@ -127,6 +128,42 @@ are needed.
|
|
127
128
|
|
128
129
|
.h2 The directory structure for a view
|
129
130
|
|
131
|
+
<b>Subject to change</b>
|
132
|
+
TBD: Add details
|
133
|
+
|
134
|
+
<pre>
|
135
|
+
.blogs/views/mystuff/
|
136
|
+
├── assets
|
137
|
+
├── posts
|
138
|
+
├── remote
|
139
|
+
│ ├── assets
|
140
|
+
│ ├── banner
|
141
|
+
│ ├── etc
|
142
|
+
│ ├── permalink
|
143
|
+
│ └── widgets
|
144
|
+
│ ├── ad
|
145
|
+
│ ├── links
|
146
|
+
│ ├── news
|
147
|
+
│ ├── pages
|
148
|
+
│ └── pinned
|
149
|
+
└── themes
|
150
|
+
└── standard
|
151
|
+
├── banner
|
152
|
+
├── blog
|
153
|
+
├── etc
|
154
|
+
├── post
|
155
|
+
└── widgets
|
156
|
+
├── ad
|
157
|
+
├── bydates
|
158
|
+
├── links
|
159
|
+
├── news
|
160
|
+
├── pages
|
161
|
+
├── pinned
|
162
|
+
├── search
|
163
|
+
├── sitemap
|
164
|
+
└── tag-cloud
|
165
|
+
</pre>
|
166
|
+
|
130
167
|
<pre><b>FIXME add details here</b></pre>
|
131
168
|
|
132
169
|
|
@@ -224,7 +261,7 @@ are needed.
|
|
224
261
|
|
225
262
|
<b>Creating your own widgets</b>
|
226
263
|
|
227
|
-
<b>Special tags coming "soon"</b>
|
264
|
+
<b>Special tags/functions coming "soon"</b>
|
228
265
|
<pre>
|
229
266
|
github, gitlab, gist
|
230
267
|
wikipedia
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<div style="float: left; align: left; vertical-align: bottom">
|
2
|
-
<img src="raido4.png" width="210" height="295" align="left"></img>
|
2
|
+
<img src="readme/raido4.png" width="210" height="295" align="left"></img>
|
3
3
|
</div>
|
4
4
|
<h1>runeblog</h1><b>Runeblog</b> is a blogging tool written in Ruby. It has these basic characteristics:
|
5
5
|
<ul>
|
@@ -82,8 +82,9 @@ a new blog repo. Enter y for yes.
|
|
82
82
|
You'll then enter the editor (vim for now) to add configuration info to the <font size=+1><tt>global.lt3</tt></font> file.
|
83
83
|
<p>
|
84
84
|
|
85
|
-
<pre><b>FIXME add menu screenshot here</b></pre>
|
86
|
-
<pre><b>FIXME add vim screenshot here</b></pre>
|
85
|
+
<!-- <pre><b>FIXME add menu screenshot here</b></pre> -->
|
86
|
+
<!-- <pre><b>FIXME add vim screenshot here</b></pre> -->
|
87
|
+
<img src="readme/vim-global.png" width="494" height="696" align="left"></img>
|
87
88
|
<p>
|
88
89
|
|
89
90
|
The next thing you should do is to create at least one view of your own. Use the
|
@@ -101,7 +102,7 @@ prompted for a title:
|
|
101
102
|
<p>
|
102
103
|
|
103
104
|
<pre>
|
104
|
-
<b>[
|
105
|
+
<b>[mystuff]</b> new post<br>
|
105
106
|
<b>Title:</b> This is my first post
|
106
107
|
</pre>
|
107
108
|
<p>
|
@@ -129,7 +130,7 @@ browse...
|
|
129
130
|
You can use the <font size=+1><tt>config</tt></font> command to choose a file to edit.
|
130
131
|
<p>
|
131
132
|
|
132
|
-
<
|
133
|
+
<img src="readme/config-menu.png" width="700" height="547" align="left"></img>
|
133
134
|
<p>
|
134
135
|
|
135
136
|
The meaning and interaction of these files will be explained later. <b>FIXME</b>
|
@@ -140,6 +141,44 @@ are needed.
|
|
140
141
|
<p>
|
141
142
|
|
142
143
|
## The directory structure for a view
|
144
|
+
<b>Subject to change</b>
|
145
|
+
TBD: Add details
|
146
|
+
<p>
|
147
|
+
|
148
|
+
<pre>
|
149
|
+
.blogs/views/mystuff/
|
150
|
+
├── assets
|
151
|
+
├── posts
|
152
|
+
├── remote
|
153
|
+
│ ├── assets
|
154
|
+
│ ├── banner
|
155
|
+
│ ├── etc
|
156
|
+
│ ├── permalink
|
157
|
+
│ └── widgets
|
158
|
+
│ ├── ad
|
159
|
+
│ ├── links
|
160
|
+
│ ├── news
|
161
|
+
│ ├── pages
|
162
|
+
│ └── pinned
|
163
|
+
└── themes
|
164
|
+
└── standard
|
165
|
+
├── banner
|
166
|
+
├── blog
|
167
|
+
├── etc
|
168
|
+
├── post
|
169
|
+
└── widgets
|
170
|
+
├── ad
|
171
|
+
├── bydates
|
172
|
+
├── links
|
173
|
+
├── news
|
174
|
+
├── pages
|
175
|
+
├── pinned
|
176
|
+
├── search
|
177
|
+
├── sitemap
|
178
|
+
└── tag-cloud
|
179
|
+
</pre>
|
180
|
+
<p>
|
181
|
+
|
143
182
|
<pre><b>FIXME add details here</b></pre>
|
144
183
|
<p>
|
145
184
|
|
@@ -252,7 +291,7 @@ are needed.
|
|
252
291
|
<b>Creating your own widgets</b>
|
253
292
|
<p>
|
254
293
|
|
255
|
-
<b>Special tags coming "soon"</b>
|
294
|
+
<b>Special tags/functions coming "soon"</b>
|
256
295
|
<pre>
|
257
296
|
github, gitlab, gist
|
258
297
|
wikipedia
|
@@ -14,7 +14,7 @@
|
|
14
14
|
.include blog/head.lt3
|
15
15
|
<body>
|
16
16
|
|
17
|
-
$.banner text: top.html image: austin-pano.jpg // navbar
|
17
|
+
$.banner bgcolor: 101035 text: top.html image: austin-pano.jpg // navbar
|
18
18
|
<div class="content container-fluid mt-4">
|
19
19
|
<div class="row">
|
20
20
|
$.include blog/index.lt3
|
data/lib/liveblog.rb
CHANGED
@@ -28,8 +28,6 @@ end
|
|
28
28
|
# "dot" commands
|
29
29
|
##################
|
30
30
|
|
31
|
-
|
32
|
-
|
33
31
|
def dropcap
|
34
32
|
# Bad form: adds another HEAD
|
35
33
|
text = _data
|
@@ -72,11 +70,8 @@ def faq
|
|
72
70
|
ques = _data.chomp
|
73
71
|
ans = _body_text
|
74
72
|
id = "faq#@faq_count"
|
75
|
-
# _out %[ <a class="btn btn-default btn-xs" data-toggle="collapse" href="##{id}" role="button" aria-expanded="false" aria-controls="collapseExample">+</a>]
|
76
73
|
_out %[ <a data-toggle="collapse" href="##{id}" role="button" aria-expanded="false" aria-controls="collapseExample"><font size=+3>⌄</font></a>]
|
77
74
|
_out %[ <b>#{ques}</b>]
|
78
|
-
# _out "<font size=-2><br></font>" if @faq_count == 1
|
79
|
-
# _out "<br>" unless @faq_count == 1
|
80
75
|
_out %[<div class="collapse" id="#{id}"><br><font size=+1> #{ans}</font></div>\n]
|
81
76
|
_out "<br>" unless @faq_count == 1
|
82
77
|
_optional_blank_line
|
@@ -93,11 +88,21 @@ def _read_navbar_data
|
|
93
88
|
end
|
94
89
|
|
95
90
|
def banner # still experimental
|
96
|
-
_out "<table width=100% bgcolor=#101035>"
|
97
|
-
_out " <tr>"
|
98
91
|
enum = _args.each
|
99
92
|
count = 0
|
100
93
|
span = 1
|
94
|
+
first = enum.peek
|
95
|
+
if first.start_with?("bgcolor:")
|
96
|
+
enum.next
|
97
|
+
bg = enum.next
|
98
|
+
else
|
99
|
+
bg = nil # bg = white - do nothing
|
100
|
+
end
|
101
|
+
str = "<table width=100%"
|
102
|
+
str << (bg ? " bgcolor=##{bg}>" : ">")
|
103
|
+
_out str
|
104
|
+
_out " <tr>"
|
105
|
+
|
101
106
|
loop do
|
102
107
|
count += 1
|
103
108
|
arg = enum.next
|
@@ -119,17 +124,14 @@ def banner # still experimental
|
|
119
124
|
_out "<td colspan=#{span}>" + File.read(file) + "</td>" +
|
120
125
|
" <!-- #{arg} -->"
|
121
126
|
when "navbar"
|
122
|
-
# STDERR.puts "-- navbar: pwd = #{Dir.pwd}: #{`ls`}"
|
123
127
|
dir = @blog.root/:views/@blog.view/"themes/standard/banner/"
|
124
128
|
_make_navbar # horiz is default
|
125
|
-
# xlate cwd: dir, src: "navbar.lt3", dst: "navbar.html" # , debug: true
|
126
129
|
stuff = File.read("banner/navbar.html")
|
127
130
|
_out "<td colspan=#{span}><div style='text-align: center'>#{stuff}</div></td>" +
|
128
131
|
" <!-- #{arg} -->"
|
129
132
|
when "vnavbar"
|
130
133
|
dir = @blog.root/:views/@blog.view/"themes/standard/banner/"
|
131
134
|
_make_navbar(:vert)
|
132
|
-
# xlate cwd: dir, src: "vnavbar.lt3", dst: "vnavbar.html" # , debug: true
|
133
135
|
file = "banner/vnavbar.html"
|
134
136
|
_out "<td colspan=#{span}>" + File.read(file) + "</td>" +
|
135
137
|
"<!-- #{arg} -->"
|
@@ -197,21 +199,6 @@ def list!
|
|
197
199
|
_optional_blank_line
|
198
200
|
end
|
199
201
|
|
200
|
-
|
201
|
-
def make_main_links
|
202
|
-
log!(enter: __method__, level: 1)
|
203
|
-
# FIXME remember strings may not be safe
|
204
|
-
line = _data.chomp
|
205
|
-
tag, card_title = *line.split(" ", 2)
|
206
|
-
cardfile, mainfile = "#{tag}-card", "#{tag}-main"
|
207
|
-
input = "list.data"
|
208
|
-
log!(str: "Reading #{input}", pwd: true, level: 3)
|
209
|
-
pairs = File.readlines(input).map {|line| line.chomp.split(/, */, 2) }
|
210
|
-
_write_main(mainfile, pairs, card_title, tag)
|
211
|
-
_write_card(cardfile, mainfile, pairs, card_title, tag)
|
212
|
-
log!(str: "...returning from method", pwd: true, level: 3)
|
213
|
-
end
|
214
|
-
|
215
202
|
### inset
|
216
203
|
|
217
204
|
def inset
|
@@ -232,7 +219,6 @@ def inset
|
|
232
219
|
else # Only into body
|
233
220
|
output << line
|
234
221
|
end
|
235
|
-
# _passthru(line)
|
236
222
|
end
|
237
223
|
lr = _args.first
|
238
224
|
wide = _args[1] || "25"
|
@@ -241,10 +227,6 @@ def inset
|
|
241
227
|
_out "</p>" # kludge!! nopara
|
242
228
|
0.upto(2) {|i| _passthru output[i] }
|
243
229
|
_passthru stuff
|
244
|
-
# _passthru "<div style='float:#{lr}; width: #{wide}%; padding:8px; padding-right:12px'>" # ; font-family:verdana'>"
|
245
|
-
# _passthru '<b><i>'
|
246
|
-
# _passthru box
|
247
|
-
# _passthru_noline '</i></b></div>'
|
248
230
|
3.upto(output.length-1) {|i| _passthru output[i] }
|
249
231
|
_out "<p>" # kludge!! para
|
250
232
|
_optional_blank_line
|
@@ -256,7 +238,6 @@ def title
|
|
256
238
|
@meta.title = title
|
257
239
|
setvar :title, title
|
258
240
|
# FIXME refactor -- just output variables for a template
|
259
|
-
# _out %[<h1 class="post-title">#{title}</h1><br>]
|
260
241
|
_optional_blank_line
|
261
242
|
end
|
262
243
|
|
@@ -346,15 +327,8 @@ def teaser
|
|
346
327
|
end
|
347
328
|
|
348
329
|
def finalize
|
349
|
-
|
350
|
-
|
351
|
-
STDERR.puts "META is nil: file = #{Livetext::Vars[:File]}"
|
352
|
-
# puts @live.body
|
353
|
-
return
|
354
|
-
end
|
355
|
-
if @blog.nil?
|
356
|
-
return @meta
|
357
|
-
end
|
330
|
+
return unless @meta
|
331
|
+
return @meta if @blog.nil?
|
358
332
|
|
359
333
|
@slug = @blog.make_slug(@meta)
|
360
334
|
slug_dir = @slug
|
@@ -609,17 +583,6 @@ class Livetext::Functions
|
|
609
583
|
def _var(name)
|
610
584
|
::Livetext::Vars[name] || "[:#{name} is undefined]"
|
611
585
|
end
|
612
|
-
|
613
|
-
# def link(param = nil)
|
614
|
-
# puts "--- WTF?? param = #{param.inspect}"; gets
|
615
|
-
# file, cdata = param.split("||", 2)
|
616
|
-
# %[<a href="assets/#{file}">#{cdata}</a>]
|
617
|
-
# end
|
618
|
-
#
|
619
|
-
# def link(param = nil)
|
620
|
-
# file, cdata = param.split("||", 2)
|
621
|
-
# %[<link type="application/atom+xml" rel="alternate" href="#{_var(:host)}#{file}" title="#{_var(:title)}">]
|
622
|
-
# end
|
623
586
|
end
|
624
587
|
|
625
588
|
###
|
@@ -688,17 +651,14 @@ end
|
|
688
651
|
|
689
652
|
def vnavbar
|
690
653
|
str = _make_navbar(:vert)
|
691
|
-
# _out str
|
692
654
|
end
|
693
655
|
|
694
656
|
def hnavbar
|
695
657
|
str = _make_navbar # horiz is default
|
696
|
-
# _out str
|
697
658
|
end
|
698
659
|
|
699
660
|
def navbar
|
700
661
|
str = _make_navbar # horiz is default
|
701
|
-
# _out str
|
702
662
|
end
|
703
663
|
|
704
664
|
def _make_navbar(orient = :horiz)
|
@@ -759,123 +719,6 @@ def _html_body(file, css = nil)
|
|
759
719
|
file.puts " </body>\n</html>"
|
760
720
|
end
|
761
721
|
|
762
|
-
def _write_card(cardfile, mainfile, pairs, card_title, tag)
|
763
|
-
log!(str: "Creating #{cardfile}.html", pwd: true, level: 2)
|
764
|
-
url = mainfile
|
765
|
-
url = :widgets/tag/mainfile + ".html"
|
766
|
-
File.open("#{cardfile}.html", "w") do |f|
|
767
|
-
f.puts <<-EOS
|
768
|
-
<div class="card mb-3">
|
769
|
-
<div class="card-body">
|
770
|
-
<h5 class="card-title">
|
771
|
-
<button type="button" class="btn btn-primary" data-toggle="collapse" data-target="##{tag}">+</button>
|
772
|
-
<a href="javascript: void(0)"
|
773
|
-
onclick="javascript:open_main('#{url}')"
|
774
|
-
style="text-decoration: none; color: black"> #{card_title}</a>
|
775
|
-
</h5>
|
776
|
-
<div class="collapse" id="#{tag}">
|
777
|
-
EOS
|
778
|
-
log!(str: "Writing data pairs to #{cardfile}.html", pwd: true, level: 2)
|
779
|
-
local = _local_tag?(tag)
|
780
|
-
pairs.each do |file, title|
|
781
|
-
url = file
|
782
|
-
type, title = page_type(tag, title)
|
783
|
-
case type
|
784
|
-
when :local; url_ref = _widget_card(file, tag) # local always frameable
|
785
|
-
when :frame; url_ref = _main(file) # remote, frameable
|
786
|
-
when :noframe; url_ref = _blank(file) # remote, not frameable
|
787
|
-
end
|
788
|
-
anchor = %[<a #{url_ref}>#{title}</a>]
|
789
|
-
wrapper = %[<li class="list-group-item">#{anchor}</li>]
|
790
|
-
f.puts wrapper
|
791
|
-
end
|
792
|
-
_include_file cardfile+".html"
|
793
|
-
f.puts <<-EOS
|
794
|
-
</div>
|
795
|
-
</div>
|
796
|
-
</div>
|
797
|
-
EOS
|
798
|
-
end
|
799
|
-
end
|
800
|
-
|
801
|
-
def _local_tag?(tag)
|
802
|
-
case tag.to_sym
|
803
|
-
when :pages
|
804
|
-
true
|
805
|
-
when :news, :links
|
806
|
-
false
|
807
|
-
else
|
808
|
-
true # Hmmm...
|
809
|
-
end
|
810
|
-
end
|
811
|
-
|
812
|
-
def page_type(tag, title)
|
813
|
-
yesno = "yes"
|
814
|
-
yesno, title = title.split(/, */) if title =~ /^[yes|no]/
|
815
|
-
local = _local_tag?(tag)
|
816
|
-
frameable = (yesno == "yes")
|
817
|
-
if local
|
818
|
-
return [:local, title]
|
819
|
-
elsif frameable
|
820
|
-
return [:frame, title]
|
821
|
-
else
|
822
|
-
return [:noframe, title]
|
823
|
-
end
|
824
|
-
end
|
825
|
-
|
826
|
-
def _write_main_pages(mainfile, pairs, card_title, tag)
|
827
|
-
local = _local_tag?(tag)
|
828
|
-
pieces = @blog.view.dir/"themes/standard/widgets"/tag/:pieces
|
829
|
-
main_head = xlate! cwd: pieces, src: "main-head.lt3"
|
830
|
-
main_tail = xlate! cwd: pieces, src: "main-tail.lt3"
|
831
|
-
# ^ make into methods in pages.rb or whatever?
|
832
|
-
|
833
|
-
File.open("#{mainfile}.html", "w") do |f|
|
834
|
-
f.puts main_head
|
835
|
-
pairs.each do |file, title|
|
836
|
-
type, title = page_type(tag, title)
|
837
|
-
title = title.gsub(/\\/, "") # kludge
|
838
|
-
case type
|
839
|
-
when :local; url_ref = _widget_main(file, tag) # local always frameable
|
840
|
-
when :frame; url_ref = "href = '#{file}'" # local always frameable
|
841
|
-
when :noframe; url_ref = _blank(file) # local always frameable
|
842
|
-
end
|
843
|
-
css = "color: #8888FF; text-decoration: none; font-size: 21px" # ; font-family: verdana"
|
844
|
-
f.puts %[<a style="#{css}" #{url_ref}>#{title}</a> <br>]
|
845
|
-
end
|
846
|
-
f.puts main_tail
|
847
|
-
end
|
848
|
-
end
|
849
|
-
|
850
|
-
def _write_main(mainfile, pairs, card_title, tag)
|
851
|
-
log!(str: "Creating #{mainfile}.html", pwd: true, level: 2)
|
852
|
-
|
853
|
-
if tag == "pages" # temporary experiment
|
854
|
-
_write_main_pages(mainfile, pairs, card_title, tag)
|
855
|
-
return
|
856
|
-
end
|
857
|
-
|
858
|
-
local = _local_tag?(tag)
|
859
|
-
setvar "card.title", card_title
|
860
|
-
css = "* { font-family: verdana }"
|
861
|
-
File.open("#{mainfile}.html", "w") do |f|
|
862
|
-
_html_body(f, css) do
|
863
|
-
f.puts "<h1>#{card_title}</h1><br><hr>"
|
864
|
-
pairs.each do |file, title|
|
865
|
-
type, title = page_type(tag, title)
|
866
|
-
title = title.gsub(/\\/, "") # kludge
|
867
|
-
case type
|
868
|
-
when :local; url_ref = _widget_main(file, tag) # local always frameable
|
869
|
-
when :frame; url_ref = "href = '#{file}'" # local always frameable
|
870
|
-
when :noframe; url_ref = _blank(file) # local always frameable
|
871
|
-
end
|
872
|
-
css = "color: #8888FF; text-decoration: none; font-size: 21px" # ; font-family: verdana"
|
873
|
-
f.puts %[<a style="#{css}" #{url_ref}>#{title}</a> <br>]
|
874
|
-
end
|
875
|
-
end
|
876
|
-
end
|
877
|
-
end
|
878
|
-
|
879
722
|
def _errout(*args)
|
880
723
|
::STDERR.puts *args
|
881
724
|
end
|
@@ -950,12 +793,3 @@ def _blank(url)
|
|
950
793
|
%[href='#{url}' target='blank']
|
951
794
|
end
|
952
795
|
|
953
|
-
def _widget_main(url, tag)
|
954
|
-
%[href="#{url}"]
|
955
|
-
end
|
956
|
-
|
957
|
-
def _widget_card(url, tag)
|
958
|
-
url2 = :widgets/tag/url
|
959
|
-
%[href="javascript: void(0)" onclick="javascript:open_main('#{url2}')"]
|
960
|
-
end
|
961
|
-
|
data/lib/runeblog.rb
CHANGED
@@ -447,15 +447,6 @@ posts.each {|x| STDERR.puts " " + x }
|
|
447
447
|
_tmp_error(err)
|
448
448
|
end
|
449
449
|
|
450
|
-
def _hack_pinned_rebuild(view)
|
451
|
-
tmp = "/tmp/pinned.lt3"
|
452
|
-
File.open(tmp, "w") do |f|
|
453
|
-
f.puts ".mixin liveblog\n.pinned_rebuild #{view}"
|
454
|
-
end
|
455
|
-
xlate src: tmp, dst: "/tmp/junk.html"
|
456
|
-
system("rm -f #{tmp} /tmp/junk.html")
|
457
|
-
end
|
458
|
-
|
459
450
|
def generate_view(view) # huh?
|
460
451
|
log!(enter: __method__, args: [view])
|
461
452
|
vdir = @root/:views/view
|
@@ -469,7 +460,6 @@ posts.each {|x| STDERR.puts " " + x }
|
|
469
460
|
xlate cwd: vdir/"themes/standard", deps: depend, force: true,
|
470
461
|
src: "blog/generate.lt3", dst: vdir/:remote/"index.html"
|
471
462
|
copy("#{vdir}/assets/*", "#{vdir}/remote/assets/")
|
472
|
-
# _hack_pinned_rebuild(view) # FIXME experimental
|
473
463
|
copy_widget_html(view)
|
474
464
|
rescue => err
|
475
465
|
_tmp_error(err)
|
data/lib/runeblog_version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -69,6 +69,11 @@ files:
|
|
69
69
|
- empty_view/remote/banner/top.html
|
70
70
|
- empty_view/remote/etc/GIT_IS_DUMB
|
71
71
|
- empty_view/remote/permalink/GIT_IS_DUMB
|
72
|
+
- empty_view/remote/widgets/ad/GIT_IS_DUMB
|
73
|
+
- empty_view/remote/widgets/links/GIT_IS_DUMB
|
74
|
+
- empty_view/remote/widgets/news/GIT_IS_DUMB
|
75
|
+
- empty_view/remote/widgets/pages/GIT_IS_DUMB
|
76
|
+
- empty_view/remote/widgets/pinned/GIT_IS_DUMB
|
72
77
|
- empty_view/themes/standard/README
|
73
78
|
- empty_view/themes/standard/banner/about.lt3
|
74
79
|
- empty_view/themes/standard/banner/austin-pano.jpg
|
@@ -97,7 +102,6 @@ files:
|
|
97
102
|
- empty_view/themes/standard/widgets/ad/ad3.png
|
98
103
|
- empty_view/themes/standard/widgets/ad/ad4.png
|
99
104
|
- empty_view/themes/standard/widgets/bydates/README
|
100
|
-
- empty_view/themes/standard/widgets/bydates/bydates.lt3
|
101
105
|
- empty_view/themes/standard/widgets/bydates/bydates.rb
|
102
106
|
- empty_view/themes/standard/widgets/bydates/card.css
|
103
107
|
- empty_view/themes/standard/widgets/bydates/custom.rb
|
@@ -110,7 +114,6 @@ files:
|
|
110
114
|
- empty_view/themes/standard/widgets/links/README
|
111
115
|
- empty_view/themes/standard/widgets/links/card.css
|
112
116
|
- empty_view/themes/standard/widgets/links/custom.rb
|
113
|
-
- empty_view/themes/standard/widgets/links/links.lt3
|
114
117
|
- empty_view/themes/standard/widgets/links/links.rb
|
115
118
|
- empty_view/themes/standard/widgets/links/list.data
|
116
119
|
- empty_view/themes/standard/widgets/links/local-vars.lt3
|
@@ -125,7 +128,6 @@ files:
|
|
125
128
|
- empty_view/themes/standard/widgets/news/list.data
|
126
129
|
- empty_view/themes/standard/widgets/news/local-vars.lt3
|
127
130
|
- empty_view/themes/standard/widgets/news/main.css
|
128
|
-
- empty_view/themes/standard/widgets/news/news.lt3
|
129
131
|
- empty_view/themes/standard/widgets/news/news.rb
|
130
132
|
- empty_view/themes/standard/widgets/news/pieces/card-head.lt3
|
131
133
|
- empty_view/themes/standard/widgets/news/pieces/card-tail.lt3
|
@@ -142,7 +144,6 @@ files:
|
|
142
144
|
- empty_view/themes/standard/widgets/pages/local.rb
|
143
145
|
- empty_view/themes/standard/widgets/pages/main.css
|
144
146
|
- empty_view/themes/standard/widgets/pages/other-stuff.lt3
|
145
|
-
- empty_view/themes/standard/widgets/pages/pages.lt3
|
146
147
|
- empty_view/themes/standard/widgets/pages/pages.rb
|
147
148
|
- empty_view/themes/standard/widgets/pages/pieces/card-head.lt3
|
148
149
|
- empty_view/themes/standard/widgets/pages/pieces/card-tail.lt3
|
@@ -157,7 +158,6 @@ files:
|
|
157
158
|
- empty_view/themes/standard/widgets/pinned/pieces/card-tail.lt3
|
158
159
|
- empty_view/themes/standard/widgets/pinned/pieces/main-head.lt3
|
159
160
|
- empty_view/themes/standard/widgets/pinned/pieces/main-tail.lt3
|
160
|
-
- empty_view/themes/standard/widgets/pinned/pinned.lt3
|
161
161
|
- empty_view/themes/standard/widgets/pinned/pinned.rb
|
162
162
|
- empty_view/themes/standard/widgets/search/README
|
163
163
|
- empty_view/themes/standard/widgets/search/card.css
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- empty_view/themes/standard/widgets/search/pieces/card-tail.lt3
|
169
169
|
- empty_view/themes/standard/widgets/search/pieces/main-head.lt3
|
170
170
|
- empty_view/themes/standard/widgets/search/pieces/main-tail.lt3
|
171
|
-
- empty_view/themes/standard/widgets/search/search.lt3
|
172
171
|
- empty_view/themes/standard/widgets/search/search.rb
|
173
172
|
- empty_view/themes/standard/widgets/sitemap/README
|
174
173
|
- empty_view/themes/standard/widgets/sitemap/card.css
|
@@ -179,7 +178,6 @@ files:
|
|
179
178
|
- empty_view/themes/standard/widgets/sitemap/pieces/card-tail.lt3
|
180
179
|
- empty_view/themes/standard/widgets/sitemap/pieces/main-head.lt3
|
181
180
|
- empty_view/themes/standard/widgets/sitemap/pieces/main-tail.lt3
|
182
|
-
- empty_view/themes/standard/widgets/sitemap/sitemap.lt3
|
183
181
|
- empty_view/themes/standard/widgets/sitemap/sitemap.rb
|
184
182
|
- empty_view/themes/standard/widgets/tag-cloud/OLD-example.lt3
|
185
183
|
- empty_view/themes/standard/widgets/tag-cloud/README
|