This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch style-netlify
in repository https://gitbox.apache.org/repos/asf/apisix-website.git

commit 8fd48a84bcaa0c93b4dedea40ef7e474bb30d250
Author: juzhiyuan <juzhiy...@apache.org>
AuthorDate: Mon Dec 13 10:30:00 2021 +0800

    style: adjsut Netlify position
---
 website/config/ssrTemplate.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js
index e7e2ea8..1cd4bb3 100644
--- a/website/config/ssrTemplate.js
+++ b/website/config/ssrTemplate.js
@@ -34,8 +34,8 @@ module.exports = {
     <script>
       window.onload = function() {
         if (window.location.host.endsWith(".netlify.app")) {
-          var footerDOM = document.querySelector('footer');
-          footerDOM.insertAdjacentHTML('afterend', '<div style="text-align: 
right;padding: 48px 0;">This site is powered by <a 
href="https://www.netlify.com/"; target="_blank">Netlify</a></div>');
+          var dom = document.querySelector("#__docusaurus");
+          dom.insertAdjacentHTML('afterend', '<div style="text-align: 
right;padding: 48px 32px 0;">This site is powered by <a 
href="https://www.netlify.com/"; target="_blank">Netlify</a></div>');
         }
       }
     </script>

Reply via email to