nipafx / nipafx.dev

My website
https://nipafx.dev
12 stars 5 forks source link

Remove HTML tags from page titles #115

Closed nipafx closed 3 years ago

nipafx commented 3 years ago

Article titles can contain Markdown, but the resulting HTML tags should not show up in page titles (like the do in this post - note the tab's title).

Depending on how I implemented it, removing the HTML tags could be similar to how it was done for the article descriptions on the landing page.

nipafx commented 3 years ago

Turns out, the article descriptions on the landing page still contain HTML tags - weird, I thought I removed that. Anyways, a deft replace is all that is needed here. For now, I just remove <code> because so far that's the only HTML tag I ever use in headers and description.

This change prompted me to check all intro attributes in Markdown frontmatter to see whether they can be removed because they're just the description without code tags. That was less common than expected...