Skip to content

Commit

Permalink
code updated for rel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Dec 10, 2024
1 parent 416780e commit 90552db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,12 +1256,9 @@ export function groupAllKeys(array) {

// Helper functions
const handleRel = (anchor, hrefSplit) => {
if (hrefSplit.includes(',')) {
const rels = hrefSplit.split(',');
rels.forEach(function (eachRel) {
debugger
anchor.rel += `${eachRel.trim()}`;
});
if (hrefSplit.includes('@')) {
const rels = hrefSplit.split('@');
anchor.rel = rels.join(' ');
} else {
anchor.rel = hrefSplit;
}
Expand Down

0 comments on commit 90552db

Please sign in to comment.