forked from laurens/fediversity_website
Niet alleen nieuwe pagina's aan IndexNow toevoegen, maar ook gewijzigde pagina's
This commit is contained in:
parent
72cb885fd9
commit
242269e338
|
@ -5,7 +5,7 @@
|
||||||
{{ $index_time := (time now).AddDate 0 0 -1 }}
|
{{ $index_time := (time now).AddDate 0 0 -1 }}
|
||||||
"urlList": [
|
"urlList": [
|
||||||
{{- range .Site.RegularPages -}}
|
{{- range .Site.RegularPages -}}
|
||||||
{{ if ge (time .Date) $index_time }}"{{ .Permalink }}",{{ end }}
|
{{ if ge (time .Lastmod) $index_time }}"{{ .Permalink }}",{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue