This is an automated email from the ASF dual-hosted git repository.
wangweipeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new c72183ff fix avatar image broken (#252)
c72183ff is described below
commit c72183ffd14c37f615947a7b328f13b15b8118ac
Author: weipeng <[email protected]>
AuthorDate: Fri Jun 6 16:26:53 2025 +0800
fix avatar image broken (#252)
Co-authored-by: quanzheng <[email protected]>
---
docusaurus.config.ts | 1 +
src/plugin/redirect.js | 7 -------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index d8fd44ae..46ebca0e 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -86,6 +86,7 @@ const config: Config = {
themeConfig: {
metadata: [
+ {'http-equiv': 'Content-Security-Policy', content: "frame-src 'self'
https://ghbtns.com/; img-src 'self' https://avatars.githubusercontent.com/
https://github.com/ data:;"},
],
navbar: {
title: '',
diff --git a/src/plugin/redirect.js b/src/plugin/redirect.js
index 2e6fd764..c5f710a8 100644
--- a/src/plugin/redirect.js
+++ b/src/plugin/redirect.js
@@ -4,13 +4,6 @@ export default function (context, options) {
injectHtmlTags({content}) {
return {
headTags: [
- {
- tagName: 'meta',
- attributes: {
- 'http-equiv': 'Content-Security-Policy',
- 'content': `frame-src 'self' https://ghbtns.com/; img-src 'self'
https://github.com/ data:;`
- }
- },
{
tagName: 'script',
attributes: {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]