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

@ -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 }}