mini-hugo-webcomic is a minimal, responsive webcomic template built with the static site generator Hugo. It was created for my comic, Academy 118.
Not into Hugo? Try mini-php-webcomic!
First clone this repository:
git clone https://github.com/AvaLovelace1/mini-hugo-webcomic.git
cd mini-hugo-webcomicThen, install Hugo and run:
hugo serveThis will start a local development server at http://localhost:1313.
Visit http://localhost:1313 to preview your site.
The site will automatically reload when you make changes.
When you're ready to publish the site, run:
hugoThis generates site pages in a new directory called public.
Copy the contents of this directory to your web server's root directory, and you're done!
This template’s layout and styling are intentionally kept bare-bones to allow for easy customization. You can modify
the site to your heart’s content by editing the .html and assets/scss/main.scss files.
Adjust global site options such as title and author by modifying the hugo.toml file.
Comics are organized into chapters. Each chapter contains one or more comic pages.
To add a new chapter, place a thumbnail image for the chapter in assets/img/comic
with the filename [CHAPTER_ID]_thumb.[EXTENSION]. Then, run:
hugo new content --kind chapter comic/[CHAPTER_ID]/_index.mdThis creates a Markdown file containing chapter information at content/comic/[CHAPTER_ID]/_index.md.
To change the chapter information, modify the frontmatter of this file. Frontmatter options include:
title: A human-readable version of the chapter title.chapterID: A short string identifying the chapter. This must be the same as the[CHAPTER_ID]above.build.render: This should be kept as'never'to prevent Hugo from generating an extra page for the chapter.
To add a new comic page to an existing chapter, place the comic page image in assets/img/comic
with the filename [CHAPTER_ID]_[3-DIGIT-PAGE_NUMBER].[EXTENSION]. Then, run:
hugo new content --kind comic-page comic/[CHAPTER_ID]/[PAGE_NUMBER].mdThis creates a Markdown file containing comic page information at content/comic/[CHAPTER_ID]/[PAGE_NUMBER].md.
To change the comic page information, modify the frontmatter of this file. Frontmatter options include:
date: The publication date of the comic page.characters(optional): A list of the characters who appear on the comic page.hover(optional): The title-text that appears when you hover over the comic page image.
Warning
Comic pages are displayed in ascending order by date. They are not ordered by page number!
If several comic pages have the exact same date, they will not necessarily be ordered correctly. Therefore, if you publish several comic pages on one day, make sure their dates differ by at least one second.
Non-comic pages (such as an “About” or “Extras” page) can be added with:
hugo new content [TITLE].mdYou may add this page to the navbar by creating an additional menu.main entry in hugo.toml.