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)
  • 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'
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.

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.7.tar.gz (8.3 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.7-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zvc-0.1.7.tar.gz
  • Upload date:
  • Size: 8.3 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.7.tar.gz
Algorithm Hash digest
SHA256 803a576cc86a3977ebde36cd0e3a957adaba422d98ca3843b6edab641f47da2c
MD5 354fdb52b72ee420f07f8c3cb2af535f
BLAKE2b-256 9d84e0091017693b803f4d5fc399f4a94c91ecc5af730be7946aa5643bf33b97

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvc-0.1.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: zvc-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 71337ec466ced0b9730c386ff739018b80437bc7eeddb21099be5c4de9351c7c
MD5 2a0e2257694e8420a40329bd69fd74a1
BLAKE2b-256 f2d7c6767fd91b7f1fad09553c585bdc7adb6603fa7fb87d0f867a80440361b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvc-0.1.7-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