mirror of
https://github.com/ryan4yin/nixos-and-flakes-book
synced 2024-11-23 04:33:08 +00:00
fix: headline in JSON-LD
This commit is contained in:
parent
f8001de437
commit
ed2c6bfb3f
1 changed files with 1 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
|||
import { generateSitemap as sitemap } from "sitemap-ts";
|
||||
import { PageData, defineConfig } from "vitepress";
|
||||
|
||||
const links = [];
|
||||
|
||||
function getJSONLD(pageData: PageData) {
|
||||
if (pageData.relativePath === "index.md") {
|
||||
return `{
|
||||
|
@ -30,7 +28,7 @@ function getJSONLD(pageData: PageData) {
|
|||
return `{
|
||||
"@context":"http://schema.org",
|
||||
"@type":"TechArticle",
|
||||
"headline":"NixOS & Flakes Book",
|
||||
"headline":"${pageData.title} | NixOS & Flakes Book",
|
||||
"inLanguage":"${lang}",
|
||||
"mainEntityOfPage":{
|
||||
"@type":"WebPage",
|
||||
|
|
Loading…
Reference in a new issue