Skip to content

Commit

Permalink
website/layour: fix TOC title (#3176)
Browse files Browse the repository at this point in the history
The correct term is `Table of Contents` in plural. This commit fixes the
title for the TOC.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
  • Loading branch information
squat authored Sep 16, 2020
1 parent e3ac468 commit 5be016a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="DocSearch-content col-12 col-lg-9">
{{ partial "versioning/banner.html" . }}
{{ if or (eq .Params.toc true) (and (gt .WordCount 400) (ne .Params.toc false)) }}
<h1>Table of Content</h1>
<h1>Table of Contents</h1>
{{ .TableOfContents }}
{{ end }}
{{ $content := replace .Content "<table>" "<table class='table table-striped'>" }}
Expand All @@ -16,4 +16,4 @@ <h1>Table of Content</h1>
</div>
</div>
</div>
{{ end }}
{{ end }}

0 comments on commit 5be016a

Please sign in to comment.