1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 15:53:41 +00:00

docs: remove slug and url from command pages since they are no longer needed

This commit is contained in:
Nick Craig-Wood
2024-06-15 12:37:43 +01:00
parent c1c9e209f3
commit 0197e7f4e5
88 changed files with 0 additions and 180 deletions

View File

@@ -29,8 +29,6 @@ type frontmatter struct {
Date string
Title string
Description string
Slug string
URL string
Source string
Annotations map[string]string
}
@@ -38,8 +36,6 @@ type frontmatter struct {
var frontmatterTemplate = template.Must(template.New("frontmatter").Parse(`---
title: "{{ .Title }}"
description: "{{ .Description }}"
slug: {{ .Slug }}
url: {{ .URL }}
{{- range $key, $value := .Annotations }}
{{ $key }}: {{ $value }}
{{- end }}
@@ -112,8 +108,6 @@ rclone.org website.`,
Date: now,
Title: strings.ReplaceAll(base, "_", " "),
Description: commands[name].Short,
Slug: base,
URL: "/commands/" + strings.ToLower(base) + "/",
Source: strings.ReplaceAll(strings.ReplaceAll(base, "rclone", "cmd"), "_", "/") + "/",
Annotations: commands[name].Annotations,
}