theme: fix logo rendering with updated relearn theme
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
The theme overhauled its logo system to render #R-logo > .logo-image, making the old layouts/partials/logo.html override (#logo > img) match no CSS, so the wordmark overflowed the sidebar. Remove the stale override and use the theme-native logo config: point params.logo.src at the wordmark, suppress the redundant text title, and declare the auto variant's light/dark variants explicitly so the variant-gated logo also shows in dark mode. Set --LOGO-IMAGE-width to 90% in custom-header.html to fit the wide wordmark. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
426c2e5fb4
commit
f50dcc8ba9
3 changed files with 22 additions and 5 deletions
17
config.yml
17
config.yml
|
|
@ -42,11 +42,24 @@ params:
|
|||
editURL: "https://framagit.org/happyDNS/help/-/blob/master/content/"
|
||||
author:
|
||||
name: "The happyDNS team"
|
||||
# Wordmark logo handled by the theme's logo system (replaces the old
|
||||
# layouts/partials/logo.html override that broke after the theme update).
|
||||
logo:
|
||||
src: "/img/happyDomain.png"
|
||||
# The wordmark already reads "happyDomain", so don't render a text title
|
||||
# next to it (a single space resolves to an empty logo title).
|
||||
linkTitle: " "
|
||||
showVisitedLinks: true
|
||||
mermaid: false
|
||||
# "auto" follows the OS light/dark preference: light -> green, dark ->
|
||||
# relearn-dark. Both must be declared as variants so the theme attaches the
|
||||
# logo to each (the logo is variant-gated since the theme update); otherwise
|
||||
# the logo disappears in dark mode.
|
||||
themeVariant:
|
||||
- auto
|
||||
- green
|
||||
- identifier: auto
|
||||
auto: ["green", "relearn-dark"]
|
||||
- identifier: green
|
||||
- identifier: relearn-dark
|
||||
|
||||
|
||||
outputs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue