Files
2020-05-14 12:10:15 +04:00

21 lines
384 B
HTML

{{/*
GetArticles
Retrieve article or posts
@author @regisphilibert
@context Page (.)
@access public
@return Collection
- Page (.)
@example - Go Template
{{ $articles := partialCached "func/GetArticles" . "articles" }}
*/}}
{{ $articles := slice }}
{{ with where site.RegularPages "Type" "post" }}
{{ $articles = . }}
{{ end }}
{{ return $articles }}