$def with (post, identities, guests) $var body_classes = ["widescreen"] $code: def get_property(prop): return post.pop(prop, [""])[-1] $ permalink = get_property("url") $ pad_id = permalink.lstrip('/').replace('/', '--') $var title: Editing $permalink $var show_title = False $var hide_footer = True
$#
$# Author $# $ author = get_property("author") $# $for identity in identities: $# $ card = identity["card"] $# $# $#
$#
$# $#
$#
    $#

    Guests currently signed in:

    $# $for guest in guests: $#
  • $guest["url"]
  • $#
$# $#
$# Audience $# $if post: $# $for member_url in post.get("audience", []): $# $#
Visibility $for vis in ["public", "protected", "private"]:
$#
$# Syndication $# $for syn in ["mastodon"]: $# $#
$# $ type = get_property("type") $#
$# Type $# $for _type in ["card", "entry", "event", "recipe", "review"]: $# $#
$#
$#
$# $#
$#
$# XXX
$# XXX
$#
$#
$# $#
$#
$#
$#
$# $#
$#
$#
$#
$# $#
$#
$#
$# Categories $# $# $#
    $# $# $for category in c $# $#
  • $# $#
  • $#
$#
$if published := get_property("published"):

$# $# $# if permalink: $# $else: $#
$if post:

Unused properties

$pformat(post)