middleman-alias 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman-alias/alias-resource.rb +6 -2
- data/lib/middleman-alias/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fde8e6cd5a5473ffd8da034531e6f4981fe11651
|
4
|
+
data.tar.gz: 340b29a36d12fe60431bb205befc9c26705ae872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce7daeabc363a7241e7553529b176b3ecef25c51252335048ccb76bb68d2d106a30c0532750bc8c26ca81ef78e0b2ebdbebc8ce5bbe2d763461dbca3cc8886c0
|
7
|
+
data.tar.gz: 596742f0b81eafa150538a84d175fcc14698a160689f25b76ada697b344f2239e7d8909572cc0173c0fb7fd40acbb99e83ec6df7f13d8d71b47e797a1dbd78f4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Middleman
|
2
2
|
module Sitemap
|
3
3
|
class AliasResource < ::Middleman::Sitemap::Resource
|
4
|
-
|
4
|
+
|
5
5
|
attr_accessor :output
|
6
6
|
|
7
7
|
def initialize(store, path, alias_path)
|
@@ -22,9 +22,13 @@ module Middleman
|
|
22
22
|
<html>
|
23
23
|
<head>
|
24
24
|
<link rel="canonical" href="#{@alias_path}" />
|
25
|
-
<meta http-equiv=refresh content="0; url=#{@alias_path}" />
|
26
25
|
<meta name="robots" content="noindex,follow" />
|
27
26
|
<meta http-equiv="cache-control" content="no-cache" />
|
27
|
+
<script>
|
28
|
+
// Attempt to keep search and hash
|
29
|
+
window.location.replace("#{@alias_path}"+window.location.search+window.location.hash);
|
30
|
+
</script>
|
31
|
+
<meta http-equiv=refresh content="0; url=#{@alias_path}" />
|
28
32
|
</head>
|
29
33
|
<body>
|
30
34
|
<a href="#{@alias_path}">You are being redirected.</a>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-alias
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.4.
|
133
|
+
rubygems_version: 2.4.3
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Redirects for Middleman that are friendly to the Googles.
|