git.tonybtw.com

https://git.tonybtw.com/git.tonybtw.com.git git://git.tonybtw.com/git.tonybtw.com.git

Added org mode support and zig sytnax highlighting

Commit
e65111e6cc7842e583160b02fcb9d06ba599d682
Parent
0e708f9
Author
tonybanters <tonybanters@gmail.com>
Date
2026-02-06 21:50:23

Diff

diff --git a/app/models/Git_Model.php b/app/models/Git_Model.php
index 7c89afa..e01c7c2 100644
--- a/app/models/Git_Model.php
+++ b/app/models/Git_Model.php
@@ -156,7 +156,7 @@ class Git_Model {
 
     public static function get_readme(string $repo, string $ref = 'HEAD'): ?array {
         $tree = self::get_tree($repo, $ref);
-        $readme_names = ['README.md', 'README', 'README.txt', 'readme.md'];
+        $readme_names = ['README.md', 'README', 'README.txt', 'readme.md', 'README.org', 'readme.org'];
 
         foreach ($tree as $entry) {
             if ($entry['type'] === 'blob' && in_array($entry['name'], $readme_names)) {
diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php
index 6e9de93..87544e5 100644
--- a/app/views/partials/footer.php
+++ b/app/views/partials/footer.php
@@ -3,6 +3,7 @@
     <p>git-btw</p>
 </footer>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
+<script src="https://unpkg.com/highlightjs-zig@1.0.1/dist/zig.min.js"></script>
 <script>hljs.highlightAll();</script>
 </body>
 </html>