Git Product home page Git Product logo

avalovelace1 / mini-hugo-webcomic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 22.62 MB

A minimal, responsive webcomic template built with Hugo. Features easy addition of new pages with Markdown. No PHP or databases required!

Home Page: https://avalovelace1.github.io/mini-hugo-webcomic/

License: MIT License

JavaScript 9.02% SCSS 0.28% HTML 90.70%
hugo no-database webcomic webcomic-cms webcomics webcomics-platform

mini-hugo-webcomic's People

Contributors

avalovelace1 avatar

Watchers

 avatar

mini-hugo-webcomic's Issues

Archive page breaks

In the artist-three chapter, the 2nd page is dated Feb 8, 2024.

Screenshot from 2024-02-11 18-31-03

If I add another page in artist -two chapter, and date it Feb 9, 2024, the archive page will break.

Screenshot from 2024-02-11 18-40-00

Thanks for sharing your mini Hugo Webcomic theme.

Resize function fails on addition of new content

Upon adding new Jpeg files to assets/img/comic and creation of the appropriate page, hugo fails to run, throwing the following error message:

ERROR render of "page" failed: "[path]Sites/mini-hugo-webcomic/layouts/page/archive.html:10:32": execute of template failed: template: page/archive.html:10:32: executing "main" at <$page.comicThumbImgRaw.Resize>: nil pointer evaluating interface {}.Resize
ERROR render of "home" failed: "[path]Sites/mini-hugo-webcomic/layouts/index.html:3:6": execute of template failed: template: index.html:3:6: executing "main" at <partial "comic/comic.html" $comics.lastPage>: error calling partial: "[path]Sites/mini-hugo-webcomic/layouts/partials/comic/comic.html:3:20": execute of template failed: template: partials/comic/comic.html:3:20: executing "partials/comic/comic.html" at <$page.comicImgRaw.Resize>: nil pointer evaluating interface {}.Resize
Built in 40 ms
Error: error building site: render: failed to render pages: render of "page" failed: "[path]/Sites/mini-hugo-webcomic/layouts/comic/single.html:2:6": execute of template failed: template: comic/single.html:2:6: executing "main" at <partial "comic/comic.html" .>: error calling partial: "[path]/Sites/mini-hugo-webcomic/layouts/partials/comic/comic.html:3:20": execute of template failed: template: partials/comic/comic.html:3:20: executing "partials/comic/comic.html" at <$page.comicImgRaw.Resize>: nil pointer evaluating interface {}.Resize

This does not happen if only the default content is present. As far as I can tell, I've followed all instructions correctly and I wonder if there isn't something that works differently between Hugo versions. My version of Hugo is

hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew

Thanks for sharing this template!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.