| -rwxr-xr-x | filters/about-formatting.sh | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/email-gravatar.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/email-libravatar.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/file-authentication.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/gentoo-ldap-authentication.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/owner-example.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/simple-authentication.lua | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | filters/syntax-highlight-hljs.sh | 0 | ||||
| -rwxr-xr-x | filters/syntax-highlighting-shiki.sh | 2 | ||||
| -rw-r--r-- | icons/favicon.svg | 1 | ||||
| -rw-r--r-- | themed/base.html | 4 | ||||
| -rw-r--r-- | themed/index.html | 2 |
12 files changed, 6 insertions, 5 deletions
diff --git a/filters/about-formatting.sh b/filters/about-formatting.sh index 85daf9c..4b4a198 100755 --- a/filters/about-formatting.sh +++ b/filters/about-formatting.sh @@ -16,7 +16,7 @@ # CGIT_REPO_DEFBRANCH ( = repo.defbranch setting ) # CGIT_REPO_SECTION ( = section setting ) # CGIT_REPO_CLONE_URL ( = repo.clone-url setting ) - +PATH=$PATH:"/run/system-manager/sw/bin" cd "$(dirname $0)/html-converters/" case "$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')" in *.markdown|*.mdown|*.md|*.mkd) exec ./md2html; ;; diff --git a/filters/email-gravatar.lua b/filters/email-gravatar.lua index c39b490..c39b490 100644..100755 --- a/filters/email-gravatar.lua +++ b/filters/email-gravatar.lua diff --git a/filters/email-libravatar.lua b/filters/email-libravatar.lua index 7336baf..7336baf 100644..100755 --- a/filters/email-libravatar.lua +++ b/filters/email-libravatar.lua diff --git a/filters/file-authentication.lua b/filters/file-authentication.lua index 0248804..0248804 100644..100755 --- a/filters/file-authentication.lua +++ b/filters/file-authentication.lua diff --git a/filters/gentoo-ldap-authentication.lua b/filters/gentoo-ldap-authentication.lua index 673c88d..673c88d 100644..100755 --- a/filters/gentoo-ldap-authentication.lua +++ b/filters/gentoo-ldap-authentication.lua diff --git a/filters/owner-example.lua b/filters/owner-example.lua index 50fc25a..50fc25a 100644..100755 --- a/filters/owner-example.lua +++ b/filters/owner-example.lua diff --git a/filters/simple-authentication.lua b/filters/simple-authentication.lua index 23d3457..23d3457 100644..100755 --- a/filters/simple-authentication.lua +++ b/filters/simple-authentication.lua diff --git a/filters/syntax-highlight-hljs.sh b/filters/syntax-highlight-hljs.sh index 3f8c84d..3f8c84d 100644..100755 --- a/filters/syntax-highlight-hljs.sh +++ b/filters/syntax-highlight-hljs.sh diff --git a/filters/syntax-highlighting-shiki.sh b/filters/syntax-highlighting-shiki.sh index f42ccde..e08bf6a 100755 --- a/filters/syntax-highlighting-shiki.sh +++ b/filters/syntax-highlighting-shiki.sh @@ -17,7 +17,7 @@ sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g' cat << EOF </code></pre></div><script type="module"> -import { createHighlighter } from 'https://esm.sh/[email protected]'; +import { createHighlighter } from 'https://esm.sh/[email protected]'; const t = Object.freeze((await fetch("/icons/theme.json")).json()); const highlighter = await createHighlighter({ themes: [], langs: ["$EXTENSION"] }); await highlighter.loadTheme(t); diff --git a/icons/favicon.svg b/icons/favicon.svg new file mode 100644 index 0000000..26396c9 --- /dev/null +++ b/icons/favicon.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256" viewBox="0 0 67.733 67.733"><defs><linearGradient id="a"><stop offset=".105" style="stop-color:#2159ea;stop-opacity:1"/><stop offset=".825" style="stop-color:#1dffd5;stop-opacity:1"/></linearGradient><linearGradient xlink:href="#a" id="c" x1="86.796" x2="-6.12" y1="27.315" y2="1.417" gradientUnits="userSpaceOnUse"/><clipPath id="d" clipPathUnits="userSpaceOnUse"><circle cx="19.14" cy="40.858" r="53.858" style="fill:#333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5.20978;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" transform="rotate(-19.186)"/></clipPath><clipPath id="b" clipPathUnits="userSpaceOnUse"><circle cx="33.867" cy="33.867" r="33.867" style="fill:#333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.27599;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"/></clipPath></defs><circle cx="33.867" cy="33.867" r="29.529" style="fill:#333;fill-opacity:1;fill-rule:evenodd;stroke:#333;stroke-width:8.67594;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"/><path d="M19.202 55.8c5.747-7.194 11.116-13.685 12.03-21.99.64-5.82-.204-8.868-4.88-16.877" clip-path="url(#b)" style="fill:none;fill-rule:evenodd;stroke:#3bd972;stroke-width:15.1364;stroke-linecap:square;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"/><path d="m1.932 2.722 72.515 62.017" clip-path="url(#d)" style="fill:#40588c;fill-opacity:1;fill-rule:evenodd;stroke:url(#c);stroke-width:24.0712;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" transform="rotate(19.186 -13.268 68.672)scale(.62882)"/></svg>
\ No newline at end of file diff --git a/themed/base.html b/themed/base.html index d1e53fa..7e1978a 100644 --- a/themed/base.html +++ b/themed/base.html @@ -19,14 +19,14 @@ <meta content="https://git.bendn.org/icons/cgit.png" property="og:image" /> <meta content="#1dffd5" data-react-helmet="true" name="theme-color" /> - <link rel='shortcut icon' href='/favicon.ico'> + <link rel='shortcut icon' href='/favicon.svg' type="image/svg"> </head> <body class="bg-[#1F2430] text-[#CCCAC2]"> {% endblock %} {% block repo_header %} <header class="bg-[#262F3F] border-b border-[#333A45]">{# Repo header #} <div class="max-w-7xl mx-auto py-4 flex gap-x-1 items-center pl-2"> - <a href="{{ cgit_rooturl()|attr }}"><img width="40px" height="40px" src="/favicon.ico"></img></a> + <a href="{{ cgit_rooturl()|attr }}"><img width="40px" height="40px" src="/favicon.svg" type="image/svg"></img></a> <div class="text-4xl"><a href="{{ cgit_rooturl()|attr }}" class="hover:text-[#73D0FF] hover:underline">{{ ctx.cfg.root_title }}</a> / <a href="{! cgit_shared_repolink_url(NULL, NULL, NULL); !}" class="font-semibold hover:text-[#73D0FF] hover:underline">{{ ctx.repo->name }}</a></div> </div> </header> diff --git a/themed/index.html b/themed/index.html index faee488..9b2c809 100644 --- a/themed/index.html +++ b/themed/index.html @@ -6,7 +6,7 @@ <header class="bg-[#262F3F] border-b border-[#333A45]"> {# Repo header #} <div class="pl-2 max-w-7xl mx-auto py-4 flex gap-x-1 items-center"> - <a href="{{ cgit_rooturl()|attr }}"><img width="40px" height="40px" src="/favicon.ico"></img></a> + <a href="{{ cgit_rooturl()|attr }}"><img width="40px" height="40px" src="/favicon.svg" type="image/svg"></img></a> <a href="{{ cgit_rooturl()|attr }}" class="text-4xl text-[#CCCAC2] hover:text-[#73D0FF] hover:underline"> {{ ctx.cfg.root_title }} </a> |