Add email tool tracking

This commit is contained in:
2023-12-07 12:49:45 +08:00
parent 46b07de8b8
commit 84a96833ff
48 changed files with 320 additions and 114 deletions

View File

@@ -1,6 +1,6 @@
<?= '<'.'?'.'xml version="1.0" encoding="UTF-8"?>'."\n" ?>
<?= '<' . '?' . 'xml version="1.0" encoding="UTF-8"?>' . "\n" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach($tags as $tag)
@include('sitemap::sitemapIndex/' . $tag->getType())
@endforeach
@foreach ($tags as $tag)
@include('sitemap::sitemapIndex/' . $tag->getType())
@endforeach
</sitemapindex>

View File

@@ -1,8 +1,8 @@
<sitemap>
@if (! empty($tag->url))
<loc>{{ url($tag->url) }}</loc>
@if (!empty($tag->url))
<loc>{{ url($tag->url) }}</loc>
@endif
@if (! empty($tag->lastModificationDate))
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
@if (!empty($tag->lastModificationDate))
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
@endif
</sitemap>