Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
🐛 fix(custom): 添加seo优化
master1lan committed Mar 3, 2023
1 parent 90a2c46 commit 4a02535
Showing 5 changed files with 569 additions and 587 deletions.
1 change: 1 addition & 0 deletions index.html
@@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8" />
<meta name="description" content="eoefans是eoe组合的二创展示平台,你可以在这里找到最新、最潮、最佳的eoe二创作品,并可以根据多种条件搜索想看的二创作品。" />
<meta name="referrer" content="no-referrer" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="renderer" content="webkit" />
1,149 changes: 563 additions & 586 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/components/image/index.tsx
@@ -78,8 +78,10 @@ export function ImageBasic({
observer,
callback,
children,
title,
...resProps
}: ImageProps & {
title: string;
children?: ReactElement;
[k: string]: any;
}) {
@@ -88,7 +90,7 @@ export function ImageBasic({
<InView>
{({ inView, ref, entry }) => (
<BorderDiv ref={ref} className={styles.imgWrapper}>
<img src={url} alt='' loading='lazy' {...resProps} />
<img src={url} alt={title} loading='lazy' {...resProps} />
<>{observer && inView && once_callback(inView)}</>
{children}
</BorderDiv>
1 change: 1 addition & 0 deletions src/routers/photo/item/index.tsx
@@ -22,6 +22,7 @@ export default function PhotoCard(props: CardType) {
url={`${images[0].src}@${250}w.webp`}
{...Omit(images[0], "src")}
{...resPorps}
title={"图片栏"}
className={style["show-img"]}
onClick={handlerChangeOpen}
/>
1 change: 1 addition & 0 deletions src/routers/video/item/index.tsx
@@ -24,6 +24,7 @@ export const VideoRouterImageCard: FC<{ data: VideoRouterImageCardType }> = ({
<ImageBasic
height={9}
width={16}
title={data.title}
url={`${pic}${
md ? `@480w_270h_1c` : `@672w_378h_1c_!web-search-common-cover`
}`}

0 comments on commit 4a02535

Please sign in to comment.