Google Sitemap per Movabletype 4.x
Creare un indice del blog per Google è un’ operazione abbastanza semplice, vediamo in questi brevi passi come fare per affrontare il problema:
1) Creiamo un nuovo modulo (in Template Modules) e lo chiamiamo “Google Sitemap Include”
2) Copiamo all’ interno il seguente codice:
Canonical sitemap.xml template v0.8
### START SETUP
Possible values for the frequency variables are:
always
hourly
daily
weekly
monthly
yearly
never
“always” should be used to describe documents that change each time they are accessed.
“never” should be used to describe archived URLs.
<$MTSetVar name="home-frequency" value="daily"$>
<$MTSetVar name="category-frequency" value="weekly"$>
<$MTSetVar name="current-monthly-frequency" value="daily"$>
<$MTSetVar name="past-monthly-frequency" value="never"$>
<$MTSetVar name="current-weekly-frequency" value="daily"$>
<$MTSetVar name="past-weekly-frequency" value="never"$>
<$MTSetVar name="current-daily-frequency" value="hourly"$>
<$MTSetVar name="past-daily-frequency" value="never"$>
<$MTSetVar name="recent-entry-frequency" value="hourly"$>
<$MTSetVar name="past-entry-frequency" value="monthly"$>
<$MTSetVar name="page-frequency" value="weekly"$>
Values for priority range from 0.0 to 1.0 and reflect the relative importance of pages within your site.
Do not set these all to a high value, as that’s no different from setting them all to 0.0.
This does not affect how your pages are compared to other sites’.
<$MTSetVar name="home-priority" value="1.0"$>
<$MTSetVar name="category-priority" value="0.8"$>
<$MTSetVar name="monthly-priority" value="0.6"$>
<$MTSetVar name="weekly-priority" value="0.4"$>
<$MTSetVar name="daily-priority" value="0.2"$>
<$MTSetVar name="entry-priority" value="1.0"$>
<$MTSetVar name="page-priority" value="1.0"$>
3) Salviamo il template
4) Creiamo un nuovo template (in Index Templates) e lo chiamiamo “Google Sitemap”
5) Copiamo all’ interno la seguente riga:
<mt:include module=”Google Sitemap Include”>
6) Salviamo il template in “sitemap.xml” e pubblichiamo il tutto







Add Yours
YOU