{{/* This hashing function just calculate the number of pages and the lastmod time. */}} {{- $ctx := dict "Site" . }} {{- $pages := partialCached "search/functions/pages" $ctx .Language.Lang -}} {{- $hash := printf "total=%d" $pages.Len }} {{- $latest := first 1 $pages.ByLastmod.Reverse }} {{- with index $latest 0 }} {{- $hash = printf "%s&lastmod=%d" $hash .Lastmod.Unix }} {{- end }} {{- return ($hash | md5) }}