blogo 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: c4ab86b98e79fa932e85440ef91d6a995bb4eec7
4
- data.tar.gz: 62beb14c9f8d5b6f47e8db12bb2705bf8bdf7160
3
+ metadata.gz: ce24f9af85917e140aa4f28f4ecbda7682597e80
4
+ data.tar.gz: fd6b877ff96903f71490397868b608e851460563
5
5
  SHA512:
6
- metadata.gz: 8fb6e7734b5a093547127715ad94c5c2af09ddc51f0fd82b895c3e82c5ae32f8404dc20383cfde17cba4d0f83b1b54ac8c2c004e2e0bdb4e5e19b78597ef4126
7
- data.tar.gz: 513e292fdb4d8660359f40ed58066201548b795debe67de515e7e256431e1f55699df611042a689ca58c5a1deefdfcbbdbc18a4bb28f6da2b8bb4783d876970e
6
+ metadata.gz: 113398e0a4a2532588cea38eb0bfa0dcb630617914c4c458321bc8bc5e55406e73e428b7b20cda669f99dc41bf508af25007c2153a68b21aef1d9f5c7e4f50ce
7
+ data.tar.gz: 33c547d4c7c634c5bceaff4f050677648412733e324d532d91ee6550d53d90d35335e307c0c90ea4887eeef29fb55bc3757f4d42144924ee45cae17e08ea40a8
data/README.markdown CHANGED
@@ -5,31 +5,9 @@ Mountable blog engine for Ruby on Rails 4.
5
5
  [![Build Status](https://travis-ci.org/greyblake/blogo.png?branch=master)](https://travis-ci.org/greyblake/blogo)
6
6
  [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/greyblake/blogo/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
7
7
 
8
- ## How it looks like?
9
-
10
- <table cellspacing="0">
11
- <thread>
12
- <tr>
13
- <th>Blog</th>
14
- <th>Admin</th>
15
- </tr>
16
- </thread>
17
- <tbody>
18
- <tr>
19
- <td>
20
- <a href="http://i1078.photobucket.com/albums/w484/greyblake/blogo_mountable_blog_rails_engine.png" target="blog">
21
- <img src="http://i1078.photobucket.com/albums/w484/greyblake/th_blogo_mountable_blog_rails_engine.png" border="0" title="Blogo - mountable blog engine for Ruby on Rails" alt="Blogo - mountable blog engine for Ruby on Rails" style=""></a>
22
- </a>
23
- </td>
24
- <td>
25
- <a href="http://i1078.photobucket.com/albums/w484/greyblake/blogo_admin_mountable_blog_rails_engine.png" target="admin">
26
- <img src="http://i1078.photobucket.com/albums/w484/greyblake/th_blogo_admin_mountable_blog_rails_engine.png" border="0" title="Blogo - mountable blog engine for Ruby on Rails(admin)" alt="Blogo - mountable blog engine for Ruby on Rails" style=""></a>
27
- </a>
28
- </td>
29
- </tr>
30
- </tbody>
31
- </table>
8
+ ## Who uses Blogo?
32
9
 
10
+ * [Brainv2 - online brain tranings](http://brainv2.com/blog)
33
11
 
34
12
  ## Quick start
35
13
 
@@ -70,7 +48,6 @@ Run the rails application and go to http://localhost:3000/blog/admin to create y
70
48
 
71
49
  Go to http://localhost::3000/blog to take a look at your posts.
72
50
 
73
-
74
51
  ## Features
75
52
 
76
53
  * Mountable rails engine
@@ -196,3 +196,36 @@ aside
196
196
  .button-success
197
197
  background: rgb(28, 184, 65)
198
198
 
199
+
200
+
201
+ // Social sharing
202
+ .social
203
+ // This gets Google to fall into place
204
+ font-size: 1px
205
+ margin: 15px 10px
206
+
207
+ // This gets Facebook to fall into place
208
+ iframe
209
+ vertical-align: middle
210
+
211
+ // Set an optional width for your button wrappers
212
+ span
213
+ display: inline-block
214
+ width: 110px
215
+
216
+ //Adjust the widths individually if you like
217
+ .google
218
+ width: 75px
219
+
220
+ //This gets Facebook to fall into place
221
+ .fb-share-button
222
+ vertical-align: middle
223
+
224
+ // Set an optional width for your button wrappers
225
+ span
226
+ display: inline-block
227
+ width: 110px
228
+
229
+ // Adjust the widths individually if you like
230
+ .google
231
+ width: 75px
@@ -11,10 +11,10 @@ module Blogo
11
11
  set_paginator
12
12
 
13
13
  @meta = {}
14
- @meta[:title] = "#{Blogo.config.site_title} - #{Blogo.config.site_subtitle}"
15
- @meta[:site_name] = Blogo.config.site_title
16
- @meta[:keywords] = Blogo.config.keywords
17
- @meta[:type] = 'website'
14
+ @meta[:title] = "#{Blogo.config.site_title} - #{Blogo.config.site_subtitle}"
15
+ @meta[:site_name] = Blogo.config.site_title
16
+ @meta[:keywords] = Blogo.config.keywords
17
+ @meta[:type] = 'website'
18
18
  end
19
19
 
20
20
  def show
@@ -22,13 +22,13 @@ module Blogo
22
22
  set_vars
23
23
 
24
24
  @meta = {}
25
- @meta[:title] = "#{@post.title} - #{Blogo.config.site_title}"
26
- @meta[:description] = @post.meta_description
27
- @meta[:keywords] = [@post.tags_string, Blogo.config.keywords].flatten.join(", ")
28
- @meta[:url] = request.url
29
- @meta[:image] = meta_image
30
- @meta[:type] = 'article'
31
- @meta[:site_name] = Blogo.config.site_title
25
+ @meta[:title] = "#{@post.title} - #{Blogo.config.site_title}"
26
+ @meta[:description] = @post.meta_description
27
+ @meta[:keywords] = [@post.tags_string, Blogo.config.keywords].flatten.join(", ")
28
+ @meta[:url] = request.url
29
+ @meta[:image] = meta_image
30
+ @meta[:type] = 'article'
31
+ @meta[:site_name] = Blogo.config.site_title
32
32
  end
33
33
 
34
34
  def feed
@@ -1,3 +1,5 @@
1
+ <link rel="canonical" href="<%= @request.original_url %>"/>
2
+
1
3
  <meta name="description" content="<%= @meta[:description] %>">
2
4
  <meta name="keywords" content="<%= @meta[:keywords] %>">
3
5
 
@@ -0,0 +1,28 @@
1
+
2
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
3
+
4
+ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
5
+
6
+ <div id="fb-root"></div>
7
+ <script>
8
+ (function(d, s, id) {
9
+ var js, fjs = d.getElementsByTagName(s)[0];
10
+ if (d.getElementById(id)) return;
11
+ js = d.createElement(s); js.id = id;
12
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
13
+ fjs.parentNode.insertBefore(js, fjs);
14
+ }(document, 'script', 'facebook-jssdk'));
15
+ </script>
16
+
17
+
18
+ <div class='social'>
19
+ <span class='twitter'>
20
+ <a class='twitter-share-button' data-url='<%= request.original_url %>' data-via='<%= Blogo.config.twitter_username %>' href='http://twitter.com/share'>Tweet</a>
21
+ </span>
22
+ <span class='google'>
23
+ <g:plusone href='<%= request.original_url %>' size='medium'></g:plusone>
24
+ </span>
25
+ <span class='facebook'>
26
+ <div class='fb-share-button' data-href='<%= request.original_url %>' data-type='button_count'></div>
27
+ </span>
28
+ </div>
@@ -1,4 +1,5 @@
1
1
  <div id="main">
2
2
  <%= render 'blogo/shared/post' %>
3
+ <%= render 'blogo/posts/social_share' %>
3
4
  <%= render 'blogo/shared/disqus_comments' %>
4
5
  </div>
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <title><%= @meta[:title] %></title>
5
5
  <meta charset="UTF-8">
6
+
6
7
  <%= render partial: 'blogo/posts/meta' %>
7
8
 
8
9
  <%= csrf_meta_tags %>
data/lib/blogo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blogo
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Potapov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-08 00:00:00.000000000 Z
11
+ date: 2014-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -111,6 +111,7 @@ files:
111
111
  - app/views/blogo/posts/_paginator.html.erb
112
112
  - app/views/blogo/posts/_post_header.html.erb
113
113
  - app/views/blogo/posts/_post_overview.html.erb
114
+ - app/views/blogo/posts/_social_share.html.erb
114
115
  - app/views/blogo/posts/feed.atom.builder
115
116
  - app/views/blogo/posts/index.html.erb
116
117
  - app/views/blogo/posts/show.html.erb