Basker Docs

Author template

Render author bylines in post templates and understand the current author-route limitation

Authors are available to post templates as byline records. The standard FrontStage route currently does not render author detail pages, so templates/author.liquid is not a supported default-route template.

Location

The author template lives in templates/:

└── theme
    └── templates
        ├── author.liquid           // base template
        └── author.featured.liquid  // optional named variants

Only add templates/author.liquid when your project provides its own route integration. For normal custom themes, render author data inside a post template.

The author object

PropertyTypeDescription
idstringUnique identifier
displayNamestringPreferred byline; falls back to the author's name fields
namestringConfigured display name, when present
firstNamestringFirst name
lastNamestringLast name
richName_htmlstringRichly formatted name, when configured
slugstringURL-safe identifier
urlstringDerived author path (/authors/<slug>); not editable
imagemediaProfile image

The fields supplied on an author relationship are a public summary, not the complete author record.

Patterns

Post byline

{% for author in post.authors %}
  <span class="byline">
  {% if author.image %}
    <img
      src="{{ author.image | image_url: width: 48, height: 48, fit: 'cover' }}"
      alt=""
    >
  {% endif %}
    {{ author.displayName | default: author.name }}
  </span>
{% endfor %}
  • Post template: author records are linked from posts as bylines.
  • Template context: global functions and variables available alongside author.
  • Templates: the broader template-writing workflow.

On this page