wvuweb / hammer

A tool for CleanSlate theme development
https://cleanslate.wvu.edu
4 stars 2 forks source link

Pages key outputs the same page ID for each item in the loop #58

Closed adamjohnson closed 5 years ago

adamjohnson commented 5 years ago

Note the page id always is 1 in this screenshot. It shouldn't be.

Steps to reproduce:

  1. Clone graduate-admissions
  2. Start hammer and go to the profile_index.html template.
  3. Open the profile_index.html template in your code editor and add <r:page:id /> to the loop (perhaps in an <h1>).

Results:

The output is always 1 from <r:page:id />

Expected Results

The output should use the corresponding page ID from the pages key in mock_data.yml.

Environment

I'm on the dev branch of hammer, commit: 520d1c6f80c5b9735d018eb5d2b95862720d10c7

adamjohnson commented 5 years ago

Curiously, <r:article:id /> works in the blogs context.