Skip to content

Commit

Permalink
Use absolute links for permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
alflennik committed Feb 1, 2023
1 parent b35af95 commit 1a1ab06
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/feed/examples/feedDisplay.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/feed/examples/feedDisplay.html
permalink: /ARIA/apg/patterns/feed/examples/feedDisplay.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/HTML5.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/HTML5.html
permalink: /ARIA/apg/patterns/landmarks/examples/HTML5.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/at.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/at.html
permalink: /ARIA/apg/patterns/landmarks/examples/at.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/banner.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/banner.html
permalink: /ARIA/apg/patterns/landmarks/examples/banner.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/complementary.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/complementary.html
permalink: /ARIA/apg/patterns/landmarks/examples/complementary.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/contentinfo.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/contentinfo.html
permalink: /ARIA/apg/patterns/landmarks/examples/contentinfo.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/form.html
permalink: /ARIA/apg/patterns/landmarks/examples/form.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/general-principles.html
permalink: /ARIA/apg/patterns/landmarks/examples/general-principles.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/main.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/main.html
permalink: /ARIA/apg/patterns/landmarks/examples/main.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/navigation.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/navigation.html
permalink: /ARIA/apg/patterns/landmarks/examples/navigation.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/region.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/region.html
permalink: /ARIA/apg/patterns/landmarks/examples/region.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/resources.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/resources.html
permalink: /ARIA/apg/patterns/landmarks/examples/resources.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/landmarks/examples/search.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/landmarks/examples/search.html
permalink: /ARIA/apg/patterns/landmarks/examples/search.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion ARIA/apg/patterns/toolbar/examples/help.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: null
permalink: ARIA/apg/patterns/toolbar/examples/help.html
permalink: /ARIA/apg/patterns/toolbar/examples/help.html
---
<!DOCTYPE html>
<html lang="en">
Expand Down
4 changes: 2 additions & 2 deletions scripts/pre-build/library/transformHtmlAsset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { parse: parseHtml } = require("node-html-parser");
const rewriteElementPaths = require("./rewriteElementPaths");
const {rewriteSourcePath} = require("./rewritePath");
const { rewriteSourcePath } = require("./rewritePath");

const transformImageAsset = async (sourcePath, sourceContents) => {
const { sitePath } = rewriteSourcePath(sourcePath);
Expand All @@ -14,7 +14,7 @@ const transformImageAsset = async (sourcePath, sourceContents) => {

return `---
layout: null
permalink: ARIA/apg/${sitePath}
permalink: /ARIA/apg/${sitePath}
---
${html.outerHTML}`;
};
Expand Down

0 comments on commit 1a1ab06

Please sign in to comment.