@page "/blog"
@model BlogModel
@{
	ViewData["title"] = "blog";
	ViewData["og-desc"] = "Blog of a disabled neurodivergent queer person unhappy with the state of the world.";
}

@section head {
	<link rel="alternate" title="zotan.pw >> blog" type="application/json" href="/blog/feed.json"/>
	<link rel="alternate" title="zotan.pw >> blog" type="application/atom+xml" href="/blog/feed.atom"/>
}

<p>Hey there, welcome to the blog of a disabled neurodivergent queer person unhappy with the state of the world.</p>
<p>This is where I post about things that make it somewhat fun, things that help me with life in general or just things I felt like sharing.</p>
<p>This blog is available as <a href="/blog/feed.json">JSONFeed</a> (preferred) and <a href="/blog/feed.atom">Atom</a> for subscribing with your feed reader of choice.</p>
<h1 id="posts">Posts</h1>
<ul>
	@foreach (var post in BlogModel.Posts) {
		<li>
			<strong>@post.PublishedOn.ToString("yyyy-MM-dd")</strong> <a href="/blog/@post.Shorthand">@post.Title</a>
		</li>
	}
</ul>

@section postfooter {
	<div>
		<a href="/blog/feed.json" target="_blank" class="imagelink">
			<img src="/files/jsonfeed.png" height="31px" alt="JSONFeed"/>
		</a>
		<a href="/blog/feed.atom" target="_blank" class="imagelink">
			<img src="/files/valid-atom.png" alt="[Valid Atom 1.0]"/>
		</a>
	</div>
}
