effective_posts 1.0.4 → 1.0.5

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: f796cf858658cf9c8f19f2b45339e7e7fbfa64c2
4
- data.tar.gz: 672b79eb37607da4c40e2d51f24da5944d6ddd92
3
+ metadata.gz: e0eec3e6a32e1affb92e615361fc98b4b6f6a8c5
4
+ data.tar.gz: b345a2785a5fbcc14688e3af0b6588d69775e9a3
5
5
  SHA512:
6
- metadata.gz: a979a1ca93aa4d29bbab5b789493d1cf1ba0f298cb31abd44fb06f4d00aa7bbdfb4817e5f38ead8181c19e4783c5352365d009fbfa12183b575adf450a530163
7
- data.tar.gz: 9226681df68199551ae11afffae3103f7ce0e271bf2f3e84a677a52c38826f4731c0b525f28a28c5c68c9a9df2adb2e02b905e9a1ed6e49204748b205233d1e9
6
+ metadata.gz: 1f5ac34eb09a891613a4749206bd6f5036b1b98a53bf523e8dfee6666f22346f70e0f942facce107c1bad1744c25b262cde8a6773ec22702d5e321e00bb9f62c
7
+ data.tar.gz: bc687e467cd2bf0ce31d5d6be43d15ac542315447893adeb693d4cc37cd6f4fff7dfe5cc3878a879f818d65258e8ceaad77af455f9e1f9d97e52b6374c21f99e
@@ -25,7 +25,7 @@ module Effective
25
25
 
26
26
  EffectivePosts.authorize!(self, :index, Effective::Post)
27
27
 
28
- @page_title ||= (params[:category].present? ? params[:category] : 'Blog').titleize
28
+ @page_title ||= (params[:category].presence || 'Blog').titleize
29
29
  end
30
30
 
31
31
  def show
@@ -1,5 +1,3 @@
1
- .jumbotron.jumbotron-fluid.jumbotron-intro
2
- .container
3
- .row
4
- .col-sm-4= render 'sidebar'
5
- .col-sm-8= yield
1
+ .row
2
+ .col-sm-8= yield
3
+ .col-sm-4= render 'sidebar'
@@ -1,7 +1,4 @@
1
1
  - posts = recent_posts(category: nil, limit: 5)
2
- %h4.dashboard-title About
3
- %p.mb-5
4
- Welcome to the Tadum blog, where you can learn how to build a culture of high-value meetings.
5
2
 
6
3
  - if EffectivePosts.categories.present?
7
4
  - categories = EffectivePosts.categories
@@ -13,7 +10,7 @@
13
10
  %li= link_to category.to_s.titleize, effective_post_category_path(category)
14
11
 
15
12
  - posts = recent_posts(category: nil, limit: 5)
16
- %h4.dashboard-title Recent Posts
13
+ %h4.dashboard-title Recent
17
14
  %ul.list-unstyled
18
15
  - posts.each do |post|
19
16
  %li= link_to post, effective_post_path(post)
@@ -1,3 +1,5 @@
1
+ %h1= @page_title
2
+
1
3
  = render 'layout' do
2
4
  %nav= paginate @posts
3
5
 
@@ -19,7 +19,7 @@ EffectivePosts.setup do |config|
19
19
  # /blog is posts#index
20
20
  # /blog/category/announcements is posts#index?category=announcements
21
21
  # /blog/1-post-title is posts#show
22
- config.use_blog_routes = false
22
+ config.use_blog_routes = true
23
23
 
24
24
  # Number of posts displayed per page (Kaminari)
25
25
  config.per_page = 10
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '1.0.4'.freeze
2
+ VERSION = '1.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails