diff options
| author | Mole Shang <135e2@135e2.dev> | 2026-02-09 20:03:59 +0800 |
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2026-02-09 20:03:59 +0800 |
| commit | 119356da0f77ec711e694811ab5e3bc82e762624 (patch) | |
| tree | 5cca8d56942eb30d3b48cec9fac588db054b1b54 /templates | |
| parent | 3969670fbe49b4f6de2ce62c189aa71aa578c278 (diff) | |
| download | Seje2-119356da0f77ec711e694811ab5e3bc82e762624.tar.gz Seje2-119356da0f77ec711e694811ab5e3bc82e762624.tar.bz2 Seje2-119356da0f77ec711e694811ab5e3bc82e762624.zip | |
templates/base: migrate to new giallo highlighting engine
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html index 879ad7b..15f1dd7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -33,20 +33,13 @@ <meta property="og:image:height" content="200" /> <link rel="stylesheet" href="{{ config.base_url }}/style.css"> {% if config.extra.seje_darkmode == "auto" %} - {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} - <link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" /> - <link rel="stylesheet" type="text/css" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)" /> + {% if config.markdown.highlighting and config.markdown.highlighting.style == "class" %} + <link rel="stylesheet" type="text/css" href="/giallo-dark.css" media="(prefers-color-scheme: dark)" /> + <link rel="stylesheet" type="text/css" href="/giallo-light.css" media="(prefers-color-scheme: light)" /> {% endif %} <link rel="stylesheet" href="{{ config.base_url }}/autodarkmode.css"> {% elif config.extra.seje_darkmode == "always" %} - {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} - <link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css"> - {% endif %} <link rel="stylesheet" href="{{ config.base_url }}/darkmode.css"> - {% else %} - {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} - <link rel="stylesheet" type="text/css" href="/syntax-theme-light.css"> - {% endif %} {% endif %} {% if config.extra.seje_vertical_layout %} <link rel="stylesheet" href="{{ config.base_url }}/vertical.css"> |
