Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Can’t evaluate field Related in type hugolib.Pages #70

Open
lgallen opened this issue Feb 27, 2018 · 3 comments
Open

Can’t evaluate field Related in type hugolib.Pages #70

lgallen opened this issue Feb 27, 2018 · 3 comments

Comments

@lgallen
Copy link

lgallen commented Feb 27, 2018

- Do you want to request a feature or report a bug?
Bug report

- What is the current behavior?
When .Related is called, as in .Site.RegularPages.Related, the message "Can’t evaluate field Related in type hugolib.Pages" The same site does not return an error when built with hugulp.

- If the current behavior is a bug, please provide the steps to reproduce.

- What is the expected behavior?
Should see a list of related posts generated at the bottom of each blog post.

- Please mention your node.js, NPM, Hugo and operating system version.

  • Node v8.9.1
  • npm: '5.5.1'
  • Hugo Static Site Generator v0.31.1
  • Ubuntu 16.04.3 LTS
@erquhart
Copy link
Contributor

I believe bep was right when you asked this on the Hugo forum - you're calling .Related on a list of pages rather than an individual Page.

@erquhart
Copy link
Contributor

@erquhart erquhart reopened this Oct 30, 2018
@lgallen
Copy link
Author

lgallen commented Oct 31, 2018

I have had no problems running the exact same code with base Hugo or with Hugulp. The problem has been unique to Victor Hugo.

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

No branches or pull requests

2 participants