blogelator 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/blogelator/posts/_meta.html.erb +5 -5
- data/app/views/blogelator/posts/_post.html.erb +2 -2
- data/app/views/blogelator/posts/show.html.erb +1 -1
- data/app/views/blogelator/tags/_tag.html.erb +1 -1
- data/lib/blogelator.rb +3 -0
- data/lib/blogelator/engine.rb +0 -2
- data/lib/blogelator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6750073cbad742c8baea5a53ca97e74a90dfa4fb
|
4
|
+
data.tar.gz: f9a1c83719dcce8b679d449c04aa1e4f5e2c3849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0115225ae1a9619d5ffbef150833353303b45099dfcad96345b2ce5866c654f9b6cc627fcf99abdd0cc06cab6dfb4b4fb0cdaf788f617efcd43066600da3a2fb
|
7
|
+
data.tar.gz: 0d3abeaa0429c17cc2dade796699154a563d860c893f62df5bd625a0c3a761a8170c7adbe5116dc3d6a869a079d46c1cf3f6e31184f0b60f69b0856f66f25a9c
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<link rel="canonical" href="<%= @post
|
1
|
+
<link rel="canonical" href="<%= blogelator_post_url(@post) %>" />
|
2
2
|
<% unless @post.meta_description.blank? %>
|
3
3
|
<meta name="description" content="<%= @post.meta_description %>">
|
4
4
|
<% end %>
|
@@ -11,12 +11,12 @@
|
|
11
11
|
<meta property="og:type" content="article" />
|
12
12
|
<meta property="og:title" content="<%= @post.title %>" />
|
13
13
|
<meta property="og:description" content="<%=strip_tags(@post.summary_html) %>" />
|
14
|
-
<meta property="og:url" content="<%= @post
|
14
|
+
<meta property="og:url" content="<%= blogelator_post_url(@post) %>" />
|
15
15
|
<meta property="og:image" content="<%= @post.image.url %>" />
|
16
16
|
<meta name="twitter:card" content="summary_large_image" />
|
17
17
|
<meta name="twitter:title" content="<%= @post.title %>" />
|
18
18
|
<meta name="twitter:description" content="<%=strip_tags(@post.summary_html) %>" />
|
19
|
-
<meta name="twitter:url" content="<%= @post
|
19
|
+
<meta name="twitter:url" content="<%= blogelator_post_url(@post) %>" />
|
20
20
|
<meta name="twitter:image:src" content="<%= @post.image.url %>" />
|
21
21
|
|
22
22
|
<script type="application/ld+json">
|
@@ -32,9 +32,9 @@
|
|
32
32
|
"description": "<%= strip_tags(@post.author.bio_html) %>"
|
33
33
|
},
|
34
34
|
"headline": "<%= @post.title %>",
|
35
|
-
"url": "<%= @post
|
35
|
+
"url": "<%= blogelator_post_url(@post) %>",
|
36
36
|
"datePublished": "<%= @post.created_at %>",
|
37
|
-
"image": "<%= @post
|
37
|
+
"image": "<%= blogelator_post_url(@post) %>",
|
38
38
|
"description": "<%= strip_tags(@post.summary_html) %>"
|
39
39
|
}
|
40
40
|
</script>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% cache [Blogelator::VERSION, post, "index"] do %>
|
2
2
|
<div class="post <%= post.status %>">
|
3
|
-
<h2><%= link_to post.title, post
|
3
|
+
<h2><%= link_to post.title, post %></h2>
|
4
4
|
<div class="published-at">
|
5
5
|
<%= local_time(post.published_at, format: "%B %e, %Y") %>
|
6
6
|
</div>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% else %>
|
15
15
|
<div class="summary">
|
16
16
|
<%== post.summary_html %>
|
17
|
-
<%= link_to raw("Continue reading »"), post
|
17
|
+
<%= link_to raw("Continue reading »"), post, class: "continue" %>
|
18
18
|
</div>
|
19
19
|
<% end %>
|
20
20
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% cache [Blogelator::VERSION, @post, "show"] do %>
|
2
2
|
<div class="post <%= @post.status %>">
|
3
|
-
<h1><%= link_to @post.title, @post
|
3
|
+
<h1><%= link_to @post.title, @post %></h1>
|
4
4
|
<%= local_time(@post.published_at, format: "%B %e, %Y", class: "published-at") %>
|
5
5
|
<div class="tags">
|
6
6
|
<%= render @post.tags %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= link_to tag.name, tag
|
1
|
+
<%= link_to tag.name, blogelator_tag_posts_path(tag), class: "tag" %>
|
data/lib/blogelator.rb
CHANGED
data/lib/blogelator/engine.rb
CHANGED
data/lib/blogelator/version.rb
CHANGED