unita

Status

Widgets

Time

Render a <time> containing:

{% include widgets/time.html datetime=site.time %}

Includes

File: _includes/widgets/time.html

{% include widgets/time.html datetime='2025-01-07T08:00:00' duration='P2W' text='Blue' %}

Rolls

Compute a dice roll from a string (rolls)d(sides)(+/-modifier).
Expose the liquid array rolls_rolls of the rolls.
Changes with site build.

{% include widgets/rolls.html roll='1d6' mod=0 %}

File: _includes/widgets/rolls.html

View

Render data files or liquid objects.

{% include widgets/view.html csv='csv' sort='desc' %}
{% include widgets/view.html liquid=page.list %}
{% include widgets/view.html json='json' %}
{% include widgets/view.html yml='yml' %}

Options for csv

Csv table

<table class='...' data-sort='...' data-limit='...'>
  <tr data-row='1'>
    <td data-header='...' data-value='...'>
      <!-- if header is `date` or `unix` -->
      <time datetime='date_to_rcf822'>ISO 8601 </time>
...

Styles

td[data-value='briefing']{color:var(--color-green)}
td[data-value='bill']{color:var(--color-orange)}
td[data-value='trash']{color:var(--fg-muted)}

File: _includes/widgets/view.html

Progress

Render a progress bar.

File: _includes/widgets/progress.html

progress

Toc

Add a table-of-content excluding the preceding heading.

{% include widgets/toc.html %}

File: _includes/widgets/toc.html

Form

Render a functional form from a yml object in the page front matter

{% include widgets/form.html form=page.form %}

Form properties

Form bottom contains a message box for the future

<div data-input="message" role='status'></div>

File: _includes/widgets/form.html

{% include widgets/form.html form=site.data.form %}

user/1757701169/fields.json

file: fields.json
timestamp: folder
user: true
class: Space separated list

Implicit form {text: true}

Support placeholder property

Numeric boolean 0 or 1
Support deafult property

6 digits hex format

Default value and accept today

Default property string accept today and now
step optional is in seconds (default 60)

Radio type has option array

Get a csv file and a property to pick from

Roll property is (rolls)d(sides)

Csv file and property

Input

Render a form to create or edit a data file, or perform automatic functions.
Fields and destination are passed with a data file or in the front matter.

Forms schema

File: _includes/widgets/input.html

Aside

page.aside: true will append an <aside> element to <main> with existing front-matter variables.

File: _includes/widgets/aside.html

Pagination

page.pagination: true will append a div.pagination[aria-label='Pagination'] to <main> with the links to the previous and next collections’s document.

File: _includes/widgets/pagination.html

TOP BOTTOM