function getSelectedAttributes()

in src/helpers/pages-blog.js [23:33]


function getSelectedAttributes (page) {
  const contents = page.contents.toString()
  // filter what we need
  // this is overkill but needed for live site.
  return {
    filtredrevdate: page.attributes.revdate,
    filtredcontent: blogcontent(contents),
    title: page.title,
    url: page.url,
  }
}