docs: fix URL encoding in website components
This commit is contained in:
@@ -31,7 +31,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
||||
|
||||
<p style={{display: 'flex', alignItems: 'center'}}>
|
||||
<Link to="https://rss3.io"><img loading="lazy" style={{height: "50px"}} src="https://i.imgur.com/lb1dDGK.png" /></Link>
|
||||
<Link to="https://xlog.app/" style={{marginLeft: "60px"}}><img loading="lazy" style={{height: "100px"}} src="https://i.imgur.com/2B9pXBg.png" /></Link>
|
||||
<Link to="https://xlog.app" style={{marginLeft: "60px"}}><img loading="lazy" style={{height: "100px"}} src="https://i.imgur.com/2B9pXBg.png" /></Link>
|
||||
</p>
|
||||
|
||||
[](/zh/support/)
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function InstanceList(): JSX.Element {
|
||||
) : 'Anonymous'}
|
||||
</td>
|
||||
<td>
|
||||
<img loading="lazy" src={`https://img.shields.io/website.svg?label=&url=${instance.url}/test/cache`} />
|
||||
<img loading="lazy" src={`https://img.shields.io/website.svg?label=&url=${encodeURIComponent(`${instance.url}/test/cache`)}`} />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -76,7 +76,7 @@ export default function Route({
|
||||
<Link to={demoUrl}>
|
||||
{demoUrl}
|
||||
</Link>
|
||||
<img loading="lazy" src={`https://img.shields.io/website.svg?label=&url=${demoUrl}&cacheSeconds=7200`} />
|
||||
<img loading="lazy" src={`https://img.shields.io/website.svg?label=&url=${encodeURIComponent(demoUrl)}&cacheSeconds=7200`} />
|
||||
</p>
|
||||
<p className="path">
|
||||
<Translate id="route.path" /><code>{path}</code>
|
||||
|
||||
Reference in New Issue
Block a user