fix rss
This commit is contained in:
parent
c2a1f4314c
commit
a775b63efc
@ -1,5 +1,5 @@
|
||||
<div class="relative w-full px-6 py-12 bg-white shadow-xl shadow-slate-700/10 ring-1 ring-gray-900/5 md:max-w-3xl md:mx-auto lg:max-w-4xl lg:pt-16 lg:pb-28">
|
||||
<h1 class="text-4xl font-bold text-gray-900 dark:text-white mt-6 mb-4" style="text-shadow: 1px 1px 5px rgba(0,0,0,0.1);">{{.blog.title}}</h1>
|
||||
<h1 class="text-4xl font-bold text-gray-900 mt-6 mb-4" style="text-shadow: 1px 1px 5px rgba(0,0,0,0.1);">{{.blog.title}}</h1>
|
||||
<article class="prose lg:prose-xl">
|
||||
{{zmpl.fmt.raw(zmpl.ref("blog.content"))}}
|
||||
</article>
|
||||
|
@ -28,11 +28,12 @@ fn generateRss(items: []const RssItem, allocator: std.mem.Allocator) ![]u8 {
|
||||
try writer.print(
|
||||
\\<item>
|
||||
\\<title>{s}</title>
|
||||
\\<link>yuzucchii.xyz/blogs/{d}</link>
|
||||
\\<link>https://yuzucchii.xyz/blogs/{d}</link>
|
||||
\\<guid>https://yuzucchii.xyz/blogs/{d}</guid>
|
||||
\\<description>{s}</description>
|
||||
, .{ item.title, item.id, item.blob });
|
||||
, .{ item.title, item.id, item.id, item.blob });
|
||||
|
||||
try item.created_at.strftime(writer, "<pubDate>Day, DD Mon YYYY HH:MM:SS GMT</pubDate>");
|
||||
try item.created_at.format("Day, DD, Mon YYYY HH:MM:SS GMT", .{}, writer);
|
||||
|
||||
try writer.print(
|
||||
\\</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user