feat: global thumbnail aspect ratio configuration

- Add thumbnailAspectRatio site parameter (default '1.5')
- Use decimal values instead of fractions for Hugo compatibility
- Sanitize user input to extract only numeric characters
- Apply to article cards, related cards, and term cards
- Update both source and compiled CSS

Closes #2839
This commit is contained in:
jin-li
2026-03-29 14:27:09 +02:00
parent faea1bb046
commit a308a86365
6 changed files with 22 additions and 7 deletions
+4 -2
View File
@@ -183,11 +183,13 @@ pre {
.thumbnail_card {
min-width: 300px;
height: 200px;
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
height: auto;
}
.thumbnail_card_related {
height: 150px;
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
height: auto;
}
.thumbnail {