add a tad of seo to index.tpl - spreading the word of free mercurial hosting

Commit 364507f48f1a · Harrison Erd · 2026-05-04 19:04 -0400

Changeset
364507f48f1adef2926009955f0a14ade35236c9

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/templates/index.tpl b/templates/index.tpl
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -3,12 +3,24 @@
 <section class="panel">
   <div class="panel-heading">
     <div>
-      <p class="eyebrow">Recent activity</p>
-      <h1>Feed</h1>
+        % if user:
+            <p class="eyebrow">Recent activity</p>
+            <h1>Feed</h1>
+        % else:
+            <p class ="eyebrow">Mercurial hosting</p>
+            <h1>Free hg repository hosting for open source software</h1>
+              <div class="hero-actions" style="margin-bottom:50px;">
+                <a class="button" href="/signup">Create an account</a>
+                <a class="button secondary" href="/login">Log in</a>
+              </div>
+        % end
     </div>
   </div>
 
   % if actions:
+    % if not user:
+        <h1>Recent Activity Feed</h1>
+    % end
     <ol class="activity-feed">
       % for action in actions:
         % repo_url = "/" + action["repo_owner_username"] + "/" + action["repo_name"] if action["repo_owner_username"] and action["repo_name"] else ""
@@ -39,3 +51,4 @@
     <p class="empty">No activity yet.</p>
   % end
 </section>
+