733be12298
- Add GitHub Actions workflow for automatic deployment to GitHub Pages - Configure Decap CMS for Turkish blog post management - Add Netlify Identity integration for authentication - Create admin redirect page and routing - Add comprehensive setup documentation - Configure proper Turkish field labels and defaults - Enable image uploads and media management Site will now auto-deploy on every push to main branch. Access CMS at: https://ym1ktc.github.io/ARC-Web-Sitesi/admin/ 🤖 Generated with Claude Code
65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
---
|
|
import '~/assets/styles/tailwind.css';
|
|
|
|
import { I18N } from 'astrowind:config';
|
|
|
|
import CommonMeta from '~/components/common/CommonMeta.astro';
|
|
import Favicons from '~/components/Favicons.astro';
|
|
import CustomStyles from '~/components/CustomStyles.astro';
|
|
import ApplyColorMode from '~/components/common/ApplyColorMode.astro';
|
|
import Metadata from '~/components/common/Metadata.astro';
|
|
import SiteVerification from '~/components/common/SiteVerification.astro';
|
|
import Analytics from '~/components/common/Analytics.astro';
|
|
import BasicScripts from '~/components/common/BasicScripts.astro';
|
|
|
|
// Comment the line below to disable View Transitions
|
|
import { ClientRouter } from 'astro:transitions';
|
|
|
|
import type { MetaData as MetaDataType } from '~/types';
|
|
|
|
export interface Props {
|
|
metadata?: MetaDataType;
|
|
}
|
|
|
|
const { metadata = {} } = Astro.props;
|
|
const { language, textDirection } = I18N;
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang={language} dir={textDirection} class="2xl:text-[20px]">
|
|
<head>
|
|
<CommonMeta />
|
|
<Favicons />
|
|
<CustomStyles />
|
|
<ApplyColorMode />
|
|
<Metadata {...metadata} />
|
|
<SiteVerification />
|
|
<Analytics />
|
|
|
|
<!-- Netlify Identity for Decap CMS -->
|
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
|
|
<!-- Comment the line below to disable View Transitions -->
|
|
<ClientRouter fallback="swap" />
|
|
</head>
|
|
|
|
<body class="antialiased text-default bg-page tracking-tight">
|
|
<slot />
|
|
|
|
<BasicScripts />
|
|
|
|
<!-- Netlify Identity initialization -->
|
|
<script>
|
|
if (window.netlifyIdentity) {
|
|
window.netlifyIdentity.on("init", user => {
|
|
if (!user) {
|
|
window.netlifyIdentity.on("login", () => {
|
|
document.location.href = "/admin/";
|
|
});
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|