Published 2025-07-17.
Last modified 2025-07-19.
Time to read: 1 minutes.
This page is part of the
jekyll_plugins
collection.
This Jekyll tag plugin creates to-do notices.
Options
-
alert
- Apply thealert
class to the generated HTML wrapper. -
block
- Applydisplay: block
to the generated HTML wrapper. -
class
- Apply the given class to the generated HTML wrapper. -
id
- Apply the given HTML id attribute to the generated HTML wrapper. -
mode
- Only generate the notice for the given Jekyllmode
. The default is to generate the notice for all Jekyll modes.
For example:
-
mode=development
ormode=develop
only generates the notice when in development mode. -
mode=production
ormode=prod
only generates the notice when in production mode.
-
-
span
- Applydisplay: inline
to the generated HTML wrapper. -
style
- Apply the given CSS style to the generated HTML wrapper.
Examples
Default Parameters
{% todo %} This is line 1 of the todo content.
This is line 2. {% endtodo %}
Renders as:
Span
<p> This is a paragraph with {% todo span %}TODO content{% endtodo %}. </p>
Renders as:
This is a paragraph with TODO content .
todo style='background: #eee; color: green;'
{% todo style='background: #eee; color: green;' %} TODO content {% endtodo %}.
Renders as:
todo mode
The Jekyll mode that was active when this page was generated was
production
.
todo mode=develop
Nothing should be displayed when in production mode.
.todo mode=prod
Nothing should be displayed when in development mode.
.