mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-20 23:22:00 +01:00
Better head configuration
This commit is contained in:
parent
71ba3a80c9
commit
7e730a7334
@ -14,7 +14,6 @@ const head: HeadConfig[] = [
|
||||
["meta", { name: "twitter:card", content: "summary" }],
|
||||
["meta", { name: "twitter:site", content: "@tachiyomiorg" }],
|
||||
["meta", { name: "twitter:creator", content: "@tachiyomiorg" }],
|
||||
["meta", { name: "twitter:image", content: "/img/logo.png" }],
|
||||
|
||||
["meta", { property: "og:site_name", content: "Tachiyomi" }],
|
||||
[
|
||||
|
@ -16,7 +16,11 @@ const generateMeta = (context: TransformContext, hostname: string) => {
|
||||
if (pageData.frontmatter.type) {
|
||||
head.push(["meta", { property: "og:type", content: pageData.frontmatter.type }]);
|
||||
}
|
||||
if (pageData.frontmatter.title) {
|
||||
if (pageData.frontmatter.customMetaTitle) {
|
||||
head.push(["meta", { property: "og:title", content: pageData.frontmatter.customMetaTitle }]);
|
||||
head.push(["meta", { name: "twitter:title", content: pageData.frontmatter.customMetaTitle }]);
|
||||
head.push(["meta", { property: "og:site_name", content: "" }]);
|
||||
} else {
|
||||
head.push(["meta", { property: "og:title", content: pageData.frontmatter.title }]);
|
||||
head.push(["meta", { name: "twitter:title", content: pageData.frontmatter.title }]);
|
||||
}
|
||||
|
@ -18,6 +18,8 @@ hero:
|
||||
text: Download
|
||||
link: /download
|
||||
|
||||
customMetaTitle: Tachiyomi
|
||||
|
||||
features:
|
||||
- title: Tracking
|
||||
details: Automatically keep track of your series with AniList, Bangumi, Kitsu, MangaUpdates, MyAnimeList, Shikimori, and more.
|
||||
|
Loading…
Reference in New Issue
Block a user