Bladeren bron

Removed Dynamic Sitemap

Yoginth 7 jaren geleden
bovenliggende
commit
dd4430116b

+ 0 - 5
cmd/web.go

@@ -306,11 +306,6 @@ func runWeb(c *cli.Context) error {
 
 	// ***** END: Pages *****
 
-	// ***** START: Misc *****
-	m.Get("/sitemap.xml", ignSignIn, misc.Sitemap)
-
-	// ***** END: Misc *****
-
 	// ***** START: Embed *****
 	m.Get("/embed/user/:username", ignSignIn, user.Embed)
 	// ***** END: Embed *****

+ 0 - 11
routes/misc/sitemap.go

@@ -1,11 +0,0 @@
-package misc
-
-import (
-	"gitote/gitote/pkg/context"
-)
-
-func Sitemap(c *context.Context) {
-	c.Data["Title"] = "Sitemap"
-
-	c.XML(200, "Yoginth")
-}

+ 0 - 6
routes/pages/pages.go

@@ -115,9 +115,3 @@ func Sponsorship(c *context.Context) {
 
 	c.HTML(200, SPONSORSHIP)
 }
-
-func Sitemap(c *context.Context) {
-	c.Data["Title"] = "Sitemap"
-
-	c.HTML(200, SITEMAP)
-}

+ 0 - 53
templates/misc/admin_bar.tmpl

@@ -1,53 +0,0 @@
-<div class="navbar container adminbar main">
-    <div class="ui grid">
-        <div class="column">
-            <div class="ui left floated header adminbar text">
-                <span class="adminbar align">
-                    Version <span class="adminbar embed">{{AppVer}}</span>
-                </span>
-                
-                <span class="adminbar align hide-mobile">
-                    Render
-                    <span class="adminbar embed">{{LoadTimes .PageStartTime}}</span>
-                </span>
-
-                <span class="adminbar align hide-mobile">
-                    Browser
-                    <span class="adminbar embed" id="browser"><span>···</span></span>
-                </span>
-            </div>
-            <div class="ui right floated header adminbar text">
-                <div class="ui dropdown">
-                    {{if .Lab}}<i class="octicon octicon-pulse"></i>
-                    {{else}}<i class="octicon octicon-squirrel"></i>
-                    {{end}}
-                </div>
-
-                <span class="adminbar align hide-mobile">
-                    {{if .Lab}}{{AppName}}:Lab{{else}}{{AppName}}:Prod{{end}}
-                </span>
-                <span class="adminbar divider hide-mobile"></span>
-
-                <span class="adminbar align hide-mobile">
-                    Current Memory
-                    <span class="adminbar embed">{{.AdminBar.MemAllocated}}</span>
-                </span>
-
-                <span>{{GoVer}}</span>
-
-                <a href="{{AppURL}}admin">
-                    <span style="font-size:12px;color:white;margin-left:10px" class="octicon octicon-rocket"></span>
-                </a>
-                <a class="sitestatus ui empty circular label mini" href="{{AppURL}}status"></a>
-            </div>
-        </div>
-    </div>
-</div>
-
-<script>
-var renderStart = new Date().getTime();
-window.onload = function() { 
-    var elapsed = new Date().getTime() - renderStart;
-    $('#browser').html(elapsed + 'ms');
-}
-</script>

+ 0 - 32
templates/misc/signup_prompt.tmpl

@@ -1,32 +0,0 @@
-<div class="ui segment container home-main prompt">
-    <h3 class="ui center aligned header">
-        {{if .PageIsUserProfile}}
-            Create your own {{AppName}} profile
-        {{end}}
-        {{if .PageIsOrgHome}}
-            Grow your team on {{AppName}}
-        {{end}}
-        {{if or .PageIsRepoHome .PageIsRepoWiki}}
-            Join {{AppName}} today
-        {{end}}
-    </h3>
-    <h5 class="ui center aligned header home-desc">
-        {{if .PageIsUserProfile}}
-            Sign up for your own profile on {{AppName}}, the best place to host code, manage projects, 
-			and build software alongside with tons of developers.
-        {{end}}
-        {{if .PageIsOrgHome}}
-            {{AppName}} is home for developers working together. Join them to grow your own development 
-            teams, manage permissions, and collaborate on projects.
-        {{end}}
-        {{if or .PageIsRepoHome .PageIsRepoWiki}}
-            GitHub is home for developers working together to host and review code, manage projects, 
-            and build software together.
-        {{end}}
-    </h5>
-    <div class="ui center aligned header">
-        <a class="ui green button" href="{{AppURL}}user/sign_up">
-            Sign up
-        </a>
-    </div>
-</div>

+ 0 - 1
templates/misc/sitemap.tmpl

@@ -1 +0,0 @@
-Hello

+ 0 - 5
templates/misc/soon.tmpl

@@ -1,5 +0,0 @@
-<div class="ui center">
-    <h1>We are working on it!</h1>
-    <img class="pages soon" src="https://cdn.jsdelivr.net/npm/gitote@1.1.5/img/svg/wip.svg">
-    <h2>Coming soon!</h2>
-</div>

+ 0 - 36
templates/misc/sponsor.tmpl

@@ -1,36 +0,0 @@
-{{if .Owner.ShowSponsors}}
-    <h4 class="ui top attached header">
-        <i class="menu-icon octicon">❤️</i> Community Sponsors
-    </h4>
-    <div class="ui attached table segment dashboard sponsor">
-        <center>
-            <img class="ui center image small" src="https://cdn.jsdelivr.net/npm/gitote@1.1.3/img/sponsors/digitalocean.svg">
-            <h5>
-                The all-in-one cloud platform developers & their teams love.
-            </h5>
-            <a href="https://www.digitalocean.com">
-                <h5>Learn more</h5>
-            </a>
-        </center>
-
-        <center>
-            <img class="ui center image small" src="https://cdn.jsdelivr.net/npm/gitote@1.1.1/img/sponsors/browserstack.png">
-            <h5>
-                Most Reliable Mobile App & Browser Testing Platform.
-            </h5>
-            <a href="https://www.browserstack.com">
-                <h5>Learn more</h5>
-            </a>
-        </center>
-
-        <center class="dashboard sponsor divider">
-            <span>
-                We are grateful for wonderful sponsors who help sustain the {{AppName}} Platform.
-            </span>
-            <br/>
-            <a href="{{AppURL}}sponsorship">
-                <div class="sponsor button">Sponsorship Info</div>
-            </a>
-        </center>
-    </div>
-{{end}}