From 0982c9be1d70fcdebb7bcf840a7e831d95958179 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 23 Sep 2025 22:23:18 +0800 Subject: feat: add favicon to GitHub links Former-commit-id: 4d14829760f9a922de9e5e5b70fddfd268b27868 --- assets/css/_markdown.scss | 10 ++++++++++ static/icons/github.svg | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 static/icons/github.svg diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index a1090de3..7ab8905e 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -108,6 +108,16 @@ $em-text-color: #889E73; content: ''; background-image: url('/icons/etymonline.jpg'); } + &[href*="github.com"]::before { + content: ''; + background-image: url('/icons/github.svg'); + @media (prefers-color-scheme: dark) { + filter: invert(1); + } + .dark & { + filter: invert(1); + } + } } code { diff --git a/static/icons/github.svg b/static/icons/github.svg new file mode 100644 index 00000000..2dfec51e --- /dev/null +++ b/static/icons/github.svg @@ -0,0 +1,19 @@ + + + + + github [#142] + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3