sitemap


Publishing Middleman's sitemap


Middleman can show a sitemap under its config url when a local server is running. When publishing the static site to a CDN I cannot find anyway to access this sitemap, and I'd like to have it there for SEO purposes. I've assumed up to this point middleman includes the sitemap in the build, but I cannot find it now that I look. Assuming that's true, how can I publish the sitemap online?
While I'm a bit of a Middleman newbie, and haven't gotten around to adding a sitemap to my Middleman site, my friend uses the Middleman Search Engine Sitemap gem to generate a sitemap in his sites.
Another solution that I have seen is to use a Builder file to generate the sitemap:
Create a source file: source/sitemap.xml.builder.
xml.instruct!
xml.urlset 'xmlns' => "http://www.sitemaps.org/schemas/sitemap/0.9" do
sitemap.resources.select { |page| page.destination_path =~ /\.html/ && page.data.noindex != true }.each do |page|
xml.url do
xml.loc URI.join(settings.casper[:blog][:url], page.destination_path)
last_mod = if page.path.start_with?('articles/')
File.mtime(page.source_file).to_time
else
Time.now
end
xml.lastmod last_mod.iso8601
xml.changefreq page.data.changefreq || "monthly"
xml.priority page.data.priority || "0.5"
end
end
end

Related Links

Getting sitemap from HAR file
Is xmlsitemap.php Right Extension For Google?
Sitemap Generation In Rails
How to create sitemap in Magento 2
Google search does not show my website
What will happen if we use two sitemap - sitemap.xml & sitemap_index.xml
Parsing error when adding sitemap in Google Webmaster Tools
Google Webmaster Tools is not accepting my sitemap
Google don't index my site with sitemap.xml
503 error when trying to access sitemap on browser
How to assign the sitemap.xml in app.py
Google webmaster tool show error in sitemap
Timeout while fetching the main resource. Ensure that the page loads in a browser and try again
Download submitted sitemap from Google Webmaster Tools
Google does not index my images - using sitemap, multi-lang subdomains and static subdomain
Bitrix: how to create Google Sitemap automatically using agent?

Categories

HOME
asterisk
swift3
ns2
cxf
nagios
jquery-plugins
opacity
kohana
symfony-3.2
clip-path
wavefront
normals
digital
solidity
mongodb-replica-set
drush
cakephp-2.0
derby
luis
openam
views
project-reactor
coccinelle
vala
typedef
mattermost
pushbullet
wai-aria
procedural-generation
struts
continuous-fourier
akavache
windows-mobile
multiple-inheritance
restangular
opencsv
blockly
ibm-bpm
luhn
android-databinding
outlook-2010
idea-plugin
fisheye
pyexcel
collation
grails-2.0
piranha-cms
android-doze-and-standby
stanford-nlp-server
evaluation
history
jcs
ear
e4
enet
cc
petapoco
group
google-scholar
spring-social-twitter
directinput
portaudio
easy68k
rowname
konakart
cosign-api
jigsaw
cherry-pick
queuing
php-java-bridge
jmh
innertext
hana-sql-script
datamodel
dynamics-nav
properties-file
joomla3.3
playn
dockerpy
method-overloading
kss
system.io.packaging
diffmerge
satisfiability
xps
dayofweek
class-library
infor-eam
git-subtree
grunt-wiredep
mobile-robots
raddatepicker
cab
stringstream
expresso-store
optimistic-concurrency
datasheet
eeprom
maven-eclipse-plugin
overlays
n2
norton
datarelation
simultaneous
database-agnostic
atmega16
ihtmldocument2
httpbrowsercapabilities
office-2003

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App