diff options
author | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:20:38 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:20:38 +0200 |
commit | c48fbfb7b85d9c5264be1d68063b8ac3af9e2899 (patch) | |
tree | 97c7d27e07392ba8ce303d0e917ee44972e94233 /head-include.html | |
download | cgithub-c48fbfb7b85d9c5264be1d68063b8ac3af9e2899.tar.gz |
Initial commit
Diffstat (limited to 'head-include.html')
-rw-r--r-- | head-include.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/head-include.html b/head-include.html new file mode 100644 index 0000000..fbc617f --- /dev/null +++ b/head-include.html @@ -0,0 +1,19 @@ +<meta name="viewport" content="width=device-width, initial-scale=1"/> + +<link rel="stylesheet" type="text/css" href="/cgit-css/github.min.css"/> +<link rel="stylesheet" type="text/css" href="/cgit-css/github-dark.min.css"/> + +<link rel="stylesheet" type="text/css" href="/cgit-css/theme.css"/> + +<script> + "use strict"; + function hlBlob() { + const blob = document.querySelector("div#cgit table.blob td.lines pre code"); + const path = document.querySelector("div#cgit div.path a:last-child"); + if (blob !== null && path !== null) { + blob.classList.add("language-" + path.textContent.split(".").pop()); + hljs.highlightElement(blob); + } + } +</script> +<script src="/cgit-css/highlight.min.js" onload="hlBlob()" defer></script> |