Skip to content

Commit 91903d8

Browse files
committed
Update site mode management to use HTML files instead of Markdown
1 parent 5cc1ba3 commit 91903d8

File tree

3 files changed

+12
-119
lines changed

3 files changed

+12
-119
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ The `site-mode.sh` script allows you to easily switch between live and maintenan
3939

4040
#### File Structure
4141

42-
- `index.md` - Current active homepage
42+
- `index.html` - Current active homepage
4343
- `index.md.backup` - Original site backup (created automatically)
44-
- `index.md.live` - Live site backup (created when switching to construction mode)
44+
- `index.html.live` - Live site backup (created when switching to construction mode)
4545
- `site-mode.sh` - Mode switcher script
4646

4747
#### Manual Mode Switching
@@ -50,13 +50,13 @@ If you prefer manual control:
5050

5151
**Enable maintenance mode:**
5252
```bash
53-
cp index.md index.md.live
54-
# Replace index.md content with under construction HTML
53+
cp index.html index.html.live
54+
# Replace index.html content with under construction HTML
5555
```
5656

5757
**Restore live site:**
5858
```bash
59-
cp index.md.backup index.md
59+
cp index.md.backup index.html
6060
```
6161

6262
### Search Engine Protection

β€Žindex.mdβ€Ž

Lines changed: 0 additions & 108 deletions
This file was deleted.

β€Žsite-mode.shβ€Ž

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ case $MODE in
99
"construction")
1010
echo "🚧 Switching to UNDER CONSTRUCTION mode..."
1111
if [ -f "index.md.backup" ]; then
12-
cp index.md index.md.live
13-
echo "βœ… Current site backed up as index.md.live"
12+
cp index.html index.html.live
13+
echo "βœ… Current site backed up as index.html.live"
1414
fi
1515

16-
# The under construction content is already in index.md
16+
# The under construction content is already in index.html
1717
echo "βœ… Under construction page is now active"
1818
echo "πŸ“ Your site will show the maintenance page"
1919
;;
2020

2121
"live")
2222
echo "🌐 Switching to LIVE mode..."
2323
if [ -f "index.md.backup" ]; then
24-
cp index.md.backup index.md
24+
cp index.md.backup index.html
2525
echo "βœ… Live site restored from backup"
2626
echo "πŸ“ Your original site is now active"
2727
else
2828
echo "❌ No backup found (index.md.backup)"
29-
echo "Please restore your original index.md manually"
29+
echo "Please restore your original index.html manually"
3030
fi
3131
;;
3232

@@ -41,6 +41,7 @@ case $MODE in
4141
echo ""
4242
echo "Files:"
4343
echo " index.md.backup - Original site backup"
44-
echo " index.md.live - Live site backup (when in construction mode)"
44+
echo " index.html.live - Live site backup (when in construction mode)"
45+
echo " index.html - Current active homepage"
4546
;;
4647
esac

0 commit comments

Comments
Β (0)