Skip to content

Product: First and last products should have larger adjacent images #6

@domyen

Description

@domyen

If you navigate to the first and last products in an index, their adjacent products in the index (the ones at the very bottom of the page) in this case the single adjacent product should use the larger sized image and be wider.

We solve this in the blog with php logic that reads like this:

if there is a previous post AND a next post
  show previous and next post
else
  if there is a previous post
    show previous post
  else
    show next post
  endif
endif

What is the logic for handlebars?

Screenshot of first product in index' adjacent post:
screenshot 2015-01-31 12 45 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions