mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-28 05:34:13 -04:00
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.
This commit is contained in:
parent
975972e041
commit
575cc0ca8c
23 changed files with 115 additions and 115 deletions
|
@ -16,7 +16,7 @@
|
|||
{{- range $key, $value := .Data.Terms.Alphabetical }}
|
||||
{{- $name := .Name }}
|
||||
{{- $count := .Count }}
|
||||
{{- with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||||
{{- with site.GetPage (printf "/%s/%s" $type $name) }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue