pages/_layouts
Dominik Fuchß f521c0ae5c
Fix: bibliography month persists to subsequent entries without month (#3391)
Fixes #3386 (the part about the wrong months; the other part (layouting
of bibtex) is fixed in #3387)

## Summary
- Fixes incorrect month shown for bibliography entries that do not
specify a `month` in BibTeX.
- Ensures `month`/`year` do not persist between entries in
`_layouts/bib.liquid`.

## Root Cause
- In Liquid, captured variables persist across iterations if not
reinitialized.
- `entrymonth` and `entryyear` were only set when
`entry.month`/`entry.year` existed, causing values from a previous entry
to leak into the next one when those fields were missing.

## Changes
- Reinitialize date-related variables per entry before conditional
captures:

## Behavior
- Before: Entries without a `month` could display the previous entry's
month.
- After: Entries without a `month` display only the `year`; entries with
a `month` display the correct month and year.


<img width="1956" height="918" alt="image"
src="https://github.com/user-attachments/assets/7a9682e7-55ab-43b7-8f82-f638d14ce08e"
/>
2026-01-02 19:56:18 -03:00
..
about.liquid Moved specific information from config to about (#2985) 2025-01-27 17:04:24 -03:00
archive.liquid Digital Bookshelf V2 (#2866) 2025-02-28 13:57:36 -03:00
bib.liquid Fix: bibliography month persists to subsequent entries without month (#3391) 2026-01-02 19:56:18 -03:00
book-review.liquid Digital Bookshelf V2 (#2866) 2025-02-28 13:57:36 -03:00
book-shelf.liquid Digital Bookshelf V2 (#2866) 2025-02-28 13:57:36 -03:00
cv.liquid Fix resume custom reference link bug (#2941) 2025-01-14 11:39:28 -03:00
default.liquid Replaced jekyll-minifier that uses uglifier by terser (#2571) 2024-12-23 14:00:58 -03:00
distill.liquid Refactor TOC conditionals (#3358) 2025-11-21 18:18:05 -03:00
none.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
page.liquid Support _styles in page layout as in post and distill (#2694) 2024-09-13 12:12:54 -03:00
post.liquid Digital Bookshelf V2 (#2866) 2025-02-28 13:57:36 -03:00
profiles.liquid Standardized spaces for liquid tags (#2802) 2024-10-23 12:04:00 -03:00