Update README.md

This commit is contained in:
adnano 2020-09-29 12:48:50 -04:00
parent b9041b9d55
commit 455eb221ac

View file

@ -68,7 +68,6 @@ Page templates are provided with the following information:
- `Title`: The title parsed from the first heading in the file - `Title`: The title parsed from the first heading in the file
- `Date`: The date parsed from the filename - `Date`: The date parsed from the filename
- `Path`: Relative path to the page
- `Permalink`: Permalink to the page - `Permalink`: Permalink to the page
- `Content`: The contents of the page (excluding the title) - `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: Directory index templates are provided with the following information:
- `Path`: Relative path to the directory
- `Permalink`: Permalink to the directory - `Permalink`: Permalink to the directory
- `Pages`: The pages in this directory - `Pages`: The pages in this directory
- `Directories`: The subdirectories of this directory - `Directories`: The subdirectories of this directory
@ -114,7 +112,7 @@ src/posts/post-1.gmi
src/posts/post-2.gmi src/posts/post-2.gmi
$ cat templates/index.gmi $ cat templates/index.gmi
{{ range .Pages }}=> .Permalink {{ range .Pages }}=> {{ .Permalink }}
{{ end }} {{ end }}
$ cat dst/posts/index.gmi $ cat dst/posts/index.gmi