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_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
MINIO_BUCKET: ${{ secrets.MINIO_BUCKET }} MINIO_BUCKET: ${{ secrets.MINIO_BUCKET }}
PEERTUBE_FEED_URL: ${{ secrets.PEERTUBE_FEED_URL }} 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 - uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

View File

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