Skip to content

Commit

Permalink
Merge pull request #15 from manueldeprada/main
Browse files Browse the repository at this point in the history
fix: error when post is plain text without titles
  • Loading branch information
oscarotero authored Jul 20, 2023
2 parents b9be82b + 79473f1 commit c52b14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/layouts/post.vto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bodyClass: body-post
{{ include "templates/post-details.vto" }}
</header>

{{ if toc.length > 1 || toc[0].children.length }}
{{ if toc.length > 1 || (toc[0] && toc[0].children.length) }}
<nav class="toc">
<h2>Table of contents</h2>
<ol>
Expand Down

0 comments on commit c52b14d

Please sign in to comment.