Skip to content

Commit

Permalink
go for minimal <head>
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Jan 14, 2025
1 parent ba0dd86 commit 0e54e31
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions js/blogtini.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,23 +863,6 @@ function head_insert_titles(title, img) {
// document.getElementsByTagName('meta')['viewport']
// <meta name="description" content="SPA metadata is not so fun"/>

{
const e = document.createElement('title') // chexxx
e.textContent = title // xxx &gt; &lt;
document.head.appendChild(e)
}
{
const e = document.createElement('meta') // chexxx
e.setAttribute('name', 'twitter:title')
e.setAttribute('content', title) // xxx quote escape, etc.
document.head.appendChild(e)
}
{
const e = document.createElement('meta') // chexxx
e.setAttribute('property', 'og:title')
e.setAttribute('content', title) // xxx quote escape, etc.
document.head.appendChild(e)
}
if (img) {
const e = document.createElement('meta') // chexxx
e.setAttribute('property', 'og:image')
Expand Down

0 comments on commit 0e54e31

Please sign in to comment.