Update (sitemap)

This commit is contained in:
2023-11-29 22:44:55 +08:00
parent d8bf8784a6
commit 3d0873c5af
9 changed files with 118 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<news:news>
<news:publication>
<news:name>{{ $news->name }}</news:name>
<news:language>{{ $news->language }}</news:language>
</news:publication>
<news:title>{{ $news->title }}</news:title>
<news:publication_date>{{ $news->publicationDate->toW3cString() }}</news:publication_date>
@foreach($news->options as $tag => $value)
<news:{{$tag}}>{{$value}}</news:{{$tag}}>
@endforeach
</news:news>