Bladeren bron

Added Static Sitemap

Yoginth 7 jaren geleden
bovenliggende
commit
0db7292f9b
6 gewijzigde bestanden met toevoegingen van 224 en 1 verwijderingen
  1. 0 1
      cmd/web.go
  2. 98 0
      public/sitemap.xml
  3. 53 0
      templates/misc/admin_bar.tmpl
  4. 32 0
      templates/misc/signup_prompt.tmpl
  5. 5 0
      templates/misc/soon.tmpl
  6. 36 0
      templates/misc/sponsor.tmpl

+ 0 - 1
cmd/web.go

@@ -14,7 +14,6 @@ import (
 	"gitote/gitote/routes/admin"
 	apiv1 "gitote/gitote/routes/api/v1"
 	"gitote/gitote/routes/dev"
-	"gitote/gitote/routes/misc"
 	"gitote/gitote/routes/org"
 	"gitote/gitote/routes/pages"
 	"gitote/gitote/routes/repo"

+ 98 - 0
public/sitemap.xml

@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+    <url>
+        <loc>https://gitote.in/</loc>
+        <changefreq>Daily</changefreq>
+        <priority>1.0</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/about</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/faq</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/privacy</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/tos</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/developers</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/brand</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/contribute</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/security</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/verified</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/makers</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/help</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/features</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/contact</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/request</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/sponsorship</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/user/login</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/user/sign_up</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+    <url>
+        <loc>https://gitote.in/trending</loc>
+        <changefreq>Daily</changefreq>
+        <priority>0.9</priority>
+    </url>
+</urlset>

+ 53 - 0
templates/misc/admin_bar.tmpl

@@ -0,0 +1,53 @@
+<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>

+ 32 - 0
templates/misc/signup_prompt.tmpl

@@ -0,0 +1,32 @@
+<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>

+ 5 - 0
templates/misc/soon.tmpl

@@ -0,0 +1,5 @@
+<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>

+ 36 - 0
templates/misc/sponsor.tmpl

@@ -0,0 +1,36 @@
+{{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}}