diff --git a/mkdocs_exporter/formats/pdf/aggregator.py b/mkdocs_exporter/formats/pdf/aggregator.py index f9ab9a4..6f3001d 100644 --- a/mkdocs_exporter/formats/pdf/aggregator.py +++ b/mkdocs_exporter/formats/pdf/aggregator.py @@ -44,7 +44,9 @@ def set_pages(self, pages: list[Page]) -> Aggregator: elif covers == 'back': self._skip(page, ['front']) elif covers == 'limits': - if index == 0: + if len(self.pages) == 1: + pass + elif index == 0: self._skip(page, ['back']) elif index == (len(self.pages) - 1): self._skip(page, ['front'])