mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Fix meta tags
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user