Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit fe70f6f

Browse files
committed
missing files
1 parent 2955aad commit fe70f6f

3 files changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '18'
31+
cache: 'npm'
32+
33+
- name: Install dependencies
34+
run: |
35+
npm init -y
36+
npm install --save-dev @staticcms/core
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Build with Jekyll
42+
uses: actions/jekyll-build-pages@v1
43+
with:
44+
source: ./
45+
destination: ./_site
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
50+
deploy:
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
runs-on: ubuntu-latest
55+
needs: build
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v4

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
<link rel="stylesheet" href="./style/pwa.css">
7777
<link rel="icon" href="./favicon.ico" type="image/x-icon">
7878

79+
<!-- Static CMS Identity Widget -->
80+
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
81+
7982
<!-- External Scripts -->
8083
<script src="./scripts/errorBoundary.js" defer></script>
8184
<script src="./scripts/performance.js" defer></script>
@@ -318,5 +321,18 @@ <h4 class="FooterTitle">Community</h4>
318321

319322
<!-- Back to Top Button -->
320323
<button id="back-to-top" class="back-to-top" aria-label="Back to top" title="Back to top"></button>
324+
325+
<!-- Static CMS Identity Widget Initialization -->
326+
<script>
327+
if (window.netlifyIdentity) {
328+
window.netlifyIdentity.on("init", user => {
329+
if (!user) {
330+
window.netlifyIdentity.on("login", () => {
331+
document.location.href = "/admin/";
332+
});
333+
}
334+
});
335+
}
336+
</script>
321337
</body>
322338
</html>

style/components/no-horizontal-scroll.css

Whitespace-only changes.

0 commit comments

Comments
 (0)