Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'

This commit is contained in:
Bjørn Erik Pedersen
2023-07-29 11:17:28 +02:00
177 changed files with 1623 additions and 1556 deletions

View File

@@ -1,18 +1,18 @@
---
title: Local File Templates
title: Local file templates
description: Hugo's `readDir` and `readFile` functions make it easy to traverse your project's directory structure and write file contents to your templates.
categories: [templates]
keywords: [files,directories]
menu:
docs:
parent: templates
weight: 110
weight: 110
weight: 180
weight: 180
aliases: [/extras/localfiles/,/templates/local-files/]
toc: true
---
## Traverse Local Files
## Traverse local files
With Hugo's [`readDir`][readDir] and [`readFile`][readFile] template functions, you can traverse your website's files on your server.