middleman-metaman 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/middleman-metaman/helpers.rb +3 -1
- data/lib/middleman-metaman/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 584a64997239aa134248a11be569a99922ecddff2f2357f7a90c32fa15b187e0
|
4
|
+
data.tar.gz: 15dff4904e02433316af39210b46c78cca3971f20eaaecee51f7b177b42fe25e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e4779b88e4b49af053f4fb5e1058016f7a47fbe4838367985498aef8e9833225d926e93b2e4e0d2099b0e9fda515cea2ef7e513d21c312eebddeb0c69d76c85
|
7
|
+
data.tar.gz: f7f285b2fb8d1d7abf5b68ac443638ce6677cbc80bd8db39903495195c57106ed8028baa804e8a536deb664491bbd8e956032af2034c7298dc7c796fefede4a3
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ Nested parameters like `{ og: { title: 'My Title' } }` will become `og:title`.
|
|
50
50
|
### Setting via Templates
|
51
51
|
|
52
52
|
```erb
|
53
|
-
<%
|
53
|
+
<% set_meta_tags(title: 'My Title', og: { image: 'meta-image.png' } )
|
54
54
|
```
|
55
55
|
|
56
56
|
### Setting via Front Matter
|
@@ -37,7 +37,9 @@ module Middleman
|
|
37
37
|
@meta_tags[:title] = full_title(@meta_tags[:title])
|
38
38
|
html.push content_tag(:title, @meta_tags[:title])
|
39
39
|
if @meta_tags[:canonical]
|
40
|
-
html.push
|
40
|
+
html.push(
|
41
|
+
tag(:link, rel: 'canonical', href: "#{host}#{current_page.url}")
|
42
|
+
)
|
41
43
|
end
|
42
44
|
|
43
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-metaman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarrett Lusso
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -48,7 +48,7 @@ homepage: https://github.com/cacheventures/middleman-metaman
|
|
48
48
|
licenses:
|
49
49
|
- MIT
|
50
50
|
metadata: {}
|
51
|
-
post_install_message:
|
51
|
+
post_install_message:
|
52
52
|
rdoc_options: []
|
53
53
|
require_paths:
|
54
54
|
- lib
|
@@ -63,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
67
|
-
signing_key:
|
66
|
+
rubygems_version: 3.2.15
|
67
|
+
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Manage your middleman meta tags.
|
70
70
|
test_files: []
|