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

[Bug] weblog.lol: titleless post pseudo-title generation #630

Open
bixfrankonis opened this issue Mar 7, 2023 · 7 comments
Open

[Bug] weblog.lol: titleless post pseudo-title generation #630

bixfrankonis opened this issue Mar 7, 2023 · 7 comments
Assignees
Labels
bug Something doesn’t work properly weblog About weblogs

Comments

@bixfrankonis
Copy link

bixfrankonis commented Mar 7, 2023

Bug Description

Not sure if this is a bug, per se, or a request to change the behavior. The titleless post process seems to be generating its pseudo-titles and slugs just from the first paragraph of the post body. Personally, I think the function should continue until it hits the value of the Titleless title length: setting.

ETA: This might be a different bug. The posts I'm seeing this happen on are posts where my first sentence is a single word followed by a colon. And they are being treated as if the word and colon are the title, because I have them in my Excerpt: front matter.

For example:

Date: 2021/01/25 7:56 pm
Excerpt: This: “Rates of trauma exposure and PTSD symptomatology were significantly higher in the ASD group, compared to the TD group, with deficits in working memory and everyday memory mediating this association.“
Tags: mediocreautistic.tumblr.com

Steps to Reproduce

Post a titleless blog post with a first paragraph of just one word, followed by a blockquote, get a pseudo-title and slug of one word.

@bixfrankonis bixfrankonis added the bug Something doesn’t work properly label Mar 7, 2023
@bixfrankonis
Copy link
Author

bixfrankonis commented Mar 7, 2023

Edited OP because the bug here might be different than originally described.

@newbold newbold self-assigned this Mar 7, 2023
@newbold newbold added the weblog About weblogs label Mar 7, 2023
@newbold
Copy link
Member

newbold commented Mar 7, 2023

I think I have it where it should be now, but please let me know how things look on your end. Prior to the adjustment just now, I had it set to only look at the first paragraph for some reason. I updated this to factor in the entire post, and I think this is providing the ideal results — but let me know what you think!

@bixfrankonis
Copy link
Author

It is working, yep. Thanks. One stray bug: it's smooshing the first and second words together. You can see that in the slug here.

@bixfrankonis
Copy link
Author

Oh wait. Weirder bug. See the tag page. I am not sure what's happening there, really.

@newbold
Copy link
Member

newbold commented Mar 9, 2023

I think this is finally sorted out the way it should be. Let me know if you’re still seeing anything weird, though!

@bixfrankonis
Copy link
Author

bixfrankonis commented Mar 9, 2023

Only remaining weird thing (autocorrect: word thigh) is the > for blockquote Markdown appears in the pseudo-title. Scroll to "This:" to see what I mean.

@bixfrankonis
Copy link
Author

Doh. Scratch that. Rebuild got rid of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn’t work properly weblog About weblogs
Development

No branches or pull requests

2 participants