{{ noescape "<?xml version=\"1.0\" encoding=\"utf-8\"?>" }}
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="text">{{ .Title }}</title>
	<subtitle type="html">{{ .Subtitle }}</subtitle>
	<link href="{{ .HomepageUrl }}"/>
	<link rel="self" type="application/atom+xml" href="{{ .AtomFeedUrl }}"/>
	<link rel="alternate" type="text/html" hreflang="en" href="{{ .FeedUrl }}"/>
	<rights type="html">{{ .CopyrightStatement }}</rights>
	<generator uri="{{ .HomepageUrl }}" version="{{ .SiteVersion }}">Handmade Network site engine v{{ .SiteVersion }}</generator>
	<updated>{{ rfc3339 .Updated }}</updated>
	<id>{{ .FeedID }}</id>
	{{ if .Posts }}
		{{ range .Posts }}
			<entry>
				<title>{{ if .PostTypePrefix }}{{ .PostTypePrefix }}: {{ end }}{{ .Title }}</title>
				<link rel="alternate" type="text/html" href="{{ .Url }}" />
				<id>{{ .UUID }}</id>
				<published>{{ rfc3339 .Date }}</published>
				<updated>{{ rfc3339 .LastEditDate }}</updated>
				<author>
					<name>{{ .User.Name }}</name>
					<uri>{{ .User.ProfileUrl }}</uri>
				</author>
				<summary type="html">{{ .Preview }}</summary>
			</entry>
		{{ end }}
	{{ else if .Projects }}
		{{ range .Projects }}
			<entry>
				<title>{{ .Name }}</title>
				<link rel="alternate" type="text/html" href="{{ .Url }}" />
				<id>{{ .UUID }}</id>
				<published>{{ rfc3339 .DateApproved }}</published>
				{{ range .Owners }}
					<author>
						<name>{{ .Name }}</name>
						<uri>{{ .ProfileUrl }}</uri>
					</author>
				{{ end }}
				<logo>{{ .Logo }}</logo>
				<summary type="html">{{ .Blurb }}</summary>
			</entry>
		{{ end }}
	{{ else if .Snippets }}
		{{ range .Snippets }}
			<entry>
				<title>New showcase item by {{ .OwnerName }}</title>
				<link rel="alternate" type="text/html" href="{{ .Url }}" />
				<id>{{ string2uuid .Url }}</id>
				<published>{{ rfc3339 .Date }}</published>
				<author>
					<name>{{ .OwnerName }}</name>
					<uri>{{ .OwnerUrl }}</uri>
				</author>
				<content type="xhtml">
					<div xmlns="http://www.w3.org/1999/xhtml">
						<div>
							{{ noescape "<![CDATA[" }}
							{{ cleancontrolchars .Description }}
							]]>
						</div>
						{{ range .EmbedMedia }}
							<div>
								{{ if eq .Type mediaimage }}
									<img src="{{ .AssetUrl }}"/>
								{{ else if eq .Type mediavideo }}
									<video src="{{ .AssetUrl }}" controls="true"/>
								{{ else if eq .Type mediaaudio }}
									<audio src="{{ .AssetUrl }}" controls="true"/>
								{{ end }}
							</div>
						{{ end }}
					</div>
				</content>
			</entry>
		{{ end }}
	{{ end }}
</feed>
