Skip to content

Commit ddead3a

Browse files
committed
fix: add pr prefix to article links on main page
1 parent f64cb6b commit ddead3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/prw-deploy-preview.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070
echo "The updated deployment URL for PR:"
7171
grep '\&prefix=' config/_default/hugo.toml
7272
73+
- name: Add PR prefix to article links on main page
74+
run: |
75+
# Add pr$PR_NUMBER to all article links in index.md
76+
sed -i "s|\({{< article link=\"\)/|\1/pr$PR_NUMBER/|g" content/_index.md
77+
7378
- name: Add preview banner to website
7479
run: |
7580
PREVIEW_HTML="<p style='color: rgba(var(--color-primary-600), 1); text-align: center;'>

0 commit comments

Comments
 (0)