runeblog 0.1.97 → 0.1.98

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eca7ee5a581fc5af8c648cd0dce750f120753d30f550f49bdd5053196fd79ad
4
- data.tar.gz: 84bcf2f35639ea08c61b9ed4171e97a7502ac71fd48fe2d1967efac0c7d62fa8
3
+ metadata.gz: 0fd9b65f6c0b86016976c411fdb3908a3ad6f9047ab947212ff85d0e9b62d9e1
4
+ data.tar.gz: 1e9eb6d52e34fa23e032cb80d0c83fec8cbf559b26c695ba235768b87baf77b9
5
5
  SHA512:
6
- metadata.gz: 5a3810d114c88ef15c583a811c5dda94d4722b6b051f63a683dafae31c06e14be0fe8cb65bc939fee9545a53acd5977c39e68df694241a205918263f73f6bf56
7
- data.tar.gz: 9aa1d0e162b1c7c1ecaec21530b17596b62aff75e69c0cf04ac7b341e5b0b2c5bf04ccb2c4bf609d42f42af4e24b8ce36c4448f823bf9439e7f3ec2b8a505f95
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(:blog_desc)}\n </title>],
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(:blog_desc)}">],
299
- "og:description" => %[<meta property="og:description" content="#{_var(:blog_desc)}">],
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" height="350"
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, target, classname, cdata = lines[1].split(",", 4)
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, target, cdata = line.chomp.split(",", 3)
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, target, classname, cdata = line.split(",", 4)
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
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.1.97"
5
+ VERSION = "0.1.98"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -2,8 +2,8 @@
2
2
  .include themes/standard/global.lt3
3
3
 
4
4
  \.post-title a {
5
- color: $post_title_color;
6
- font-size: $post_title_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: $post_text_color;
19
- font-size: $post_text_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: $post_date_color;
31
- font-size: $post_date_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;
@@ -1,21 +1,21 @@
1
1
  .variables
2
2
  author Hal Fulton
3
3
  blog My Blog (and Welcome To It)
4
- blog_desc All the stuff you never needed to know
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
- post_title_color #010101
12
- post_title_size 28px
11
+ post.title.color #010101
12
+ post.title.size 28px
13
13
 
14
- post_text_color #0101a1
15
- post_text_size 22px
14
+ post.text.color #0101a1
15
+ post.text.size 22px
16
16
 
17
- post_date_color #9a9a9a
18
- post_date_size 15px
17
+ post.date.color #9a9a9a
18
+ post.date.size 15px
19
19
  .end
20
20
 
21
21
  . Maybe move publish info here?
@@ -1,5 +1,5 @@
1
1
  .card1 Advertisement
2
2
  Build your amazing website with blabla.com.
3
- https://google.com/,_blank,btn btn-light float-right,Visit Page
3
+ https://google.com/,btn btn-light float-right,Visit Page
4
4
  .end
5
5
 
@@ -1,7 +1,7 @@
1
1
  .card2 Recent News
2
- https://nest.com/whats-happening/,_blank,Google Is Turning Off the Works-with-Nest API
3
- https://developers.googleblog.com/2019/05/Flutter-io19.html,_blank,Flutter: a Portable UI Framework for Mobile, Web, Embedded, and Desktop
4
- https://github.com/kkuchta/css-only-chat,_blank,Css-only-chat: A truly monstrous async web chat using no JS on the front end
5
- https://jaycarlson.net/microcontrollers/,_blank,The Amazing $1 Microcontroller (2017)
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/,_blank,btn btn-dark m-1,Programming
3
- https://google.com/,_blank,btn btn-danger m-1,Science Fiction
4
- https://google.com/,_blank,btn btn-light m-1,Art
5
- https://google.com/,_blank,btn btn-dark m-1,Robotics
6
- https://google.com/,_blank,btn btn-warning m-1,Food and Travel
7
- https://google.com/,_blank,btn btn-light m-1,DIY Hacks
8
- https://google.com/,_blank,btn btn-info m-1,Surfing
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
 
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.1.97
4
+ version: 0.1.98
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton