Skip to content

Commit

Permalink
Merge pull request #716 from GSA-TTS/feature/tts-612
Browse files Browse the repository at this point in the history
Feature/tts 612
  • Loading branch information
debjudy authored Dec 30, 2024
2 parents f03c597 + 1d3933c commit 666a2df
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 18 deletions.
1 change: 1 addition & 0 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"positions.map": "/assets/js/positions-JSZISVTK.js.map",
"subnav.js": "/assets/js/subnav-3QHQ2EX4.js",
"subnav.map": "/assets/js/subnav-3QHQ2EX4.js.map",
"uswds.js": "/assets/js/uswds-init.js",
"styles.css": "/assets/styles/styles-VHE4JBMV.css",
"styles.map": "/assets/styles/styles-VHE4JBMV.css.map"
}
13 changes: 13 additions & 0 deletions _includes/layouts/jointts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 301 Redirect -->
<meta http-equiv="refresh" content="0; url=/join">
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected, <a href="/join">click here</a>.</p>
</body>
</html>
13 changes: 13 additions & 0 deletions js/redirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require("fs");
const path = require("path");

const archiveDir = "./pages/jointts/positions/archive";

const mdFiles = fs
.readdirSync(archiveDir)
.filter((file) => file.endsWith(".md"));

module.exports = mdFiles.map((file) => ({
permalink: `/pages/jointts/positions/archive/${file.replace(".md", ".html")}`,
redirectTo: "/join/",
}));
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs


# ###############################################################################
# #
# INSTRUCTIONS: TTS JOB TEMPLATE #
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/jointts/job-listing
layout: layouts/jointts/redirect
permalink: /join/{{ title | slugify }}.html
tags: jobs

Expand Down

0 comments on commit 666a2df

Please sign in to comment.