Custom thumbnail archive?
Is there a way to create a specific page that only show the thumbnails of the photo posts? I've created a new file named thumbs.html with the following code:
<!DOCTYPE html>
<html>
{{> head}}
<body>
{{> header}}
<ul class="photos">
{{#entries}}
{{#thumbnail.large.url}}
<li>
<a href="{{{url}}}">{{#thumbnail.medium}}<img src="{{url}}" width="{{width}}" height="{{height}}">{{/thumbnail.medium}}</a>
</li>
{{/thumbnail.large.url}}
{{/entries}}
{{> footer}}
</ul>
</body>
</html>
But when I visit /thumbs.html or /thumbs I get an error that the page is not found. Am I creating the custom page the wrong way?
Thanks.
When you create a new template view, you also need to make an entry in your template's package.json file. Does the answer to the following question help: How to create a new template view?
I'm concerned that /thumbs.html doesn't work though... which makes me wonder if there's some other bug. If that's the case, please contact us with a link to your site and we'll investigate.
Answered 3 years ago ยท Edit answer