runeblog 0.1.97 → 0.1.98
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liveblog.rb +7 -11
- data/lib/runeblog_version.rb +1 -1
- data/themes/standard/etc/blog.css.lt3 +6 -6
- data/themes/standard/global.lt3 +7 -7
- data/themes/standard/sidebar/ad.lt3 +1 -1
- data/themes/standard/sidebar/news.lt3 +4 -4
- data/themes/standard/sidebar/tag-cloud.lt3 +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fd9b65f6c0b86016976c411fdb3908a3ad6f9047ab947212ff85d0e9b62d9e1
|
4
|
+
data.tar.gz: 1e9eb6d52e34fa23e032cb80d0c83fec8cbf559b26c695ba235768b87baf77b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96232d21239e2f17a31c09378095a81d29d4c18a7f29c8355d98964ef7aa86bfc8d2d20976cf1c2c8095d9c3c686f4b6f1df0ff2d279072aecf058f88839d37
|
7
|
+
data.tar.gz: ba17a16608da8f83145ed92e7188dec1625d25f555ef1fc5849644b554b9196a4b7d765175e5c5ca49646eee36365298fda06e36b0a493361eb2e86df95dd9dd
|
data/lib/liveblog.rb
CHANGED
@@ -291,12 +291,12 @@ def head # Does NOT output <head> tags
|
|
291
291
|
defaults = {}
|
292
292
|
defaults = { "charset" => %[<meta charset="utf-8">],
|
293
293
|
"http-equiv" => %[<meta http-equiv="X-UA-Compatible" content="IE=edge">],
|
294
|
-
"title" => %[<title>\n #{_var(:blog)} | #{_var(
|
294
|
+
"title" => %[<title>\n #{_var(:blog)} | #{_var("blog.desc")}\n </title>],
|
295
295
|
"generator" => %[<meta name="generator" content="Runeblog v #@version">],
|
296
296
|
"og:title" => %[<meta property="og:title" content="#{_var(:blog)}">],
|
297
297
|
"og:locale" => %[<meta property="og:locale" content="#{_var(:locale)}">],
|
298
|
-
"description" => %[<meta name="description" content="#{_var(
|
299
|
-
"og:description" => %[<meta property="og:description" content="#{_var(
|
298
|
+
"description" => %[<meta name="description" content="#{_var("blog.desc")}">],
|
299
|
+
"og:description" => %[<meta property="og:description" content="#{_var("blog.desc")}">],
|
300
300
|
"linkc" => %[<link rel="canonical" href="#{_var(:host)}">],
|
301
301
|
"og:url" => %[<meta property="og:url" content="#{_var(:host)}">],
|
302
302
|
"og:site_name" => %[<meta property="og:site_name" content="#{_var(:blog)}">],
|
@@ -518,7 +518,7 @@ def card_iframe
|
|
518
518
|
stuff = lines[1..-1].join(" ") # FIXME later
|
519
519
|
middle = <<-HTML
|
520
520
|
<iframe src="#{url}" #{stuff}
|
521
|
-
style="border: 0"
|
521
|
+
style="border: 0" #{stuff}
|
522
522
|
frameborder="0" scrolling="no">
|
523
523
|
</iframe>
|
524
524
|
HTML
|
@@ -535,7 +535,7 @@ def card1
|
|
535
535
|
lines.map!(&:chomp)
|
536
536
|
|
537
537
|
card_text = lines[0]
|
538
|
-
url,
|
538
|
+
url, classname, cdata = lines[1].split(",", 4)
|
539
539
|
main = _main(url)
|
540
540
|
|
541
541
|
middle = <<-HTML
|
@@ -560,14 +560,12 @@ def card2
|
|
560
560
|
HTML
|
561
561
|
_out open
|
562
562
|
_body do |line|
|
563
|
-
url,
|
563
|
+
url, cdata = line.chomp.split(",", 3)
|
564
564
|
main = _main(url)
|
565
565
|
_out %[<li class="list-group-item"><a #{main}}">#{cdata}</a> </li>]
|
566
566
|
end
|
567
567
|
close = %[ </ul>\n </div>]
|
568
568
|
_out close
|
569
|
-
rescue
|
570
|
-
puts @live.body
|
571
569
|
end
|
572
570
|
|
573
571
|
def tag_cloud
|
@@ -581,12 +579,10 @@ def tag_cloud
|
|
581
579
|
_out open
|
582
580
|
_body do |line|
|
583
581
|
line.chomp!
|
584
|
-
url,
|
582
|
+
url, classname, cdata = line.split(",", 4)
|
585
583
|
main = _main(url)
|
586
584
|
_out %[<a #{main} class="#{classname}">#{cdata}</a>]
|
587
585
|
end
|
588
|
-
rescue
|
589
|
-
puts @live.body
|
590
586
|
end
|
591
587
|
|
592
588
|
def navbar
|
data/lib/runeblog_version.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
.include themes/standard/global.lt3
|
3
3
|
|
4
4
|
\.post-title a {
|
5
|
-
color: $
|
6
|
-
font-size: $
|
5
|
+
color: $post.title.color;
|
6
|
+
font-size: $post.title.size;
|
7
7
|
float: right;
|
8
8
|
display: inline-block;
|
9
9
|
text-align: top;
|
@@ -15,8 +15,8 @@
|
|
15
15
|
}
|
16
16
|
|
17
17
|
\.post-title-text a {
|
18
|
-
color: $
|
19
|
-
font-size: $
|
18
|
+
color: $post.text.color;
|
19
|
+
font-size: $post.text.size;
|
20
20
|
# float: right;
|
21
21
|
display: block;
|
22
22
|
text-decoration: none;
|
@@ -27,8 +27,8 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
\.post-date {
|
30
|
-
color: $
|
31
|
-
font-size: $
|
30
|
+
color: $post.date.color;
|
31
|
+
font-size: $post.date.size;
|
32
32
|
display: block;
|
33
33
|
float: left;
|
34
34
|
text-align: top;
|
data/themes/standard/global.lt3
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
.variables
|
2
2
|
author Hal Fulton
|
3
3
|
blog My Blog (and Welcome To It)
|
4
|
-
|
4
|
+
blog.desc All the stuff you never needed to know
|
5
5
|
host localhost:4000//
|
6
6
|
charset utf-8
|
7
7
|
site rubyhacker.com
|
8
8
|
url localhost:4000//
|
9
9
|
locale en_US
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
post.title.color #010101
|
12
|
+
post.title.size 28px
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
post.text.color #0101a1
|
15
|
+
post.text.size 22px
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
post.date.color #9a9a9a
|
18
|
+
post.date.size 15px
|
19
19
|
.end
|
20
20
|
|
21
21
|
. Maybe move publish info here?
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.card2 Recent News
|
2
|
-
https://
|
3
|
-
https://
|
4
|
-
https://
|
5
|
-
https://jaycarlson.net/microcontrollers/,
|
2
|
+
https://techcrunch.com/2019/09/16/fossa-scores-8-5-million-series-a-to-help-enterprise-manage-open-source-licenses/,FOSSA scores $8.5 million Series A to help enterprise manage open-source licenses
|
3
|
+
https://techcrunch.com/2019/09/17/spacexs-orbital-starship-prototype-construction-progress-detailed-in-new-photos/,SpaceX’s orbital Starship prototype construction progress detailed in new photos
|
4
|
+
https://developers.googleblog.com/2019/05/Flutter-io19.html,Flutter: a Portable UI Framework for Mobile, Web, Embedded, and Desktop
|
5
|
+
https://jaycarlson.net/microcontrollers/,The Amazing $1 Microcontroller (2017)
|
6
6
|
.end
|
7
7
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.tag_cloud
|
2
|
-
https://google.com/,
|
3
|
-
https://google.com/,
|
4
|
-
https://google.com/,
|
5
|
-
https://google.com/,
|
6
|
-
https://google.com/,
|
7
|
-
https://google.com/,
|
8
|
-
https://google.com/,
|
2
|
+
https://google.com/,btn btn-dark m-1,Programming
|
3
|
+
https://google.com/,btn btn-danger m-1,Science Fiction
|
4
|
+
https://google.com/,btn btn-light m-1,Art
|
5
|
+
https://google.com/,btn btn-dark m-1,Robotics
|
6
|
+
https://google.com/,btn btn-warning m-1,Food and Travel
|
7
|
+
https://google.com/,btn btn-light m-1,DIY Hacks
|
8
|
+
https://google.com/,btn btn-info m-1,Surfing
|
9
9
|
.end
|
10
10
|
|