fix: coba
This commit is contained in:
parent
9258f93846
commit
4356ea92c0
3
.github/workflows/jobs.yaml
vendored
3
.github/workflows/jobs.yaml
vendored
@ -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 }}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user