Skip to content

Commit

Permalink
Fixed generation of sitemap.xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Nov 30, 2023
1 parent 3739c86 commit 385f4bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@
$url->appendChild($dom->makeItem('loc', $host . $value));
$url->appendChild($dom->makeItem('lastmod', date('c')));
$url->appendChild($dom->makeItem('changefreq', 'daily'));
$url->appendChild($dom->makeItem('priority', 0.8));
$url->appendChild($dom->makeItem('priority', 0.5));

$urlset->appendChild($url);
$dom->appendToRoot($url);
}

$dom->appendToRoot($urlset);

file_put_contents(__DIR__ . '/../sitemap.xml', $dom->get());

0 comments on commit 385f4bd

Please sign in to comment.