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

Apply Hfeed to Singular Posts Only #743

Closed
wants to merge 1 commit into from
Closed

Apply Hfeed to Singular Posts Only #743

wants to merge 1 commit into from

Conversation

dshanske
Copy link

@dshanske dshanske commented May 9, 2015

Addresses #740 by applying hfeed to the body only on archive and index pages.

@grappler
Copy link
Collaborator

grappler commented May 9, 2015

@dshanske You should use the WordPress coding standards. https://make.wordpress.org/core/handbook/coding-standards/php/

@dshanske
Copy link
Author

dshanske commented May 9, 2015

Assuming it was the tabbing. It has been said I am tab challenged. Expandtabs was set on vi. It looked the same from my end till I saw it on github.

@grappler
Copy link
Collaborator

grappler commented May 9, 2015

The tabs and also the spacing in if (!is_singular() ) {. I think you also missed a tab before the comment. Once you are able to make the changes you should squash the commits together. https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit

Tabs Fixed to Coding Standards

Fix Formatting of Conditional
@dshanske
Copy link
Author

dshanske commented May 9, 2015

Think I fixed everything.

@obenland
Copy link
Member

obenland commented May 9, 2015

We probably need to be more restrictive. hfeed should only be added if it's a list of posts.

@dshanske
Copy link
Author

dshanske commented May 9, 2015

hfeed is supposed to be a list of hentrys, hentrys being datestamped content. WordPress unfortunately, puts hentry on everything...which is another pet-peeve of mine.

But are you suggesting is_single, or something broader?

@obenland
Copy link
Member

But are you suggesting is_single, or something broader?

I'm suggesting something more limited actually, that would only apply to screens with lists of date-stamped posts.

@dshanske
Copy link
Author

What's the rationale for that? A use case for hfeed is that a page of hentrys identified with an hfeed is a substitute for atom or rss that uses the existing html page. What you describe is the equivalent of an excerpt feed.

@dshanske
Copy link
Author

The official definition of hfeed is a collection of hentrys. Therefore, it would apply on any page that had multiple hentrys.

@obenland
Copy link
Member

Therefore, it would apply on any page that had multiple hentrys.

Agreed.

@dshanske
Copy link
Author

dshanske commented Sep 7, 2015

Any movement on this?

@davidakennedy
Copy link
Contributor

We addressed here: #820 Looks like we didn't realize we already an earlier PR. Closing this out.

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

Successfully merging this pull request may close these issues.

5 participants