Add GitHub Pages deployment and Decap CMS support

- 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
This commit is contained in:
Buğra
2025-07-10 00:55:05 +03:00
parent 81760d0ba1
commit 733be12298
7 changed files with 243 additions and 19 deletions
+16
View File
@@ -35,6 +35,9 @@ const { language, textDirection } = I18N;
<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" />
@@ -44,5 +47,18 @@ const { language, textDirection } = I18N;
<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>
+15
View File
@@ -0,0 +1,15 @@
---
// Redirect to decap CMS
---
<html>
<head>
<meta http-equiv="refresh" content="0; url=/decapcms/" />
<script>
window.location.replace('/decapcms/');
</script>
</head>
<body>
<p>Redirecting to CMS...</p>
</body>
</html>