Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <r:page:next_sibling> & <r:page:previous_sibling> #4

Closed
adamjohnson opened this issue Aug 27, 2014 · 0 comments
Closed

Implement <r:page:next_sibling> & <r:page:previous_sibling> #4

adamjohnson opened this issue Aug 27, 2014 · 0 comments
Assignees

Comments

@adamjohnson
Copy link
Contributor

The projectme-v2 theme uses these tags in the story.html template. Here's the markup:

<ul class="story-arrows">
  <r:page:previous_sibling>
    <li><a class="story-arrow__previous" href="<r:page:url />"><span class="story-arrow__text"><r:page:name /></span> <img class="story-arrow__icon story-arrow__icon--previous" src="<r:image_url name="story-arrow__previous.svg" />" alt="Go to previous student" /></a></li>
  </r:page:previous_sibling>

  <r:page:next_sibling>
    <li><a class="story-arrow__next" href="<r:page:url />"><img class="story-arrow__icon story-arrow__icon--next" src="<r:image_url name="story-arrow__next.svg" />" alt="Go to previous student" /> <span class="story-arrow__text story-arrow__text--next"><r:page:name /></span></a></li>
  </r:page:next_sibling>
</ul>

Docs for these tags:

https://github.com/wvuweb/cleanslate-toolkit/wiki/r%3Apage%3Anext_sibling
and
https://github.com/wvuweb/cleanslate-toolkit/wiki/r%3Apage%3Anext_sibling

Honestly, hammer could almost just ignore them and output whatever markup they're wrapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants