Repository navigation
feat: LOGO_HEIGHT env var to control the site logo size - #414
Merged
Merged
Conversation
A bare number is treated as pixels; other simple CSS lengths (rem, em, %, vh, vw, ch) pass through, anything else is ignored so the env value can't inject arbitrary CSS. Overrides --dg-logo-height, --dg-logo-height-mobile and --dg-filetree-logo-height. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LYAomPqxuzVV25xjcqgGTs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
LOGO_HEIGHTenv var so the plugin's new "Logo size" setting can control how large the site logo renders.meta.jsvalidates and normalizes the value: a bare number becomes pixels (64→64px), simple CSS lengths (3rem,50%, …) pass through, and anything else is ignored so the env file can't inject arbitrary CSS.pageheader.njkemits a:rootoverride of--dg-logo-height,--dg-logo-height-mobileand--dg-filetree-logo-heightwhen set.Unset or invalid values leave the existing 40px default untouched. Verified with an eleventy build:
LOGO_HEIGHT=64renders--dg-logo-height:64pxin the built pages.Companion plugin PR: oleeskild/obsidian-digital-garden (Logo size setting + touched-keys env updates).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LYAomPqxuzVV25xjcqgGTs