Rename titleclass to title_class
This commit is contained in:
@@ -284,7 +284,7 @@ link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the ti
|
|||||||
paige:
|
paige:
|
||||||
description_class: h5 text-start # Page description class
|
description_class: h5 text-start # Page description class
|
||||||
math: true # Enable math typesetting with KaTeX
|
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
|
toc: true # Show a table of contents if there are any headers
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ if .Title }}
|
{{ 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 }}
|
{{ $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>
|
<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>
|
||||||
|
Reference in New Issue
Block a user