Fix: images for meta tags
This commit is contained in:
parent
873fc47844
commit
56333947e1
|
@ -26,10 +26,12 @@
|
||||||
{{ if isset(PageType) }}
|
{{ if isset(PageType) }}
|
||||||
|
|
||||||
{{ if PageType == "artwork" }}
|
{{ if PageType == "artwork" }}
|
||||||
<meta property="og:description" content="View this artwork by {{ Illust.User.Name }} on PixivFE.">
|
|
||||||
{{ if ! Illust.XRestrict }}
|
{{ if ! Illust.XRestrict }}
|
||||||
|
<meta property="og:description" content="View this artwork by {{ Illust.User.Name }} on PixivFE.">
|
||||||
<meta property="og:image" content="{{ Illust.Images[0].Large }}">
|
<meta property="og:image" content="{{ Illust.Images[0].Large }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
<meta property="og:description" content="View this (explicit) artwork by {{ Illust.User.Name }} on PixivFE.">
|
||||||
|
<meta property="og:image" content="{{ Illust.User.Avatar }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +47,7 @@
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<meta property="og:description" content="View this page on PixivFE. A privacy respecting frontend for Pixiv.">
|
<meta property="og:description" content="View this page on PixivFE. A privacy respecting frontend for Pixiv.">
|
||||||
<meta property="og:image" content="/assets/banner.jpg">
|
<meta property="og:image" content="{{ BaseURL }}/assets/banner.jpg">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue