Add landing page
This commit is contained in:
parent
9439de0603
commit
aaf1aa7890
603 changed files with 637 additions and 1 deletions
11
private/site/snippets/sitemap.php
Normal file
11
private/site/snippets/sitemap.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?= '<?xml version="1.0" encoding="utf-8"?>'; ?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<?php foreach ($pages as $p): ?>
|
||||
<?php if (in_array($p->uri(), $ignore)) continue ?>
|
||||
<url>
|
||||
<loc><?= html($p->url()) ?></loc>
|
||||
<lastmod><?= $p->modified('c', 'date') ?></lastmod>
|
||||
<priority><?= ($p->isHomePage()) ? 1 : number_format(0.5 / $p->depth(), 1) ?></priority>
|
||||
</url>
|
||||
<?php endforeach ?>
|
||||
</urlset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue