Remove the sitemap from the footer

This commit is contained in:
Ben Visness 2021-09-01 21:54:51 -05:00
parent 6aa705d5cc
commit a288ae8124
4 changed files with 6 additions and 18 deletions

View File

@ -42,13 +42,6 @@ func BuildStreams() string {
return Url("/streams", nil)
}
var RegexSiteMap = regexp.MustCompile("^/sitemap$")
func BuildSiteMap() string {
defer CatchPanic()
return Url("/sitemap", nil)
}
var RegexWhenIsIt = regexp.MustCompile("^/whenisit$")
func BuildWhenIsIt() string {

View File

@ -13,23 +13,20 @@
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ManifestoUrl }}">Handmade Manifesto</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ForumsUrl }}">Forums</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ProjectIndexUrl }}">Projects</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.CodeOfConductUrl }}">Code of Conduct</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.CommunicationGuidelinesUrl }}">Communication Guidelines</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ProjectIndexUrl }}">Project Index</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ForumsUrl }}">Community Forums</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.ContactUrl }}">Contact</a>
</li>
<li class="{{ $footerClasses }}">
<a href="{{ .Footer.SitemapUrl }}">Sitemap</a>
</li>
</ul>
</footer>

View File

@ -65,7 +65,6 @@ type Footer struct {
ProjectIndexUrl string
ForumsUrl string
ContactUrl string
SitemapUrl string
}
type Thread struct {

View File

@ -333,7 +333,6 @@ func getBaseData(c *RequestContext, title string, breadcrumbs []templates.Breadc
ProjectIndexUrl: hmnurl.BuildProjectIndex(1),
ForumsUrl: hmnurl.BuildForum(models.HMNProjectSlug, nil, 1),
ContactUrl: hmnurl.BuildContactPage(),
SitemapUrl: hmnurl.BuildSiteMap(),
},
}