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

refactor: Make title.html partial more readable, fix title for taxonomy pages #187

Merged
merged 2 commits into from
Jun 7, 2020

Conversation

palant
Copy link
Collaborator

@palant palant commented Jun 3, 2020

As mentioned in #183 (comment), I renamed the variables to make the logic more clear. I also fixed the title for taxonomy pages (#183 introduced a bug, making it "security: security" instead of "Categories: security") and removed unnecessary code (massaging the title for regular pages no longer necessary).

Finally, I added a "BREAKING CHANGE" note to this commit because #183 didn't. I checked the output for my blog, there are lots of changes, mostly due to the typographer extension now doing its job on the titles. In my case these changes all seem unproblematic.

@palant
Copy link
Collaborator Author

palant commented Jun 3, 2020

I noticed another oversight: search index wasn't adjusted, so it was using unprocessed titles. So in search results you would see unprocessed Markdown code.

While at it, I also applied htmlUnescape on subtitles and descriptions in the search index as plainify alone isn't sufficient.

@palant palant requested a review from reuixiy June 4, 2020 11:44
@imfing
Copy link

imfing commented Jun 5, 2020

@reuixiy Please merge this PR. Titles for taxonomy pages are broken
image

@palant
Copy link
Collaborator Author

palant commented Jun 5, 2020

While at it, I also applied htmlUnescape on subtitles and descriptions in the search index as plainify alone isn't sufficient.

Actually, there are more issues here - fixed them all in #190.

@palant palant merged commit ea09a86 into master Jun 7, 2020
@palant palant deleted the fix-title-partial branch June 7, 2020 10:37
ulmefors pushed a commit to ulmefors/hugo-theme-meme that referenced this pull request Nov 22, 2020
…my pages (reuixiy#187)

* refactor: Make title.html partial more readable, fix title for taxonomy pages

* fix: Search index does not respect Markdown in page titles

BREAKING CHANGE: Markdown in page titles will be processed now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants