#wordpress 2018-12-06

2018-12-06 UTC
[grantcodes], [kevinmarks] and jgmac1106 joined the channel
#
GWG
[Khurt]: Can you add rel-feed to your main URL?
[jgmac1106], chrisaldrich, tbbrown, [tantek], AkyRhO, [grantcodes], [kevinmarks], jgmac1106 and [Khurt] joined the channel
#
[Khurt]
@GWG how do I do that?
#
GWG
How custom is your theme?
#
GWG
Maybe I should add it as a feature to the Indieweb plugin. It's about 4 lines of code
#
GWG
Or the feed plugin
#
GWG
But anyone who doesn't have their main feed on their homepage/h-card should be saying where the feed is.
[kevinmarks] joined the channel
#
jgmac1106
…[gwg]…or they expect people to infer the “post” button in their nav menu is the feed
#
GWG
This is for feed discovery
jeremych_ and Tincho1 joined the channel
#
jgmac1106
ahh makes sense
[jgmac1106], [tantek], tantek__, tbbrown and jackjamieson joined the channel
#
GWG
jackjamieson: I did another iteration for you
#
GWG
jgmac1106: You don't need a plugin to add rel-feed to a menu item in WordPress
#
jackjamieson
GWG: Thanks - I'll try it out today
#
GWG
This would apply to islandinthenet as well. But if you put feed into the Link Relationship box in the WordPress Menu customizer, that does it
#
GWG
jackjamieson: Would you be setting the follow option to true in the parse function?
#
jackjamieson
GWG: I think so, seems like that would be useful. If it slows down the response I might leave it disabled when previewing feeds (since the use is actually waiting for the response) but add it when actually aggregating. Will need to think on that a bit
#
GWG
That's why I didn't enable it by default
#
jackjamieson
Just tried setting follow to true, and got a php notice trying to parse your website
#
jackjamieson
Undefined index: scheme ... class-parse-this-mf2.php on line 406
#
GWG
That's interesting
#
GWG
I'm on lunch, but was looking at why chrisaldrich said the Washington Post wasn't working
#
GWG
It times out occasionally, but it works.
#
GWG
I'm not sure why. It notes if ! empty. I think I need a function that is isset & ! empty, which seems redundant
#
GWG
I think I need to fix my markup regardless.
#
GWG
But I'm not getting the error
#
jackjamieson
I'll test a bit further, maybe I made a mistake
#
GWG
But I'm moving my feed off my main page
#
GWG
I made a bunch of changes to accommodate it.
#
GWG
That's why the next Post Kinds will have a Kind Menu widget
#
jackjamieson
Oh, my mistake on that error - I was looking at the parse-this commit on Github, but forgot to actually update it on my server :/
#
GWG
I know I fixed that one.
#
jackjamieson
Yep, it's working now. I just got mixed up doing multiple things at once
#
GWG
Been there
#
GWG
Do you use my theme as well?
#
GWG
I did a bunch of fixes this week
#
GWG
Been jumping from theme to plugin to get integrations
#
GWG
The new h-card widget in the Indieweb plugin allows the rel me inside the h-card or separately now
#
GWG
Lots of convergence
#
jackjamieson
Nice, I'm checking that out now - looks handy
#
jackjamieson
Actually I've been neglecting my actual website lately because I've just been working on Yarns instead
tbbrown joined the channel
#
jackjamieson
GWG: I just tested parsing your site with follow = true vs. false. Took 9 seconds when true, 2 seconds when false. So I will leave it false for previews
#
jackjamieson
It might be possible to speed up, since I think it's fetching and parsing an author h-card for every post. In the case of a single-author site, this is redundant
jackjamieson joined the channel
#
GWG
jackjamieson, I intend to optimize more over time
#
GWG
Right now I know it fetches a lot more than needed
#
jackjamieson
GWG: Sounds good, I'll keep timing some operations as we iterate
#
GWG
I thought getting it working well was first before optimization
#
jackjamieson
Yes! I strongly agree
#
GWG
And next is comment presentation output for Semantic Linkbacks
#
GWG
I might need to change the argument from feed true to fetch single, feed, comment...
#
jackjamieson
That makes sense to me
#
jackjamieson
I'm completely delighted how easily parse-this works with Yarns, while still being so general purpose
jackjamieson and jgmac1106 joined the channel