Hugo Sizer
Small python CLI to compute and insert sizes of any routes in a Hugo static website.
Getting Started
Prerequisites
This CLI call the Hugo command, you will need to have it in your path
Installing
This command is available on PyPI, you can install it with :
pip install hugo-sizer
Usage
You will need to include in your template an HTML tag with the id hugo-sizer and any text inside (ex. XX), this text will be replace by the actual size.
A basic usage is :
<div class="floating-size">
This page download only <span id="hugo-sizer">XX</span> kB.
</div>
.floating-size{
position: fixed;
top: 0;
right: 0;
}
After installing and generating your site public folder, you can run the cli in your Hugo project root directory:
hugo-sizer
License
This project is licensed under the MIT License
Metadata
Release files for hugo-sizer 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hugo_sizer-0.2.1.tar.gz | 4.2 kB | Without provenance | Details for hugo_sizer-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hugo_sizer-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for hugo_sizer-0.2.1-py3-none-any.whl |
Total release size: 8.8 kB
Release files / hugo_sizer-0.2.1.tar.gz
| Download URL | hugo_sizer-0.2.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f75813377c01e3c0aadd94d008f7145ecacb6f5622977f4e3393856932b5b7d
|
|
BLAKE2b-256 checksum How to use checksums |
1ad6e9ea752958f5a95335a1f24703d62122034270e8d5a91ab934de1a1f98d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / hugo_sizer-0.2.1-py3-none-any.whl
| Download URL | hugo_sizer-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb7e0b493941008f51a64fa7c8fa122c8d6d4471ae99c7860c63a8e14577564f
|
|
BLAKE2b-256 checksum How to use checksums |
5a77fb22792f1e7702835a76097c027bd9ebde3ebb1adde14cde57b9127c9eec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for hugo-sizer 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.