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 508950c8 fix avatar image broken (#251)
508950c8 is described below

commit 508950c8cafecf716d5ee3b4b3665bbca1983e9b
Author: weipeng <[email protected]>
AuthorDate: Fri Jun 6 16:05:52 2025 +0800

    fix avatar image broken (#251)
    
    Co-authored-by: quanzheng <[email protected]>
---
 docusaurus.config.ts   | 1 -
 src/plugin/redirect.js | 7 +++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 256eb194..d8fd44ae 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -86,7 +86,6 @@ const config: Config = {
 
   themeConfig: {
     metadata: [
-      {'http-equiv': 'Content-Security-Policy', content: "frame-src 'self' 
https://ghbtns.com/; img-src 'self' https://github.com/ data:;"},
     ],
     navbar: {
       title: '',
diff --git a/src/plugin/redirect.js b/src/plugin/redirect.js
index c5f710a8..2e6fd764 100644
--- a/src/plugin/redirect.js
+++ b/src/plugin/redirect.js
@@ -4,6 +4,13 @@ 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]

Reply via email to