TOML Configuration
comic_git supports TOML files as an alternative to the traditional INI and text files. TOML is optional: existing comic_info.ini, page info.ini, post.txt, transcript, and social_media.json files continue to work.
TOML is useful when you want structured lists, per-image settings, or one self-contained file per comic or page. It is also the content format that future CMS work will build on.
Comic settings
Use your_content/comic_info.toml instead of your_content/comic_info.ini. Extra Comics may likewise use your_content/<extra-comic>/comic_info.toml.
A small main-comic configuration can look like this:
[engine]
version = "1.1"
[comic]
name = "My Comic"
author = "Comic Creator"
description = "A webcomic about..."
[site]
theme = "default"
date_format = "%B %d, %Y"
timezone = "America/Los_Angeles"
[archive]
use_thumbnails = true
list_images_separately = false
[[links]]
name = "Archive"
url = "/archive/"
[[pages]]
template_name = "archive"
title = "Archive"The supported tables correspond to the sections documented in Editing your Comic Info:
[engine]
version
[comic]
name, author, description
[site]
theme, banner_image, date_format, timezone, comic_domain, comic_subdirectory, extra_comics, on_comic_click, markdown_extras
[archive]
date_format, use_thumbnails, show_uncategorized_comics, show_text_only_posts, list_images_separately, image_title_fallback
[navigation]
use_images, above_comic, below_comic, below_blurb
[transcripts]
enabled, load_from_comic_folder, folder, default_language
[image_processing]
create_thumbnails, overwrite_existing_images, thumbnail_size
[analytics]
google_analytics_id
[rss]
build, newest_first, language, image, image_width, image_height, title_format, channel_description, combine_with_main
[webring]
enabled, endpoint, id, show_all_members, exclude_own_comic_from_members
[[links]]
name or image_url, url, open_in_new_tab
[[pages]]
template_name, title
TOML uses lowercase snake_case names. Lists such as site.extra_comics, site.markdown_extras, page characters, and page tags are written as arrays, for example tags = ["funny", "chapter one"].
Unknown keys are rejected so that spelling mistakes do not silently change your site. Optional settings can be omitted when you want comic_git's default behavior.
The migration tool preserves uncommon legacy settings that do not have a first-class TOML key under [legacy.<section>]. This is a compatibility area for migrated data, not the preferred place for new settings.
Comic pages
Use info.toml inside a comic page folder instead of that page's info.ini. A TOML page can contain its post, transcripts, social-media overrides, and ordered images in one file:
Important differences from info.ini pages:
post_dateaccepts an ISO date or timestamp. You can use a quoted value such as"2026-09-04T14:30:00-07:00", or TOML's unquoted date and datetime values.A timestamp without a timezone uses the comic's configured timezone. A timestamp with
Zor an offset represents that exact time and is converted to the comic's timezone for display.Every image must be listed in an ordered
[[images]]table. TOML pages do not auto-discover images.An image's optional
title,alt_text, andthumbnailoverride page-level fallbacks.Inline
post_text,[transcripts], and[social_media]replace that page'spost.txt, transcript files, andsocial_media.json.Custom template or hook values belong in
[extra]. Keys beginning with!are intentionally not migrated into public page data.
See Adding Comic Pages for how page and image fallbacks work.
Migrating existing files
The migration tool starts in dry-run mode and does not change your files unless you pass --write.
Run these commands from the root of your comic_git repository:
Review the list of files it would create. Then write the TOML files:
The migration includes configured Extra Comics by default. Add --main-only if you only want the main comic.
After writing the files:
Review the generated TOML.
Build and inspect your site.
Commit the working migration so you have an easy recovery point.
Keep the legacy files as a backup, or remove them only after you are satisfied with the TOML build.
If you choose to remove the replaced legacy files, the migration tool can do that explicitly:
You do not need to migrate to TOML to continue using comic_git for the foreseeable future.
Last updated