Skip to main content

static blog generator

Project description

logo

Lint Version


install

pip3 install zvc

help

> zvc --help 

 Usage: zvc [OPTIONS] COMMAND [ARGS]...

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.      │
│ --show-completion             Show completion for the current shell, to copy │
│                               it or customize the installation.              │
│ --help                        Show this message and exit.                    │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ init    Initialize the blog structure with required directories and config   │
│         file.                                                                │
│ clean   Clean the generated files                                            │
│ build   Build the static site.                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

init

> mkdir blog 
> cd blog 
> zvc init 
Initializing blog structure...
Created directory: contents
Created directory: themes
Created directory: themes/default
Created directory: themes/default/assets
Created file: config.yaml
Created file: themes/default/index.html
Created file: themes/default/post.html
Created file: themes/default/assets/style.css
Created directory: docs
Initialization complete!

build

> zvc build 
Building static site...
Cleared directory: docs
Copying theme assets from: themes/default/assets
Theme assets copied to: ./docs/assets
  Converting markdown files... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
Created index.html: docs/index.html
Build complete!

run

> python -m http.server 8000  --directory ./docs 

example

Markdown Frontmatter

zvc supports frontmatter in markdown files. You can add metadata at the top of your markdown files using YAML format.

Supported Fields

  • title: Post title
  • author: Post author (optional)
  • status: Post status - draft or published (default: published). Draft posts are excluded from build output.
  • pub_date: Publication date (YYYY-MM-DD format)
  • description: Post description
  • featured_image: URL to featured image
  • tags: List of tags

Example

---
title: 'My First Post'
author: 'John Doe'
status: 'published'
pub_date: '2024-07-13'
description: 'This is my first blog post'
featured_image: ''
tags: ['blog', 'tutorial']
---

# Your Content Here

Write your blog post content below the frontmatter.

The author field will be displayed in both the post page and the index page alongside the publication date.

Setting status: 'draft' will exclude the post from the build output. If not specified, the default is published.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zvc-0.1.8.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zvc-0.1.8-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file zvc-0.1.8.tar.gz.

File metadata

  • Download URL: zvc-0.1.8.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zvc-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c9f3615057fb8f729ce89d32dae20b9ae9742e3b32b745f52cc62d3f8ff700ba
MD5 c5bc8a58b302adcf69efca6a46649af1
BLAKE2b-256 492c8d535d72d35d04a2a27f5b70c794b86d9aa03a4d2e1afe3d2b98a159d249

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvc-0.1.8.tar.gz:

Publisher: deploy.yml on ash84-io/zvc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvc-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: zvc-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zvc-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6a013238f39da739ff0569e657b5436e2c9afec64069b58b0c075fb6afbc6988
MD5 708cd3ad1df0a434f3bd5985c64b55af
BLAKE2b-256 e4a37ee8b7a3c042bbee51ea9d1bf5aa80936db6a43c4fdc12c579316f798313

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvc-0.1.8-py3-none-any.whl:

Publisher: deploy.yml on ash84-io/zvc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page