fix: coba

This commit is contained in:
rizaldy 2024-01-31 03:32:24 +07:00
parent 9258f93846
commit 4356ea92c0
2 changed files with 20 additions and 26 deletions

View File

@ -20,9 +20,6 @@ jobs:
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
MINIO_BUCKET: ${{ secrets.MINIO_BUCKET }}
PEERTUBE_FEED_URL: ${{ secrets.PEERTUBE_FEED_URL }}
UMAMI_ENABLED: ${{ env.UMAMI_ENABLED }}
UMAMI_SCRIPT_URL: ${{ env.UMAMI_SCRIPT_URL }}
UMAMI_WEBSITE_ID: ${{ env.UMAMI_WEBSITE_ID }}
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -15,29 +15,26 @@ const Content = ({ children }) => (
</div>
);
const App = ({ Component, pageProps }) => {
console.log(process.env.UMAMI_ENABLED);
return (
<Fragment>
<Navbar name={config.navbar.logotype} logo={config.navbar.logo} />
<Content>
<Component {...pageProps} />
</Content>
<Footer
repo={config.footer.repo}
links={config.footer.links}
license={config.footer.license}
commitID={process.env.COMMIT_SHORT_SHA || "HEAD"}
const App = ({ Component, pageProps }) => (
<Fragment>
<Navbar name={config.navbar.logotype} logo={config.navbar.logo} />
<Content>
<Component {...pageProps} />
</Content>
<Footer
repo={config.footer.repo}
links={config.footer.links}
license={config.footer.license}
commitID={process.env.COMMIT_SHORT_SHA || "HEAD"}
/>
{process.env.UMAMI_ENABLED ? (
<Script
strategy="beforeInteractive"
src={process.env.UMAMI_SCRIPT_URL}
data-website-id={process.env.UMAMI_WEBSITE_ID}
/>
{process.env.UMAMI_ENABLED ? (
<Script
strategy="beforeInteractive"
src={process.env.UMAMI_SCRIPT_URL}
data-website-id={process.env.UMAMI_WEBSITE_ID}
/>
) : null}
</Fragment>
);
};
) : null}
</Fragment>
);
export default App;