For the complete documentation index, see llms.txt. This page is also available as Markdown.

Extra Comics

One frequently requested feature is the ability to support multiple comics on one website. comic_git supports that with the "Extra Comics" feature! This can be used for hosting your main comic and side comics, or even setting up things like a fanart galley. An "extra comic" will function exactly like the main comic, with all the same features available for you to make use of. It can be themed, designed, and managed completely independently from your main comic, while still hosted in the same repository.

Adding Extra Comic Pages

To create an extra comic, create the folder for your extra comic in the your_content directory. You can name this folder whatever you want, but keep in mind that the name will define what the URL for your extra comic will be. For this example we'll use sidestory as the folder name.

Create a comics folder within that directory.

Create the individual comics folders within comics as described in Adding Comic Pages.

Once the comic is set up, open up the comic_info.ini file. Under [Comic Settings], add the line Extra comics = followed by the folder name for your extra comic. This is case-sensitive, so be sure not to add random capital letters. The below image shows the example Extra comics = sidestory.

You may also want to add a link to your extra comic from the Links bar. Under [Links Bar], add a line pointing to one of that comic's pages. The below image shows the example My Side Story = /sidestory/comic/001/.

And you're done! Push your changes to GitHub, and your extra comic will be available to browse!

To start with, the only pages published for your extra comic are the comic pages themselves. No home page, no archive page, etc. That means when you link to your extra comic, you'll want to link directly to one of the comic pages. So, for example, linking to the first page in the extra comic in the images above would be /sidestory/comic/001/ or https://<your username>.github.io/<your repo name>/sidestory/comic/001/#comic-image-1.

If you want your Extra Comic to have its own RSS behavior, such as its own feed file or being included in the main comic's RSS feed, see Adding an RSS Feed.

Adding More Web Pages to your Extra Comic

One of the first things you'll probably want to do is add a home page to your extra comic, and possibly an archive page as well, so people can browse it just like your main comic. To do that, you'll need to add a comic_info.ini file to your extra comics folder. If you like, you can copy the comic_info.ini file from your main comic into this folder to start.

Next, open the comic_info.ini file in a text editor and add a [Pages] section, along with the pages you want your extra comic to support.

If you're adding an index page, as in the above example, and you haven't set up a custom index.tpl template file, you'll need to put a home page.txt file in your extra comic folder as well, just like your main comic.

You may have noticed at this point that the Links Bar above your comic but below the comic banner is the same as on your main website. You may want a links bar that's unique for your extra comic. If you do, setting that up is easy. Just edit the comic_info.ini file for your extra comic to have its own Links Bar section.

All links are relative to your your_content folder, so to link to pages in your extra comic, you will need to start the link with the extra comic's directory name. Using the sidestory example, your main comic's archive would be /archive/ while your extra comic's archive would be /sidestory/archive/.

This is also where you would add a link to an Extra Comic's RSS feed if you want readers to be able to subscribe to that Extra Comic separately. For more on that, see Adding an RSS Feed.

Changing your Extra Comic's Settings

By default, your extra comics inherit all the settings from your main comic. This includes settings found in the comic_info.ini file, such as whether to use thumbnails for your archive page and how dates are formatted.

An Extra Comic may use comic_info.toml instead. If both formats exist in that Extra Comic folder, TOML is its complete override source; missing settings still inherit from the main comic. See TOML Configuration.

If you want to change any of these values for your extra comic, you just need to add that line to your extra comic's comic_info.ini file.

This also applies to RSS settings. Extra Comics inherit the main comic's RSS settings by default, but you can override them per Extra Comic. You can also decide whether an Extra Comic should be included in the main comic's RSS feed. For more on that, see Adding an RSS Feed.

Changing your Extra Comic's Theme

In addition to changing the comic_git specific settings of your extra comic, you may want to change things like the colors or font of your extra comic, to differentiate it from your main comic. To do so, you'll want to create a new theme per the Themes page, then assign that theme to your extra comic in the comic_info.ini file.

Multiple Extra Comics

comic_git supports multiple extra comics! Just create multiple folders, one for each extra comic, as described in this section. Then add all the folder names to the "Extra comics" option in a comma separated list, like so: Extra comics = sidestory, backstory, fanart_gallery

Last updated