Skip to content

Commit

Permalink
Merge pull request gethyas#516 from schnerring/simplify-heading-rende…
Browse files Browse the repository at this point in the history
…ring

Simplify heading rendering
  • Loading branch information
h-enk committed Oct 15, 2021
2 parents ded13a6 + 1c8bb88 commit faa7072
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file removed layouts/_default/_markup/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="anchor" aria-hidden="true">#</a></h{{ .Level }}>
4 changes: 2 additions & 2 deletions layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>{{ .Title }}</h1>
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
{{ partial "main/headline-hash.html" .Content }}
{{ .Content }}
{{ if .Site.Params.editPage -}}
{{ partial "main/edit-page.html" . }}
{{ end -}}
Expand All @@ -45,4 +45,4 @@ <h1>{{ .Title }}</h1>
-->
</main>
</div>
{{ end }}
{{ end }}
1 change: 0 additions & 1 deletion layouts/partials/main/headline-hash.html

This file was deleted.

0 comments on commit faa7072

Please sign in to comment.