Coder Social home page Coder Social logo

epub's Issues

code background

I suggest to use light gray as default background to the code bloks. The balck background is a bit overwhelming

epub file is seen as a gzip archive

The file epub file produced can not be read.
I merely cloned your theme and with the example site as intended.
Size is 504K but is recognized as a gzip archive by evince, not an epub.
Nothing seems to fail but i can't read it.
Is this theme still updated or functional ?
(I used last version of hugo,hugo v0.123.8)

your sample has a bug

your epub sample you generated has a bug. THis happens for example if the images can not be found

interface conversion: interface {} is nil, not []uint8

I am trying to convert the following Hugo site to an ebook, apologies in advance I know nothing about Hugo:
https://github.com/vitessio/website

The site does work locally without modification via:
hugo server --buildDrafts --buildFuture

I then did the following:

Which results in this error:

Error: Error building site: "/home/michaelgale/workspace/website/content/en/community.md:1:1": interface conversion: interface {} is nil, not []uint8

Full output below:
hugo --cleanDestinationDir Start building sites โ€ฆ hugo v0.98.0-165d299cde259c8b801abadc6d3405a229e449f6+extended linux/amd64 BuildDate=2022-04-28T10:23:30Z VendorInfo=gohugoio ERROR 2022/05/03 11:15:24 [BUG] Got panic: interface conversion: interface {} is nil, not []uint8 goroutine 108 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 github.com/gohugoio/hugo/hugolib.newPageContentOutput.func1.1() /root/project/hugo/hugolib/page__per_output.go:99 +0xaa panic({0x208a660, 0xc00287a3f0}) /usr/local/go/src/runtime/panic.go:838 +0x207 github.com/gohugoio/hugo/markup/goldmark.(*hookedRenderer).renderHeading(0xc000ecd680?, {0x2884e90?, 0xc00330d920?}, {0xc001929000, 0xced, 0xe8c}, {0x2894150?, 0xc000ecc1b0}, 0x0) /root/project/hugo/markup/goldmark/render_hooks.go:377 +0x67e github.com/yuin/goldmark/renderer.(*renderer).Render.func2({0x2894150, 0xc000ecc1b0}, 0x60?) /go/pkg/mod/github.com/yuin/[email protected]/renderer/renderer.go:166 +0xc7 github.com/yuin/goldmark/ast.walkHelper({0x2894150, 0xc000ecc1b0}, 0xc003463760) /go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:503 +0xbe github.com/yuin/goldmark/ast.walkHelper({0x2893cd0, 0xc000ecc120}, 0xc003463760) /go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:498 +0x8e github.com/yuin/goldmark/ast.Walk(...) /go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:487 github.com/yuin/goldmark/renderer.(*renderer).Render(0xc000098c30?, {0x2871840?, 0xc00330d920?}, {0xc001929000?, 0xced?, 0xe8c?}, {0x2893cd0?, 0xc000ecc120?}) /go/pkg/mod/github.com/yuin/[email protected]/renderer/renderer.go:161 +0x225 github.com/gohugoio/hugo/markup/goldmark.(*goldmarkConverter).Convert(0xc001377680, {{0xc001929000, 0xced, 0xe8c}, 0x1, 0xc00330d530}) /root/project/hugo/markup/goldmark/convert.go:195 +0x4d2 github.com/gohugoio/hugo/hugolib.(*pageContentOutput).renderContentWithConverter(0xc00142a540, {0x2879350?, 0xc001377680?}, {0xc001929000?, 0x0?, 0x0?}, 0x0?) /root/project/hugo/hugolib/page__per_output.go:580 +0xa3 github.com/gohugoio/hugo/hugolib.(*pageContentOutput).renderContent(0xc00142a540, {0xc001929000, 0xced, 0xe8c}, 0x0?) /root/project/hugo/hugolib/page__per_output.go:576 +0x8a github.com/gohugoio/hugo/hugolib.newPageContentOutput.func1() /root/project/hugo/hugolib/page__per_output.go:124 +0x30e github.com/gohugoio/hugo/hugolib.newPageContentOutput.func2({0x0?, 0x0?}) /root/project/hugo/hugolib/page__per_output.go:199 +0x1b github.com/gohugoio/hugo/lazy.(*Init).withTimeout.func1() /root/project/hugo/lazy/init.go:188 +0x3c created by github.com/gohugoio/hugo/lazy.(*Init).withTimeout /root/project/hugo/lazy/init.go:187 +0x11e Error: Error building site: "/home/michaelgale/workspace/website/content/en/community.md:1:1": interface conversion: interface {} is nil, not []uint8 Total in 482 ms

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.