Skip to content

Commit

Permalink
Enable display of page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Wasserka committed Sep 22, 2024
1 parent 12ccc5a commit 5774e80
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions layouts/partials/docs/inject/content-before.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- TODO: This is only needed on desktop -->
{{ if .Params.categories }}
<header class="article-category">
{{ range (.GetTerms "categories") }}
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
{{ .LinkTitle }}
</a>
{{ end }}
</header>
{{ end }}

<h1>{{ .Title }}</h1>

0 comments on commit 5774e80

Please sign in to comment.