diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-03-27 18:44:06 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-03-27 18:44:06 +0530 |
| commit | 575cc0ca8c4e5904c7ae77e76db812c52e5f8ed1 (patch) | |
| tree | 29b83f765f6ccae88651886167681b4afdb71069 /layouts/partials/home_info.html | |
| parent | 975972e04181007c61302054d18735dc440a0586 (diff) | |
Use `site` function instead of `.Site` or `$.Site`
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
Diffstat (limited to 'layouts/partials/home_info.html')
| -rw-r--r-- | layouts/partials/home_info.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index 4db55d7..eb55364 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -1,4 +1,4 @@ -{{- with $.Site.Params.homeInfoParams }} +{{- with site.Params.homeInfoParams }} <article class="first-entry home-info"> <header class="entry-header"> <h1>{{ .Title | markdownify }}</h1> @@ -7,7 +7,7 @@ <p>{{ .Content | markdownify }}</p> </section> <footer class="entry-footer"> - {{ partial "social_icons.html" $.Site.Params.socialIcons }} + {{ partial "social_icons.html" site.Params.socialIcons }} </footer> </article> {{- end -}} |
