summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2023-01-28 13:41:34 -0300
committerSoniEx2 <endermoneymod@gmail.com>2023-01-28 13:41:34 -0300
commit55cc6f60108cc182cfd219225a2eaa3005f1b63f (patch)
tree252f392213181fe4c261fc7a5b73ff7a7e077c3a
parent68ee24fe842cf33f65b97997c9e4061235458190 (diff)
Use well-known protocol handlers by default
-rw-r--r--ganarchy/templating/templates.py4
-rw-r--r--index.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py
index af9bf2e..7d453e4 100644
--- a/ganarchy/templating/templates.py
+++ b/ganarchy/templating/templates.py
@@ -89,7 +89,7 @@ def get_template_loader():
         <meta charset="utf-8" />
         <!--
         GAnarchy - project homepage generator
-        Copyright (C) 2019  Soni L.
+        Copyright (C) 2019, 2023  Soni L.
 
         This program is free software: you can redistribute it and/or modify
         it under the terms of the GNU General Public License as published by
@@ -110,7 +110,7 @@ def get_template_loader():
     </head>
     <body>
         <h1>{{ project_title|e }}</h1>
-        <p>Tracking <span id="project_commit"><a href="https://fedi-to.net/go?h={{ ganarchy.fedito }}&target=web%2Bganarchy:{{ project_commit }}">{{ project_commit }}</a></span></p>
+        <p>Tracking <span id="project_commit"><a href="https://fedi-to.net/go?target=web%2Bganarchy://{{ base_url.rpartition("//")[-1].partition("/")[0] }}/{{ project_commit }}">{{ project_commit }}</a></span></p>
         <div id="project_body"><p>{{ project_body|e|replace("\n\n", "</p><p>") }}</p></div>
         <h2>Pinned repos</h2>
         <ul>
diff --git a/index.js b/index.js
index cce07fa..687d0d3 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
 // GAnarchy - project homepage generator
-// Copyright (C) 2019  Soni L.
+// Copyright (C) 2019, 2023  Soni L.
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by