diff options
Diffstat (limited to 'layouts/_partials/pages.html')
| -rw-r--r-- | layouts/_partials/pages.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/_partials/pages.html b/layouts/_partials/pages.html new file mode 100644 index 0000000..6a7dc16 --- /dev/null +++ b/layouts/_partials/pages.html @@ -0,0 +1,26 @@ +{{- /* +Renders a table of pages. + +@context {Page} . Current page. + +@example: {{ partial "page-list.html" .Pages }} +*/}} + +<table> + <thead> + <tr> + <th>Date</th> + <th>Title</th> + <th><a href="{{ partial "taxonomy-url.html" (dict "taxonomy" "tags" "site" .Site) }}">Tags</a></th> + </tr> + </thead> + <tbody> + {{- range .Pages }} + <tr> + <td>{{ partial "date.html" .Date -}}</td> + <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> + <td>{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}</td> + </tr> + {{- end }} + </tbody> +</table> |