-
Notifications
You must be signed in to change notification settings - Fork 152
Use html_url from Pages endpoint (behind preview env flag) #60
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
Conversation
|
@parkr having a little trouble following the diff, due to noise. To confirm, it should use the API value for all fields (url, scheme, domain, etc.), and fall back to its own calculation, if the API isn't available, right? |
|
|
||
| def repo_pages_info | ||
| @repo_pages_info ||= (Value.new(proc { |c| c.pages(nwo) }).render || Hash.new) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benbalter this is key.
It uses the API value for all fields (taking the |
|
Thanks for the clarification. Makes sense to me. |
|
@benbalter Confirmed that the current code is opt-in via |
|
@jekyllbot: merge +minor |
Adds a
RepositoryCompatclass which has a fallback#pages_urlthatRepository#pages_urluses in case it doesn't get the/pagesinfo./cc @jekyll/gh-pages for review.