welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.

Home Page:https://welpo.github.io/tabi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example website images leak into generated output

xvello opened this issue · comments

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/

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

I'll start working on a fix.

Done! #200

Thanks a lot Óscar! 🙇

Thank you for reporting it and using tabi!