home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Neopolitan: Link And Checklist Content Sections

Continuing the content types:

January 2024

List Type

The list type is designed to allow multiple blocks inside each item. Here's a notes section using the list content type.

Code
-- notes 

- Alfa Bravo

Charlie Delta

- Echo Foxtrot
Code
<ul>
  <li>
    <p>Alfa Bravo</p>
    <p>Charlie Delta</p>
  </li>
  <li>
    <p>Echo Foxtrot</p>
  </li>
</ul>

Checklist Type

Checklist items start with either [] the indicates an unchecked item, or a set of braces with something inside them that represents a checked item. I'm using x here, but anything could be used and multiple strings could be passed to the rendering engine to make decisions on (e.g. for in progress stuff).

Here's a todo section using the checklist content type and using the checkboxes to determine what class to set on the list items in the output:

Code
-- todo

[] Alfa Bravo

Charlie Delta

[x] Echo Foxtrot
Code
<ul>
  <li class="not_done">
    <p>Alfa Bravo</p>
    <p>Charlie Delta</p>
  </li>
  <li class="done">
    <p>Echo Foxtrot</p>
  </li>
</ul>

Previous: [TODO: make ilinks work] ~ Next: [TODO: make ilinks work]

═══ § ═══