Skip to content

Commit 8c3218d

Browse files
committed
feat(seo): fix jsonld rendering unwanted html comments
Fix typo in article
1 parent e502150 commit 8c3218d

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/assets/articles/2026-05-04/2026-04-05.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ At the same time NVIDIA had a reported gross margin of [73% in 2026 GAAP](https:
209209

210210
The strategy is similar to the gold rush motto of selling shovels instead of gold.
211211

212-
Since there is and was never unbounded exponential growth, this will stagnate at some point, by a decreased demand for chips.
212+
Since there is not and was never unbounded exponential growth, this will stagnate at some point, by a decreased demand for chips.
213213

214214
As soon as this happens, NVIDIA will try to secure their margin by increasing their prices, effectively surging the costs for the compute of the tokens used by the *"AI industry"*.
215215

src/components/ot-article.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ export class OtArticle extends LitElement {
119119
: ""
120120
}
121121
<ot-share-links .slug=${article.slug} .title=${article.title}></ot-share-links>
122-
<script type="application/ld+json">
123-
${jsonLd}
124-
</script>
122+
${unsafeHTML(`<script type="application/ld+json">${jsonLd}</script>`)}
125123
<article class="prose">${unsafeHTML(this.sanitizedHtml)}</article>
126124
</section>
127125
`;

src/components/ot-blog.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { html, LitElement } from "lit";
22
import { customElement } from "lit/decorators.js";
3+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
34
import { buildBlogMetaItems } from "../utils/article-meta.js";
45
import { getArticles } from "../utils/articles.js";
56
import { base, handleInternalNav, hrefForArticle } from "../utils/router.js";
@@ -19,9 +20,7 @@ export class OtBlog extends LitElement {
1920
return html`
2021
<section class="wrap">
2122
<h1 class="title">Unpopular Opinions</h1>
22-
<script type="application/ld+json">
23-
${websiteJsonLd}
24-
</script>
23+
${unsafeHTML(`<script type="application/ld+json">${websiteJsonLd}</script>`)}
2524
${
2625
articles.length === 0
2726
? html`<p class="empty">No articles yet</p>`

0 commit comments

Comments
 (0)