Skip to content

Commit 3ff7372

Browse files
committed
Added stylesheet for sitemap
1 parent 94156ab commit 3ff7372

File tree

6 files changed

+71
-24
lines changed

6 files changed

+71
-24
lines changed

_includes/footer.html

+10-17
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,26 @@ <h4 class="fs-5 mb-0">Company</h4>
4545
<h4 class="fs-5 mb-0">Support</h4>
4646
<ul class="list-group list-group-flush">
4747
<li class="list-group-item px-0 pb-0 bg-dark">
48-
<a href="{{ "/contact-us" | relative_url }}" title="Contact Us">
49-
Contact Us
50-
</a>
48+
<a href="{{ "/contact-us" | relative_url }}" title="Contact Us">Contact Us</a>
5149
</li>
5250
<li class="list-group-item px-0 pb-0 bg-dark">
53-
<a href="{{ "/cookies" | relative_url }}" title="Cookies">
54-
Cookies
55-
</a>
51+
<a href="{{ "/cookies" | relative_url }}" title="Cookies">Cookies</a>
5652
</li>
5753
<li class="list-group-item px-0 pb-0 bg-dark">
58-
<a href="{{ "/privacy" | relative_url }}" title="Privacy">
59-
Privacy
60-
</a>
54+
<a href="{{ "/privacy" | relative_url }}" title="Privacy">Privacy</a>
6155
</li>
6256
<li class="list-group-item px-0 pb-0 bg-dark">
63-
<a href="/sitemap.xml" title="Sitemap">
64-
Sitemap
65-
</a>
57+
<a href="/sitemap.xml" title="Sitemap">Sitemap</a>
58+
</li>
6659
</ul>
6760
</div>
6861
<div class="mb-4 mb-lg-0 col-12 col-md-6 col-lg-3 order-2 order-lg-5">
6962
<h4 class="fs-5 mb-0">Meet Us</h4>
7063
<p class="mt-1">Book a meeting now, to find out more about us and for us to find out a little about you.</p>
7164
<!-- Calendly link widget begin -->
72-
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
73-
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async></script>
74-
<a href="" class="calendly-widget-link" onclick="Calendly.initPopupWidget({url: 'https://calendly.com/spt-development/introduction?hide_gdpr_banner=1'});return false;">Book Now</a>
65+
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet" />
66+
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async="true"></script>
67+
<a href="" class="calendly-widget-link" onclick="com.spt_development.initCalendlyPopup();return false;">Book Now</a>
7568
<!-- Calendly link widget end -->
7669
</div>
7770
</div>
@@ -91,12 +84,12 @@ <h4 class="fs-5 mb-0">Meet Us</h4>
9184
</a>
9285
<a href="https://github.com/spt-development" title="Find us on GitHub" class="text-light mx-2">
9386
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24">
94-
<path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
87+
<path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path>
9588
</svg>
9689
</a>
9790
</section>
9891
<section class="footer-copyright text-light text-center">
99-
<p class="mt-2">&copy; {{ site.time | date: '%Y' }} SPT Development Ltd. All rights reserved.</p>
92+
<p class="mt-2">&#169;; {{ site.time | date: '%Y' }} SPT Development Ltd. All rights reserved.</p>
10093
</section>
10194
</footer>
10295
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

_includes/head.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
{%- include google-analytics.html -%}
44
{%- endif -%}
55

6-
<meta charset="utf-8">
7-
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta charset="utf-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99
<meta name="robots" content="all" />
1010
<meta name="copyright" content="SPT Development Ltd" />
1111
{%- seo -%}
1212
{%- feed_meta -%}
1313

14-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
15-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
16-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
17-
<link rel="manifest" href="/site.webmanifest">
14+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
15+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
16+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
17+
<link rel="manifest" href="/site.webmanifest" />
1818
<link rel="stylesheet" href="{{ "/assets/css/reset.css" | relative_url }}" />
1919
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url; }}" />
2020
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{% endif %}
2727
</li>
2828
{% endfor %}
29-
</div>
29+
</ul>
3030
</div>
3131
</div>
3232
</nav>

assets/js/script.js

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ window.onload = function () {
3838
document.querySelector(window.location.hash).scrollIntoView();
3939
}
4040
};
41+
42+
// Calendly integration
43+
com.spt_development.initCalendlyPopup = function () {
44+
Calendly.initPopupWidget({url: 'https://calendly.com/spt-development/introduction?hide_gdpr_banner=1'});
45+
}

sitemap.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
---
3+

sitemap.xsl

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<xsl:stylesheet version="2.0"
6+
xmlns:html="http://www.w3.org/TR/REC-html40"
7+
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
8+
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
9+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
11+
<xsl:template match="/">
12+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
13+
{%- include head.html -%}
14+
<body class="bg-light text-dark">
15+
16+
{%- include header.html -%}
17+
18+
<section class="container-xl flex-grow-1 mt-3" aria-label="Content">
19+
<div class="row">
20+
<div class="col">
21+
<h2 class="post-list-heading">Sitemap</h2>
22+
<p>This is an XML sitemap, meant for consumption by search engines.</p>
23+
<ul class="post-list ps-0 w-100">
24+
<xsl:for-each select="sitemap:urlset/sitemap:url">
25+
<li class="pb-3">
26+
<xsl:variable name="itemURL">
27+
<xsl:value-of select="sitemap:loc"/>
28+
</xsl:variable>
29+
<a href="{$itemURL}">
30+
<xsl:value-of select="sitemap:loc"/>
31+
</a>
32+
</li>
33+
</xsl:for-each>
34+
</ul>
35+
</div>
36+
</div>
37+
</section>
38+
39+
{%- include footer.html -%}
40+
41+
</body>
42+
43+
</html>
44+
45+
</xsl:template>
46+
</xsl:stylesheet>

0 commit comments

Comments
 (0)