Merge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'

This commit is contained in:
Bjørn Erik Pedersen
2019-03-26 18:41:36 +01:00
45 changed files with 2943 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
---
title: Local File Templates
linktitle: Local File Templates
description: Hugo's `readerDir` and `readFile` functions make it easy to traverse your project's directory structure and write file contents to your 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.
godocref: https://golang.org/pkg/os/#FileInfo
date: 2017-02-01
publishdate: 2017-02-01

View File

@@ -162,7 +162,7 @@ The default behavior of Hugo is to pluralize list titles; hence the inflection o
### Section Template
This list template has been modified slightly from a template originally used in [spf13.com](http://spf13.com/). It makes use of [partial templates][partials] for the chrome of the rendered page rather than using a [base template][base] The examples that follow also use the [content view templates][views] `li.html` or `summary.html`.
This list template has been modified slightly from a template originally used in [spf13.com](http://spf13.com/). It makes use of [partial templates][partials] for the chrome of the rendered page rather than using a [base template][base]. The examples that follow also use the [content view templates][views] `li.html` or `summary.html`.
{{< code file="layouts/section/posts.html" >}}
{{ partial "header.html" . }}