public
Description: Rails Sitemap Plugin / Site Map Plugin for Rails. A beautiful rails sitemap plugin that talks to Google, Yahoo and MSN when updated. Sitemap features clean handcrafted XHTML, XML with XSLT and custom finder options for your named routes.
Clone URL: git://github.com/queso/sitemap.git
Search Repo:
Adding the xslt chnges from Adam.
queso (author)
Thu Jan 31 05:59:59 -0800 2008
commit  d64784c6c17263bc7f45a7880739c36ec21ac9ea
tree    f41481c65f6791f6db031e905dfd51bcecc9f7b8
parent  b3cfc3d55ce59c380b6ed8a1588c3d79c496fe84
...
7
8
9
10
 
11
12
 
 
 
 
 
 
 
 
 
 
 
13
14
15
 
 
 
 
 
 
 
 
 
 
 
 
 
16
17
18
19
20
21
22
 
 
 
 
 
 
 
 
23
24
25
26
 
 
 
27
28
29
30
 
 
 
 
31
32
33
34
35
36
 
 
37
38
39
40
 
 
 
 
 
 
41
42
43
44
45
46
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
49
50
51
 
 
52
53
54
55
 
 
56
57
58
59
60
 
61
62
63
64
65
66
 
 
 
67
68
69
70
 
 
71
72
73
74
 
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
102
103
104
105
 
 
106
107
108
...
7
8
9
 
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
 
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
 
 
 
41
42
43
44
45
46
47
48
49
50
51
 
52
53
54
55
56
 
 
57
58
59
60
61
62
63
 
 
 
64
65
66
67
68
 
69
70
71
72
73
74
75
76
77
 
 
 
 
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 
103
104
105
106
 
 
107
108
109
110
111
112
 
113
114
 
 
 
 
 
115
116
117
118
119
 
 
120
121
122
123
124
 
125
126
127
128
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
 
156
157
158
159
160
0
@@ -7,102 +7,154 @@
0
   <xsl:template match="/">
0
     <html xmlns="http://www.w3.org/1999/xhtml">
0
       <head>
0
- <title>XML Sitemap</title>
0
+ <title>XML Sitemap: <%= (@site.name || "Rails Web Application") %></title>
0
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
         <style type="text/css">
0
+ * {
0
+ margin: 0;
0
+ padding: 0;
0
+ }
0
+
0
+ html, body {
0
+ height: 100%;
0
+ margin: 0 0 1px 0;
0
+ padding: 0;
0
+ }
0
+
0
           body {
0
- font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
0
- font-size:13px;
0
+ background: #fff;
0
+ color: #353535;
0
+ font: 62.5% Arial, Verdana, sans-serif;
0
+ padding: 20px;
0
+ }
0
+
0
+ h1 {
0
+ color: #000;
0
+ font-weight: bold;
0
+ font-size: 4.4em;
0
+ margin-top: 30px;
0
+ margin-bottom: 30px;
0
+ text-align: center;
0
           }
0
           
0
           #intro {
0
- background-color:#CFEBF7;
0
- border:1px #2580B2 solid;
0
- padding:5px 13px 5px 13px;
0
- margin:10px;
0
+ border-bottom: 1px solid #ccc;
0
+ color: #656565;
0
+ font: italic 1.4em Tahoma, Georgia, Times New Roman, sans-serif;
0
+ margin: 0 auto;
0
+ margin-bottom: 12px;
0
+ padding-bottom: 18px;
0
+ text-align: center;
0
+ width: 985px;
0
           }
0
           
0
           #intro p {
0
- line-height: 16.8667px;
0
+ font-size: 1.2em;
0
+ line-height: 1.5em;
0
+ margin-bottom: 8px;
0
           }
0
           
0
- td {
0
- font-size:11px;
0
+ table {
0
+ font-size: 1.2em;
0
+ margin: 0 auto;
0
+ width: 985px;
0
           }
0
           
0
           th {
0
- text-align:left;
0
- padding-right:30px;
0
- font-size:11px;
0
+ font-size: 1.2em;
0
+ text-align: left;
0
           }
0
           
0
           tr.high {
0
- background-color:whitesmoke;
0
+ background-color: #e9e9e9;
0
+ }
0
+
0
+ td {
0
+ border-bottom: 1px solid #ccc;
0
+ padding: 10px 0 10px 5px;
0
           }
0
           
0
           #footer {
0
- padding:2px;
0
- margin:10px;
0
- font-size:8pt;
0
- color:gray;
0
+ color: #171717;
0
+ font: 1.1em Verdana, sans-serif;
0
+ padding-top: 15px;
0
+ text-align: center;
0
+ }
0
+
0
+ #footer p {
0
+ margin-bottom: 8px;
0
+ }
0
+
0
+ a {
0
+ color: #171717;
0
+ text-decoration: none;
0
+ }
0
+
0
+ a:hover {
0
+ color: #000;
0
+ text-decoration: underline;
0
+ }
0
+
0
+ #intro a {
0
+ text-decoration: underline;
0
           }
0
           
0
           #footer a {
0
- color:gray;
0
+ color: #777;
0
+ text-decoration: underline;
0
           }
0
           
0
- a {
0
- color:black;
0
+ #footer a:hover {
0
+ color: #555;
0
           }
0
         </style>
0
       </head>
0
       <body>
0
- <h1>XML Sitemap</h1>
0
+ <h1>XML Sitemap: <%= (@site.name || "Rails Web Application") %></h1>
0
         <div id="intro">
0
- <p>
0
- This is a XML Sitemap which is supposed to be processed by search engines like <a href="http://www.google.com">Google</a>, <a href="http://search.msn.com">MSN Search</a> and <a href="http://www.yahoo.com">YAHOO</a>.<br />
0
- It was generated using the <a href="http://seoandrails.com/plugins">rails sitemap</a> plugin.<br />
0
- You can find more information about XML sitemaps on <a href="http://sitemaps.org">sitemaps.org</a> and Google's <a href="http://code.google.com/sm_thirdparty.html">list of sitemap programs</a>.
0
- </p>
0
+ <p>This is an XML Sitemap generated using the <a href="http://seoandrails.com/plugins">Google Sitemap Generator Plugin for Rails</a>.</p>
0
+ <p class="last">It is intended to be processed by search engines such as <a href="http://www.google.com">Google</a>, <a href="http://search.yahoo.com/">Yahoo Search</a>, <a href="http://www.live.com">Microsoft Live Search</a>, and <a href="http://www.ask.com/">Ask.com
0
+</a>.</p>
0
         </div>
0
         <div id="content">
0
- <table cellpadding="5">
0
- <tr style="border-bottom:1px black solid;">
0
+ <table border="0" cellspacing="0" cellpadding="0">
0
+ <tr>
0
               <th>URL</th>
0
               <th>Priority</th>
0
               <th>Change Frequency</th>
0
- <th>LastChange</th>
0
+ <th>Last Change</th>
0
             </tr>
0
             <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
0
             <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
0
             <xsl:for-each select="sitemap:urlset/sitemap:url">
0
- <tr>
0
- <xsl:if test="position() mod 2 != 1">
0
- <xsl:attribute name="class">high</xsl:attribute>
0
- </xsl:if>
0
- <td>
0
- <xsl:variable name="itemURL">
0
- <xsl:value-of select="sitemap:loc"/>
0
- </xsl:variable>
0
- <a href="{$itemURL}">
0
- <xsl:value-of select="sitemap:loc"/>
0
- </a>
0
- </td>
0
- <td>
0
- <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
0
- </td>
0
- <td>
0
- <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
0
- </td>
0
- <td>
0
- <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
0
- </td>
0
- </tr>
0
+ <tr>
0
+ <xsl:if test="position() mod 2 != 1">
0
+ <xsl:attribute name="class">high</xsl:attribute>
0
+ </xsl:if>
0
+ <td>
0
+ <xsl:variable name="itemURL">
0
+ <xsl:value-of select="sitemap:loc"/>
0
+ </xsl:variable>
0
+ <a href="{$itemURL}">
0
+ <xsl:value-of select="sitemap:loc"/>
0
+ </a>
0
+ </td>
0
+ <td>
0
+ <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
0
+ </td>
0
+ <td>
0
+ <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
0
+ </td>
0
+ <td>
0
+ <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
0
+ </td>
0
+ </tr>
0
             </xsl:for-each>
0
           </table>
0
         </div>
0
         <div id="footer">
0
- Generated with <a href="http://seoandrails.com" title="Google Sitemap Generator Plugin for Rails">Google Sitemap Generator Plugin for Rails.</a>. This XSLT template is released under GPL.
0
+ <p>Generated with <a href="http://seoandrails.com/" title="Google Sitemap Generator Plugin for Rails">Google Sitemap Generator Plugin for Rails</a>.</p>
0
+ <p>More information about XML sitemaps can be found at <a href="http://sitemaps.org">sitemaps.org</a> or at <a href="http://code.google.com/sm_thirdparty.html">Google's list of sitemap programs</a>.</p>
0
         </div>
0
       </body>
0
     </html>

Comments

    No one has commented yet.