Skip to content

Commit

Permalink
Update jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
pages permissions
  • Loading branch information
20Attila03 authored Apr 16, 2024
1 parent 9fa367a commit 17f8fe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
with:
source: ./
destination: ./_site
- name: Modify Permissions
run: chmod -R u+rwX,go+rX,go-w ./_site
- name: Insert JS snippet
run: |
find ./_site -name '*.html' -exec sed -i 's|</body>|<script>document.addEventListener("DOMContentLoaded", function() {const links = document.querySelectorAll("a[href^=\\"./exams/\\"]");links.forEach(link => {const code = link.getAttribute("href").slice(8);link.href = `https://github.com/skipgu/past-exams/tree/main/exams/${code}`;});});</script>\n</body>|g' {} +
Expand Down

0 comments on commit 17f8fe2

Please sign in to comment.