Skip to content

Commit

Permalink
fix: duplicated PDF toc name
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Apr 24, 2023
1 parent be41c20 commit 1dbed24
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions templates/pdf.default/partials/toc.li.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

{{#items}}
<li>
{{# href }}
<a class="normal" href="{{ href }}">{{ name }}</a>
{{/ href }}
{{^ href }}
{{#href}}
<a class="normal" href="{{href}}">{{ name }}</a>
{{/href}}
{{^href}}
<a class="normal slidedown" href="javascript:void(0)">{{ name }}</a>
{{/ href }}
{{# items.0 }}
{{/href}}
{{#items.0}}
<ul class="tocLevel{{level}}">
{{/ items.0 }}
{{/items.0}}
{{>partials/toc.li}}
{{# items.0 }}
{{#items.0}}
</ul>
{{/ items.0 }}
{{/items.0}}
</li>
{{/items}}

0 comments on commit 1dbed24

Please sign in to comment.