-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xsl
54 lines (54 loc) · 4.46 KB
/
sitemap.xsl
1
2
3
4
5
6
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it-IT" data-wp-dark-mode-preset="0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<xsl:variable name="tableMinWidth" select="'727'"/><xsl:variable name="colorMain" select="'#7b7b7b'"/><xsl:variable name="colorAccent" select="'#ed7d31'"/><xsl:variable name="relativeFontColor" select="'#fefdff'"/><title>XML Sitemap | manvitech – siti internet e social marketing</title>
<style style="text/css">
html{font-size:62.5%;height:100%;}body{font-size:1.4rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;min-height:100%;display:grid;grid-template-rows:auto 1fr auto;margin:0;}.wrap{max-width:<xsl:value-of select="concat($tableMinWidth,'px')" />;margin:0 auto;overflow-wrap:break-word;}a{color:#05809e;text-decoration:none;}h1{font-size:2.4rem;font-family:Verdana,Geneva,sans-serif;font-weight:normal;margin:0;color:<xsl:value-of select="$colorAccent" />;}h1 img{vertical-align:bottom;margin-right:1.4rem;image-rendering:-webkit-optimize-contrast;}.rtl h1 img{margin-right:unset;margin-left:1.4rem;}#description{background-color:<xsl:value-of select="$colorMain" />;border-bottom:.7rem solid <xsl:value-of select="$colorAccent" />;color:<xsl:value-of select="$relativeFontColor" />;padding:2rem 2rem 1.3rem;}#description a{color:<xsl:value-of select="$relativeFontColor" />;}#content{padding:2rem;background:#fff;}a:hover{border-bottom:1px solid;}table{border-spacing:0;table-layout:fixed;}th,td{font-size:1.2rem;border:0px solid;padding:1rem 1.5rem;width:100%;max-width:<xsl:value-of select="concat($tableMinWidth - 173,'px')" />;min-width:113px;overflow-wrap:anywhere;}th{text-align:left;border-bottom:1px solid <xsl:value-of select="$colorAccent" />;}.rtl th{text-align:right;}tr:nth-of-type(2n){background-color:#eaeaea;}#footer{padding:0 3rem 2rem;font-size:1.1rem;color:#999;}#footer a{color:inherit;}#description a,#footer a{border-bottom:1px solid;}#description a:hover,#footer a:hover{border-bottom:none;}</style>
<link rel="icon" href="https://manvitech.local/wp-content/uploads/2020/12/manvitech-round-75x75.png" sizes="32x32" />
<link rel="icon" href="https://manvitech.local/wp-content/uploads/2020/12/manvitech-round-300x300.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://manvitech.local/wp-content/uploads/2020/12/manvitech-round-300x300.png" />
<meta name="msapplication-TileImage" content="https://manvitech.local/wp-content/uploads/2020/12/manvitech-round-300x300.png" />
</head>
<body class="ltr">
<div id="description">
<div class="wrap">
<a href="https://manvitech.local"><h1><img src="https://manvitech.local/wp-content/uploads/2020/12/manvitech-round-75x75.png" width="29" height="29" />manvitech – siti internet e social marketing — XML Sitemap</h1></a>
<p>
This is an optimized XML sitemap meant to be processed quickly by search engines like <a href="https://www.google.com/" target="_blank" rel="nofollow noreferrer noopener">Google</a> or <a href="https://www.bing.com/" target="_blank" rel="nofollow noreferrer noopener">Bing</a>.</p>
<p>
</p>
</div>
</div>
<div id="content">
<div class="wrap">
<table>
<thead>
<tr>
<th>URL</th> <th>Last Updated</th> </tr>
</thead>
<tbody>
<xsl:for-each select="sitemap:urlset/sitemap:url">
<xsl:variable name="itemURL" select="sitemap:loc"/><xsl:variable name="lastmod" select="concat(substring(sitemap:lastmod,0,11),concat(' ',substring(sitemap:lastmod,12,8)))"/> <tr>
<td><a href="{$itemURL}"><xsl:choose><xsl:when test="string-length($itemURL)>95"><xsl:value-of select="substring($itemURL,0,93)" />...</xsl:when><xsl:otherwise><xsl:value-of select="$itemURL" /></xsl:otherwise></xsl:choose></a></td> <td><xsl:value-of select="$lastmod" /></td> </tr>
</xsl:for-each>
</tbody>
</table>
</div>
</div>
<div id="footer">
<div class="wrap">
<p>
Generated by <a href="https://theseoframework.com/" target="_blank" rel="nofollow noreferrer noopener">The SEO Framework</a></p>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>