Skip to content

Fix btn-phone rendering when phone is empty (refs #14) - #15

Open
porcow wants to merge 1 commit into
lesnolie:mainfrom
porcow:fix-issue-14-btn-phone-render
Open

Fix btn-phone rendering when phone is empty (refs #14)#15
porcow wants to merge 1 commit into
lesnolie:mainfrom
porcow:fix-issue-14-btn-phone-render

Conversation

@porcow

@porcow porcow commented Jan 4, 2026

Copy link
Copy Markdown

Fixes #14

Title
Fix phone button rendering when no phone is configured

What

  • Render the “直接打电话” button only when phone is present
  • Prevent empty tel: links in the main page action area

Why

How

  • Wrap the phone anchor in a conditional template so it’s omitted when phone is falsy

Testing

  • Not run (manual verification recommended)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The "btn-phone" button should only be rendered when phone is defined

1 participant