No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hugo_sizer-0.2.1.tar.gz.
File metadata
- Download URL: hugo_sizer-0.2.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f75813377c01e3c0aadd94d008f7145ecacb6f5622977f4e3393856932b5b7d
|
|
| MD5 |
92a66054f4be6f7c1635046218ba6c5b
|
|
| BLAKE2b-256 |
1ad6e9ea752958f5a95335a1f24703d62122034270e8d5a91ab934de1a1f98d8
|
File details
Details for the file hugo_sizer-0.2.1-py3-none-any.whl.
File metadata
- Download URL: hugo_sizer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb7e0b493941008f51a64fa7c8fa122c8d6d4471ae99c7860c63a8e14577564f
|
|
| MD5 |
4f5b552ba9e28493d7ff3678618b0f56
|
|
| BLAKE2b-256 |
5a77fb22792f1e7702835a76097c027bd9ebde3ebb1adde14cde57b9127c9eec
|