Rename .Params.caption to .Params.pageTitle Front Matter param

This commit is contained in:
Serghei Iakovlev 2022-07-13 01:23:28 +02:00
parent 426446f77e
commit e94f38a2a6
No known key found for this signature in database
GPG key ID: C6AF1016BBDEA800
5 changed files with 5 additions and 4 deletions
CHANGELOG.md
exampleSite/content
layouts
_default
page
partials/page

View file

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rename partial for Google Site Tag tagging/analytics
framework from `layouts/partials/scripts.html` to `layouts/partials/seo/ga.html`
- Use Google Site Tag tagging/analytics framework on production mode only
- Rename `.Params.caption` to `.Params.pageTitle` Front Matter param
### Removed

View file

@ -1,6 +1,6 @@
---
title: About
caption: Hello!
pageTitle: Hello!
semanticType: about
---

View file

@ -3,7 +3,7 @@
<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang }} lang="{{ . }}"{{ end }}>
<header>
<h1 class="text-title">
{{ .Params.caption | default .Title }}
{{ .Params.pageTitle | default .Title }}
</h1>
<p class="byline">
{{ if in (slice "drama" "narrative" "poem") $postType }}

View file

@ -3,7 +3,7 @@
<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang }} lang="{{ . }}"{{ end }}>
<header>
<h1 class="text-title">
{{ .Params.caption | default .Title }}
{{ .Params.pageTitle | default .Title }}
</h1>
</header>

View file

@ -2,7 +2,7 @@
<article class="{{ partial "post-class.html" . }}" role="document" id="page-{{ .File.TranslationBaseName | lower }}"{{ with .Params.lang}} lang="{{ . }}"{{ end }}>
<header>
<h1 class="page-title">
{{ .Params.caption | default .Title }}
{{ .Params.pageTitle | default .Title }}
</h1>
</header>