Skip to content

Commit

Permalink
Remove the "local file templates" page
Browse files Browse the repository at this point in the history
This page is about using os.ReadDir and os.ReadFile, both of which have
a dedicated page in the functions section of the documentation.

Additionally, these functions are rarely needed in a modern Hugo site.
  • Loading branch information
jmooring committed Feb 3, 2024
1 parent 9395743 commit fd308ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions content/en/functions/os/ReadDir.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ news → true
Note that `os.ReadDir` is not recursive.

Details of the `FileInfo` structure are available in the [Go documentation](https://pkg.go.dev/io/fs#FileInfo).

For more information on using `readDir` and `readFile` in your templates, see [Local File Templates](/templates/files).
2 changes: 0 additions & 2 deletions content/en/functions/os/ReadFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ This is **bold** text.
```

Note that `os.ReadFile` returns raw (uninterpreted) content.

For more information on using `readDir` and `readFile` in your templates, see [Local File Templates](/templates/files).
56 changes: 0 additions & 56 deletions content/en/templates/files.md

This file was deleted.

0 comments on commit fd308ff

Please sign in to comment.