middleman-alias 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/virtual-directory.feature +1 -1
- data/lib/middleman-alias/extension.rb +1 -1
- data/lib/middleman-alias/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: 9e459db1e42529ea5a80a6edf53cc0460ba042b2
|
4
|
+
data.tar.gz: 3e2eb036036e5a6a0e25be82e12aef8e20867025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c3e65a144941c371c08124d5890b1b747b0946f606b8bebe70a35b08166668a62ff2067794d963d9f0c690255032e742d62aa6df21a03d251f000f34e08177
|
7
|
+
data.tar.gz: bf1543cde5edc7025e6b7fb09dd90337547ccce4fc7c2127ef995017511d64b45c937f4f4485b8d54d4e65c70c9389d13c921ea9e51d6fd292abdfefdc8d8129
|
@@ -10,7 +10,7 @@ module Middleman
|
|
10
10
|
resources.each do |resource|
|
11
11
|
if resource.data["alias"]
|
12
12
|
alias_url = resource.data["alias"]
|
13
|
-
alias_url += "/index.html"
|
13
|
+
alias_url += "/index.html" if alias_url.match(/\/$/)
|
14
14
|
Sitemap::Resource.new(@app.sitemap, alias_url).tap do |p|
|
15
15
|
p.proxy_to("alias.html")
|
16
16
|
p.add_metadata locals: {
|