Skip to content

Quality-of-life fixes 20260509#110

Merged
MingcongBai merged 8 commits into
masterfrom
qol-fixes-20260509
May 9, 2026
Merged

Quality-of-life fixes 20260509#110
MingcongBai merged 8 commits into
masterfrom
qol-fixes-20260509

Conversation

@Cyanoxygen

@Cyanoxygen Cyanoxygen commented May 9, 2026

Copy link
Copy Markdown
Member
  • Allow custom titles in cards.
  • Remove predefined color for <pre> and <pre> -> <code>.
  • Remove hard-coded sorting criteria in section template (so a custom order can be used by adding a sorting weight or a creation date to the pages in the section.
  • Limit the width of the images to the body width (40rem).
  • Add styling of the <kbd> element that mimics a key cap.
image image
image image
image image
Light theme Dark theme

Cyanoxygen added 8 commits May 9, 2026 10:42
The <pre> element should have a background to emphasize the element from
the background.
Let the highlighting themes to handle this job.
This does not affect existing cards (omitting `title' is allowed):

{% card(type="warning") %}
Writing a person's name with a red pen is considered disrespectful.
{% end %}

To use an alternative title, specify a title in the `card()` template
call:

{% card(type="warning", title="ACHTUNG") %}
Rauchen ist hier verboten.
{% end %}
@MingcongBai MingcongBai merged commit 4cc67f1 into master May 9, 2026
3 of 7 checks passed
@Cyanoxygen

Copy link
Copy Markdown
Member Author

@szclsya Please update the Zola version in the Netlify configuration for PR previews.

@szclsya

szclsya commented May 10, 2026

Copy link
Copy Markdown
Collaborator

@szclsya Please update the Zola version in the Netlify configuration for PR previews.

Bumped to 0.22.1.

@Cyanoxygen

Copy link
Copy Markdown
Member Author

@szclsya Please update the Zola version in the Netlify configuration for PR previews.

Bumped to 0.22.1.

Thanks!

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.

3 participants