diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ae89782..f1fd111 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,13 @@ {{ define "main" }} - <h2> - {{ replace .Title "-" " " }} archives - </h2> - <h3>Articles</h3> - {{ range .Data.Pages }} - {{ partial "partials/article_list_item.html" . }} - {{ end }} + {{ if in .Page.Params.Category "blog" }} + {{ partial "partials/blog_index.html" . }} + {{ else }} + + <h2>Articles</h2> + {{ range .Data.Pages }} + {{ partial "partials/article_list_item.html" . }} + {{ end }} + {{ end }} {{ end }} |