This commit is contained in:
rustdesk
2025-08-12 13:46:51 +08:00
parent a4a1441699
commit 50da7e2902
18 changed files with 263 additions and 8 deletions

19
layouts/index.json Normal file
View File

@@ -0,0 +1,19 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections -}}
{
"title": "{{ site.Title }}",
"description": "{{ site.Params.description }}",
"url": "{{ site.BaseURL }}",
"language": "{{ site.Language.Lang }}",
"pages": [
{{- range $index, $page := $pages -}}
{{- if $index }},{{ end }}
{
"title": "{{ $page.Title }}",
"url": "{{ $page.Permalink }}",
"description": "{{ with $page.Description }}{{ . }}{{ else }}{{ $page.Summary }}{{ end }}",
"date": "{{ $page.Date.Format "2006-01-02T15:04:05Z07:00" }}",
"section": "{{ $page.Section }}"
}
{{- end -}}
]
}