tkh_content 0.10.8 → 0.10.9

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: a039c78252b4dcac496cece0484e88cd4d4f2fbd
4
- data.tar.gz: a51ec85ae90d7d974dc206c495114e4daad9b0fa
3
+ metadata.gz: 965063d3fe2ea6f17a635374045464955d1441a8
4
+ data.tar.gz: 48e6f860b712c85a0e4d196a8f0fe5d0e502ba32
5
5
  SHA512:
6
- metadata.gz: 7eedaca2cb4930ded6389727b41f421391fe526c1593bf9a395a5166ca9e6864ac2fd3c0ab2e041369f755c9040b241cd5fd12a19e6c8b495ff77b53f22e643b
7
- data.tar.gz: 1ee8f8464ceb64113be46a5f267223bb91ad806a080e5389481f5afeeebd66faac565046f037f7a810b39bd819df137254433f8da256c476d62c6287d422be49
6
+ metadata.gz: 4a3c35f4191198beae6fc9aabadc9c1e15d20d05843c40f4ecbf28a58e5f499b46e47c80fc55899dcbc31cfac77b63a4c5cdaeb23ec79a758ed22d8ec614a17e
7
+ data.tar.gz: 5f01b9d33e8635779394b6b142c6ece55bced1d18fc275f7b89f57cfe20393742489751dff1450c33fc3634d55325858c801ba59c26111121d2918eaf1524ca1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.10.9
6
+
7
+ * Added sidebar partial for latest blog posts.
8
+
9
+
5
10
  ## 0.10.8
6
11
 
7
12
  * Added glyphicons to actions in index views.
@@ -0,0 +1,13 @@
1
+ <% blog_posts = Page.for_blog.published.by_recent.limit(3) %>
2
+
3
+ <% unless blog_posts.blank? %>
4
+ <h2><%= local_assigns[:heading].present? ? heading : 'blog' %></h2>
5
+ <% blog_posts.each do |blog_post| %>
6
+ <div class="sidebar-individual-blog-post">
7
+ <h3><%= link_to blog_post.title, blog_post %></h3>
8
+ <%= truncate blog_post.description, length: 105, separator: ' ' %><br />
9
+ <%= link_to 'see full post', blog_post %>
10
+ </p>
11
+ </div>
12
+ <% end %>
13
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.10.8"
2
+ VERSION = "0.10.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-12 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -175,6 +175,7 @@ files:
175
175
  - app/views/blog/_admin_context_menu.html.erb
176
176
  - app/views/blog/_all_tags_list.html.erb
177
177
  - app/views/blog/_individual_tag.html.erb
178
+ - app/views/blog/_latest_posts_in_sidebar.html.erb
178
179
  - app/views/blog/by_tag.html.erb
179
180
  - app/views/blog/index.atom.builder
180
181
  - app/views/blog/index.html.erb