You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
layouts/_default/taxonomy.html (to list the posts after selecting a tag)
layouts/blog/list.html (to list the blog posts)
The idea is to add a config variable params.listMode where you can set to grid when you want to get the grid behaviour or just don't set anything to get the default behaviour of list.
The code on the template should be something like this:
{{ range .Paginator.Pages }}
{{ if eq .Site.Params.listMode "grid" }}
<!-- grid code goes here -->
{{ else }}
<article><h2class="title"><ahref="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "publish" . }}
<imgclass="list-image" src="{{ index .Params.images 0 | safeURL }}" alt="{{ .Title }}" title="{{ .Title }}" />
{{ .Summary }}
</article><hr>
{{ end }}
{{ end }}
Currently, the theme has only a list display mode for the posts it would be nice to have another view modes like grid.
The text was updated successfully, but these errors were encountered: