Skip to content

Commit c0f944f

Browse files
author
Charles Korn
committed
Fix malformed URLs in sitemap. Notify Google when site is published.
1 parent dcf3de4 commit c0f944f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Rakefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ require 'tmpdir'
22

33
# Change your GitHub reponame
44
GITHUB_REPONAME = "twlevelup/twlevelup.github.io"
5+
SITEMAP_URL = "http://levelup.thoughtworks.com/sitemap.xml"
56

67
desc "Generate blog files"
78
task :generate do
@@ -25,5 +26,6 @@ task :publish => [:generate] do
2526
system "git commit -m #{message.shellescape}"
2627
system "git remote add origin https://github.com/#{GITHUB_REPONAME}.git"
2728
system "git push origin master --force"
29+
system "curl http://www.google.com/webmasters/sitemaps/ping?sitemap=#{SITEMAP_URL} > /dev/null"
2830
end
2931
end

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ url: http://levelup.thoughtworks.com
33
markdown: redcarpet
44
safe: false
55
port: 4000
6-
baseurl: /
6+
baseurl: ''
77
pygments: true
88
destination: ./_site
99
plugins: ./_plugins

robots.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sitemap: http://levelup.thoughtworks.com/sitemap.xml

0 commit comments

Comments
 (0)