fix(convert): blank web page when converting multiple slides into HTML (#497)

* fix(convert): Blank web page when converting multiple slides into HTML

* chore(docs): add changelog

* Fix typo
This commit is contained in:
Si manglam
2024-12-04 19:25:34 +08:00
committed by GitHub
parent 3b62e6b788
commit 628c8da832
3 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
and `av<14`, as their syntax differ, but the former doesn't
provide binary wheels for Python 3.9.
[#494](https://github.com/jeertmans/manim-slides/pull/494)
- Fixed blank web page when converting multiple slides into HTML.
[#497](https://github.com/jeertmans/manim-slides/pull/497)
(v5.1.9)=
## [v5.1.9](https://github.com/jeertmans/manim-slides/compare/v5.1.8...v5.1.9)

View File

@ -453,6 +453,7 @@ class RevealJS(Converter):
get_duration_ms=get_duration_ms,
has_notes=has_notes,
env=os.environ,
prefix=prefix if not self.data_uri else None,
**options,
)

View File

@ -25,7 +25,7 @@
{%- if data_uri -%}
{% set file = file_to_data_uri(slide_config.file) %}
{%- else -%}
{% set file = assets_dir / slide_config.file.name %}
{% set file = assets_dir / (prefix(outer_loop.index0) + slide_config.file.name) %}
{%- endif -%}
<section
data-background-size={{ background_size }}