···11-/// We want to disable this while previewing, as to not spam ari.lt with requests due to autoreloading.
11+/// We want to disable this while previewing, as to not spam ari.lt with
22+/// requests due to autoreloading.
23const arrivertisements_show = False
3444-// Post data
55-55+/// Post data -------------------------------------------------------------------
66+///
77+/// Some special tags:
88+/// - `.unlisted`, allows for live blogs, which do broadcast
99+/// 'updates' on the RSS feed, but we don't want those partial
1010+/// posts in the post view, we want the 'original' post to link
1111+/// or embed them instead.
1212+/// - `.creative` and `.blog-personal` these two split the blog posts
1313+/// from the creative endeavours.
1414+/// - `.creative-art` and `.creative-writings` split the creative works
1515+/// themselves into seperated subblogs
1616+/// - `.archived`, similar to `.unlisted`, but with a button(?). Yet unimplemented.
617fn posts() {
718 [
819 Post(
···16351646 wrap(Me, "About Me", view_me()),
16361647 wrap(Index, "Homepage", view_index(model)),
16371648 wrap(Posts, "All Posts", view_posts(model, AllPosts)),
16491649+16501650+ {
16511651+ // This feels risky
16521652+ list.map(posts(), fn(post) {
16531653+ view_post(model, post.id)
16541654+ |> wrap(PostById(post.id), "Post: " <> post.title, _)
16551655+ })
16561656+ |> element.fragment()
16571657+ },
16581658+16381659 wrap(Links, "Links page", view_links()),
16391660 wrap(Portfolio, "Portfolio", view_portfolio()),
16611661+ wrap(Sitemap, "Sitemap", view_sitemap()),
16401662 // Hmm...
16411663 wrap(PersonalStartPage, "Personal start page", view_personal_start_page()),
16421664 ]
···20212043 ]
20222044 _ ->
20232045 postlist
20462046+ |> list.filter(fn(item) { !list.contains(item.tags, ".unlisted") })
20242047 |> list.map(view_post_preview)
20252048 }
20262049 [