We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64cb6b commit ddead3aCopy full SHA for ddead3a
.github/workflows/prw-deploy-preview.yml
@@ -70,6 +70,11 @@ jobs:
70
echo "The updated deployment URL for PR:"
71
grep '\&prefix=' config/_default/hugo.toml
72
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
+
78
- name: Add preview banner to website
79
run: |
80
PREVIEW_HTML="<p style='color: rgba(var(--color-primary-600), 1); text-align: center;'>
0 commit comments