Skip to content

Commit

Permalink
Add bachelor thesis to sitemap script
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Dec 9, 2023
1 parent 2a11af1 commit 9dd7a59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/scripts/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function generateSitemap() {
const filePaths = findIndexFiles(path.join('src', 'routes'));

// Create URL paths and sort them
const urlSet = filePaths
let urlSet = filePaths
// Transform file paths to URL paths
.map((filePath) =>
filePath
Expand All @@ -60,6 +60,9 @@ async function generateSitemap() {
''
);

// Add thesis to URL set
urlSet += `<url><loc>${ORIGIN}/thesis.pdf</loc></url>`;

// Write sitemap.xml to public directory
fs.writeFileSync(
path.join('public', 'sitemap.xml'),
Expand Down

0 comments on commit 9dd7a59

Please sign in to comment.