Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Commit f5d7d7a

Browse files
committed
add redirect from frontmatter.html
1 parent c7ffc4b commit f5d7d7a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ jobs:
3939
run: npm install -g mystmd
4040
- name: Build HTML Assets
4141
run: myst build --html
42+
- name: Create redirect from frontmatter to index
43+
run: |
44+
cat > ./_build/html/frontmatter.html << 'EOF'
45+
<!DOCTYPE html>
46+
<html>
47+
<head>
48+
<meta http-equiv="refresh" content="0; url=./index.html">
49+
<link rel="canonical" href="./index.html">
50+
</head>
51+
<body>
52+
<p>Redirecting to <a href="./index.html">index page</a>...</p>
53+
</body>
54+
</html>
55+
EOF
4256
- name: Upload artifact
4357
uses: actions/upload-pages-artifact@v3
4458
with:

0 commit comments

Comments
 (0)