Welcome to Inelegant Hack
Welcome to Inelegant Hack
This is my first post on this shiny new static site! I built this using a custom static site generator that I created with Python and Jinja2.
Features
This static site generator includes:
- Markdown support with frontmatter for metadata
- Jinja2 templating for flexible layouts
- Neocities deployment via their API
- Clean, minimal design that's easy to customize
How It Works
The generator:
- Reads markdown files from the
content/postsdirectory - Parses frontmatter metadata (title, date, tags, etc.)
- Converts markdown to HTML
- Renders everything through Jinja2 templates
- Outputs a complete static site ready for deployment
Code Example
Here's a simple Python example:
def hello_world():
print("Hello from Inelegant Hack!")
return "🚀"
Deploying to Neocities
Deployment is as simple as running:
uv run deploy
The uploader will automatically push all files in the output directory to your Neocities site using their API.
What's Next?
I'm planning to add more features like:
- RSS feed generation
- Better syntax highlighting
- Archive pages by tag
- Image optimization
Stay tuned for more posts!