mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
fix sitemap and some 404s
This commit is contained in:
parent
b74c63650d
commit
dc1f37283b
@ -669,10 +669,15 @@ Redirect 301 /home/feed/ /feed/
|
||||
RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3
|
||||
|
||||
# Old Content Redirects
|
||||
Redirect 301 /goodies/icon /goodies
|
||||
Redirect 301 /goodies/other /goodies
|
||||
Redirect 301 /goodies/wallpaper /goodies
|
||||
|
||||
Redirect 301 /lab http://lab.kremalicious.com
|
||||
Redirect 301 /csspaperstack /lab/csspaperstack
|
||||
Redirect 301 /download /media
|
||||
Redirect 301 /about/contact /about
|
||||
Redirect 301 /contact /about
|
||||
Redirect 301 /portfolio http://matthiaskretschmann.com
|
||||
Redirect 301 /blog /
|
||||
Redirect 301 /topics/goodies /goodies
|
||||
|
@ -46,7 +46,7 @@ module Jekyll
|
||||
SITEMAP_FILE_NAME = "sitemap.xml"
|
||||
|
||||
# Any files to exclude from being included in the sitemap.xml
|
||||
EXCLUDED_FILES = ["feed.xml"]
|
||||
EXCLUDED_FILES = ["index.xml", "robots.txt", "search.json"]
|
||||
|
||||
# Any files that include posts, so that when a new post is added, the last
|
||||
# modified date of these pages should take that into account
|
||||
@ -66,7 +66,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def location_on_server
|
||||
"#{site.config['url']}#{url}"
|
||||
"#{site.config['url']}#{url}/"
|
||||
end
|
||||
end
|
||||
|
||||
@ -78,7 +78,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def location_on_server
|
||||
location = "#{site.config['url']}#{@dir}#{url}"
|
||||
location = "#{site.config['url']}#{url}"
|
||||
location.gsub(/index.html$/, "")
|
||||
end
|
||||
end
|
||||
|
@ -1,3 +1,6 @@
|
||||
---
|
||||
---
|
||||
|
||||
User-agent: *
|
||||
Disallow: /search/
|
||||
Disallow: /page/
|
||||
|
Loading…
Reference in New Issue
Block a user