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 +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/blog/_latest_posts_in_sidebar.html.erb +13 -0
- data/lib/tkh_content/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 965063d3fe2ea6f17a635374045464955d1441a8
|
|
4
|
+
data.tar.gz: 48e6f860b712c85a0e4d196a8f0fe5d0e502ba32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a3c35f4191198beae6fc9aabadc9c1e15d20d05843c40f4ecbf28a58e5f499b46e47c80fc55899dcbc31cfac77b63a4c5cdaeb23ec79a758ed22d8ec614a17e
|
|
7
|
+
data.tar.gz: 5f01b9d33e8635779394b6b142c6ece55bced1d18fc275f7b89f57cfe20393742489751dff1450c33fc3634d55325858c801ba59c26111121d2918eaf1524ca1
|
data/CHANGELOG.md
CHANGED
|
@@ -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 %>
|
data/lib/tkh_content/version.rb
CHANGED
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.
|
|
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-
|
|
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
|