Rename .Params.caption
to .Params.pageTitle
Front Matter param
This commit is contained in:
parent
426446f77e
commit
e94f38a2a6
5 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
2
exampleSite/content/about.md
vendored
2
exampleSite/content/about.md
vendored
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: About
|
||||
caption: Hello!
|
||||
pageTitle: Hello!
|
||||
semanticType: about
|
||||
---
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue