Fix meta tags

This commit is contained in:
VnPower
2023-08-19 19:56:16 +07:00
parent 2e2155da70
commit be9204e22e
+4 -6
View File
@@ -19,23 +19,21 @@
<meta property="og:title" content="{{ title }}">
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ FullURL }}">
<meta name="twitter:card" content="summary_large_image">
{{ if isset(PageType) }}
{{ if PageType == "artwork" }}
{{ if Illust.XRestrict }}
<meta property="og:description" content="(Explicit) View this artwork on PixivFE.">
{{ else if Illust.SanityLevel == 6 }}
<meta property="og:description" content="(Sensitive) View this artwork on PixivFE.">
{{ else }}
<meta property="og:description" content="(Safe) View this artwork on PixivFE.">
<meta property="og:image" content="{{ Illust.Images[0].Original }}">
<meta property="og:description" content="View this artwork on PixivFE.">
{{ end }}
{{ else if PageType == "user" }}
<meta property="og:description" content="View this user's profile on PixivFE.">
{{ else }}
<meta property="og:description" content="View this page on PixivFE.">
{{ end }}
{{ else }}