Your sites Log in Sign up Menu

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.


2 years ago, 1 replies   Improve this question

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 2 years ago · Improve this answer