Rename titleclass to title_class

master
Will Faught 2 years ago
parent 7319719c33
commit e1276cfd67

@ -284,7 +284,7 @@ link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the ti
paige:
description_class: h5 text-start # Page description class
math: true # Enable math typesetting with KaTeX
titleclass: display-1 fw-medium text-start # Page title class
title_class: display-1 fw-medium text-start # Page title class
toc: true # Show a table of contents if there are any headers
```

@ -1,5 +1,5 @@
{{ if .Title }}
{{ $class := .Params.paige.titleclass | default "display-5 fw-bold text-center" }}
{{ $class := .Params.paige.title_class | default "display-5 fw-bold text-center" }}
{{ $title := .Title | markdownify }}
<h1 class="{{ $class }}">{{ if .Params.link }}<a href="{{ .Params.link }}">{{ $title }}</a>{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}<a aria-label="Link to this section" class="paige-header-link" href="{{ .RelPermalink }}">#</a>{{ end }}</h1>

Loading…
Cancel
Save