mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Update README.md
This commit is contained in:
parent
b9041b9d55
commit
455eb221ac
|
@ -68,7 +68,6 @@ Page templates are provided with the following information:
|
|||
|
||||
- `Title`: The title parsed from the first heading in the file
|
||||
- `Date`: The date parsed from the filename
|
||||
- `Path`: Relative path to the page
|
||||
- `Permalink`: Permalink to the page
|
||||
- `Content`: The contents of the page (excluding the title)
|
||||
|
||||
|
@ -99,7 +98,6 @@ This is some content.
|
|||
|
||||
Directory index templates are provided with the following information:
|
||||
|
||||
- `Path`: Relative path to the directory
|
||||
- `Permalink`: Permalink to the directory
|
||||
- `Pages`: The pages in this directory
|
||||
- `Directories`: The subdirectories of this directory
|
||||
|
@ -114,7 +112,7 @@ src/posts/post-1.gmi
|
|||
src/posts/post-2.gmi
|
||||
|
||||
$ cat templates/index.gmi
|
||||
{{ range .Pages }}=> .Permalink
|
||||
{{ range .Pages }}=> {{ .Permalink }}
|
||||
{{ end }}
|
||||
|
||||
$ cat dst/posts/index.gmi
|
||||
|
|
Loading…
Reference in a new issue