fuel 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 3946795c8642cb8454f2a0de0aa2d31e1744e880
4
- data.tar.gz: 1d60a7e24034103ab8c6189733db645ba1611a65
3
+ metadata.gz: 74fdd15d857ffd2a40c7415998a40bc8e7889400
4
+ data.tar.gz: 77a1fff5aebe6f8a171cce49309da2bb54b78889
5
5
  SHA512:
6
- metadata.gz: d5ea31379f63428811f23533a25b985c0730374717edbbbc06e9fdb00a81fc5b7babb3df8447abd43368fe7dd5b2b87cf054fcc87d51e08f0fcaaf5fc33dc41a
7
- data.tar.gz: b36e9bc1c42994338cc00c4817c806c61b6d0824e6e651275e3b80fd63329a3e76527d1343454cb5c0a06f6e43b78a85fd789edee7e85aeb293f18b4d03daa50
6
+ metadata.gz: cb9557654cc0ef77979a2cfedf20f4b844aa601692c63a3ab826b889644bb1cc1bf6e0359947cbe4171f49da96e844d1aaccd221008cf44ef869fe2a44684cb7
7
+ data.tar.gz: fbc4b067bc200bfc245bccf7612ed9fc7a0879ffd75cec23bf18d7f955aa3faeda49906e05f480c14bc5379f65808650a6a9569aea309f08e9ef4ca2e0c6ba25
@@ -9,7 +9,7 @@
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
11
  *= require_self
12
- *= require_posts
12
+ *# require_posts
13
13
  */
14
14
  /* ALL FUEL */
15
15
  .fuel h1 { margin-bottom: 10px; font-size: 2.5em; }
@@ -48,10 +48,10 @@
48
48
  .fuel-admin fieldset { border: none; margin-top: none; }
49
49
 
50
50
  /* Blog */
51
- .fuel-posts .fuel_post_title { font-size: 1.8em; margin-top: 20px; }
51
+ .fuel-posts .fuel-post-title { font-size: 1.8em; margin-top: 20px; }
52
52
 
53
53
  .fuel-posts h1, .fuel-posts h2, .fuel-posts h3, .fuel-posts h4, .fuel-posts h5, .fuel-posts h6 { font-weight: bold; }
54
54
  .fuel-posts { padding: 20px; }
55
- .fuel-posts .fuel_post_additional_info { margin-top: 5px; display: block; }
56
- .fuel-posts .fuel_post_author, .fuel_post_date { display: inline; font-size: 1em; color: #999;}
57
- .fuel-posts .fuel_post_content { margin-top: 20px; }
55
+ .fuel-posts .fuel-post-additional-info { margin-top: 5px; display: block; }
56
+ .fuel-posts .fuel-post-author, .fuel-post-date { display: inline; font-size: 1em; color: #999;}
57
+ .fuel-posts .fuel-post-content { margin-top: 20px; }
@@ -1,44 +0,0 @@
1
- /* ALL FUEL */
2
- .fuel h1 { margin-bottom: 10px; font-size: 2.5em; }
3
-
4
- /* ADMIN */
5
- .fuel-admin { margin-top: 20px; width: 90%; float: left; margin-left: 4%; font-family: sans-serif; margin-bottom: 100px;}
6
- .fuel-admin input[type="text"], textarea {
7
- width: 50%;
8
- height: 2em;
9
- font-size: 1.2em;
10
- margin-top: 5px;
11
- margin-bottom: 20px;
12
- display: block;
13
- }
14
- .fuel-admin textarea {
15
- width: 100%;
16
- height: 400px;
17
- }
18
- .fuel-admin label {
19
- font-weight: bold;
20
- font-size: 1.5em;
21
- }
22
- .fuel-admin input[type="submit"] { font-size: 2em; font-weight: bold; }
23
- .fuel-admin h1 { margin-top: 40px; margin-bottom: 30px;}
24
- .fuel-admin .markdown{ width: 400px; float: left; }
25
- .fuel-admin tr { text-align: left; border-bottom: 1px solid #ddd; }
26
- .fuel-admin table { border: thin solid #ccc; margin-top: 20px;}
27
- .fuel-admin th { padding: 2px 20px; border-bottom: 1px solid #444; font-size: 1.2em; font-weight: bold;}
28
- .fuel-admin td { padding: 10px 20px; }
29
- .fuel-admin td.date { width: 140px; }
30
- .fuel-admin td.post { width: 500px; }
31
- .fuel-admin .draft { color: green; }
32
- .fuel-admin .save{ margin-left: 40px; background-color: #777; }
33
- .fuel-admin .post-contact-area{ margin-top: 50px; }
34
- .fuel-admin .twitter-follow-button{ margin-top: 5px; }
35
- .fuel-admin fieldset { border: none; margin-top: none; }
36
-
37
- /* Blog */
38
- .fuel-posts .fuel_post_title { font-size: 1.8em; margin-top: 20px; }
39
-
40
- .fuel-posts h1, .fuel-posts h2, .fuel-posts h3, .fuel-posts h4, .fuel-posts h5, .fuel-posts h6 { font-weight: bold; }
41
- .fuel-posts { padding: 20px; }
42
- .fuel-posts .fuel_post_additional_info { margin-top: 5px; display: block; }
43
- .fuel-posts .fuel_post_author, .fuel_post_date { display: inline; font-size: 1em; color: #999;}
44
- .fuel-posts .fuel_post_content { margin-top: 20px; }
@@ -0,0 +1,14 @@
1
+ <div id="disqus_thread"></div>
2
+ <script type="text/javascript">
3
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
4
+ var disqus_shortname = '<%= Fuel.configuration.disqus_name %>'; // required: replace example with your forum shortname
5
+
6
+ /* * * DON'T EDIT BELOW THIS LINE * * */
7
+ (function() {
8
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
10
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11
+ })();
12
+ </script>
13
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
@@ -1,13 +1,13 @@
1
- <div class="fuel_post_additional_info">
1
+ <div class="fuel-post-additional-info">
2
2
  <!-- <span class="fuel_post_date"><%= post.created_at.strftime('%b %d, %Y') %> - </span> -->
3
- <span class="fuel_post_author">By <%= post.author %></span>
3
+ <span class="fuel-post-author">By <%= post.author %></span>
4
4
  </div>
5
5
  <% if action_name == "show" %>
6
- <div class="fuel_post_content">
6
+ <div class="fuel-post-content">
7
7
  <%= markdown(post.content).html_safe %>
8
8
  </div>
9
9
  <% else %>
10
- <div class="fuel_post_content">
10
+ <div class="fuel-post-content">
11
11
  <%= markdown(truncate post.content, length: 800).html_safe %>
12
12
  </div>
13
13
  <% if post.content.length > 800 %>
@@ -8,7 +8,7 @@
8
8
  <%= paginate @posts %>
9
9
  <% @posts.each do |post| %>
10
10
  <article class="fuel-post fuel-post-index">
11
- <h2 class="fuel_post_title"><%= link_to post.title, post %></h2>
11
+ <h2 class="fuel-post-title"><%= link_to post.title, post %></h2>
12
12
  <%= render "fuel/posts/post", post: post %>
13
13
  </article>
14
14
  <% end %>
@@ -3,7 +3,10 @@
3
3
  <h1 class="tagline"><%= link_to @blog_title, root_path %></h1>
4
4
  </div>
5
5
  <article class="fuel-post fuel-post-show">
6
- <h2 class="fuel_post_title"><%= @post.title %></h2>
6
+ <h2 class="fuel-post-title"><%= @post.title %></h2>
7
7
  <%= render 'post', post: @post %>
8
8
  </article>
9
+ <div class="disqus-area">
10
+ <%= render 'disqus' if Fuel.configuration.disqus_name %>
11
+ </div>
9
12
  </div>
@@ -2,11 +2,12 @@ module Fuel
2
2
  class Configuration
3
3
 
4
4
  # What kind of comments do you want to add to your blog ? (:active_record, :disqus or :no)
5
- attr_accessor :layout, :blog_title
5
+ attr_accessor :layout, :blog_title, :disqus_name
6
6
 
7
7
  def initialize
8
8
  @layout = "application"
9
9
  @blog_title = "Blog"
10
+ @disqus_name = nil
10
11
  end
11
12
 
12
13
  end
data/lib/fuel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -7,4 +7,6 @@ Fuel.configure do |config|
7
7
  # Change title of blog
8
8
  #config.blog_title = "Blog"
9
9
 
10
+ # Add Disqus
11
+ #config.disqus_name = 'your_disqus_name'
10
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
@@ -105,6 +105,7 @@ files:
105
105
  - app/views/fuel/admin/posts/edit.html.erb
106
106
  - app/views/fuel/admin/posts/index.html.erb
107
107
  - app/views/fuel/admin/posts/new.html.erb
108
+ - app/views/fuel/posts/_disqus.html.erb
108
109
  - app/views/fuel/posts/_post.html.erb
109
110
  - app/views/fuel/posts/index.html.erb
110
111
  - app/views/fuel/posts/show.html.erb