welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
127 stars 38 forks source link

Example website images leak into generated output #199

Closed xvello closed 1 year ago

xvello commented 1 year ago

Bug Report

Thanks for this great theme! I'm using it for https://xvello.net/

While deploying my website, I was surprised by the size of the generated output, and it turns out that a lot of unnecessary images are copied over:

Environment

Zola version: 0.17.2 tabi commit: c0a07cb

Expected Behavior

Only required static assets are copied to the generated website.

Current Behavior

public/img/ contains 6MiB of images from the example content. Co-locating these images in the contents/ folder would avoid this.

Step to Reproduce

zola init
git clone https://github.com/welpo/tabi.git themes/tabi
cat <<EOF > config.toml
base_url = "https://example.com"
theme = "tabi"
title = "Your Site Title"
EOF
cat <<EOF > content/_index.md
+++
title = "Home"
paginate_by = 5 # Set the number of posts per page
template = "index.html"
+++
EOF
zola build

du -hs public/img/
6,2M    public/img/
welpo commented 1 year ago

Thanks for reporting this, Xavier! I had not noticed this issue, but it's an important one.

I'll start working on a fix.

welpo commented 1 year ago

Done! #200

xvello commented 1 year ago

Thanks a lot Óscar! :bow:

welpo commented 1 year ago

Thank you for reporting it and using tabi!