Line | |
---|
1 | [(#REM) |
---|
2 | |
---|
3 | sitemap.xml specialise "google news", |
---|
4 | seuls les articles sont geres |
---|
5 | |
---|
6 | (On pose un cache a zero pour echapper au test _IS_BOT) |
---|
7 | |
---|
8 | ]#CACHE{0} |
---|
9 | #HTTP_HEADER{Content-Type: text/xml; charset=utf-8} |
---|
10 | <?xml version="1.0" encoding="UTF-8"?> |
---|
11 | <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" |
---|
12 | xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"> |
---|
13 | |
---|
14 | [(#REM) Accueil |
---|
15 | ] <url> |
---|
16 | <loc>#URL_SITE_SPIP/</loc> |
---|
17 | <changefreq>hourly</changefreq> |
---|
18 | </url> |
---|
19 | |
---|
20 | [(#REM) Articles |
---|
21 | ][(#SET{recent,[(#VAL{Y-m-d H:i:s}|date{#VAL{"-1 day"}|strtotime})]}) |
---|
22 | ]<BOUCLE_a(ARTICLES){!par date_modif}{!par date}{0,2000}{age<=2}> |
---|
23 | <url> |
---|
24 | <loc>[(#URL_ARTICLE|url_absolue)]</loc>[(#DATE_MODIF**|>{#GET{recent}} |
---|
25 | |?{[ |
---|
26 | <lastmod>(#DATE_MODIF**|date_iso)</lastmod>]})] |
---|
27 | <news:news> |
---|
28 | <news:title>[(#TITRE|attribut_html)]</news:title> |
---|
29 | <news:publication> |
---|
30 | <news:name>[(#NOM_SITE_SPIP|attribut_html)]</news:name> |
---|
31 | <news:language>#LANG</news:language> |
---|
32 | </news:publication> |
---|
33 | [ <news:publication_date>(#DATE|affdate{Y-m-d})</news:publication_date> |
---|
34 | ]<B_k> <news:keywords><BOUCLE_k(MOTS){id_article}{", "}>[(#TITRE|attribut_html)]</BOUCLE_k></news:keywords> |
---|
35 | </B_k> </news:news> |
---|
36 | </url> |
---|
37 | </BOUCLE_a> |
---|
38 | |
---|
39 | </urlset> |
---|
Note: See
TracBrowser
for help on using the repository browser.