Skip to main content

The most minimal blog engine you've never heard of

Project description

_I wrote about [my reasoning](http://www.juanpatten.com/first-post.html_

## Start your blog

1. Fork [unn-skeleton](https://github.com/runningskull/unn-skeleton)
2. Clone your new repository to your computer (optionally, run `mkvirtualenv myblog`)
3. Run `pip install -r requirements.txt`
4. Edit config.py to set up your deployment settings (default is S3)
5. Think of something good to write (this step is harder than the others)


## Use it day-to-day

`unn idea my-idea` to start a new draft. Use markdown for formatting.
`unn publish my-idea` to converta draft to a post.
`unn build` to build your site's pages.
`unn local` to serve it locally.
`unn deploy` to push it live. (this will build first, as a convenience)


## Customize it
Check the `_template` folder for the basic file structure. `unn` uses Jinja2 for templating.

The `index.html` template gets the following context:
```
{
"posts": [{
"Slug": "the-file-name-without-.md"
... all headers included in this post ...
}, ...]
}
```


The `single.html` template gets the following context:
```
{
"post_html": "<p>The rendered HTML of the post</p>",
... all headers included in this post ...
}
```

`base.html` defines the box that `index.html` and `single.html` live inside (ie. header/footer).
`error.html` is a generic error display page.

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

unn-0.0.14.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file unn-0.0.14.tar.gz.

File metadata

  • Download URL: unn-0.0.14.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for unn-0.0.14.tar.gz
Algorithm Hash digest
SHA256 2be639dbe4e6d07367559c94579e28da500aefdab09c43d9101f50940f3bf102
MD5 9d92cc9fa6bef2251bb772fa350ca5e5
BLAKE2b-256 e71cfd8601e012dc629a9f5f24c264d6794dc1c4c6bdaea7e52a178577008ce8

See more details on using hashes here.

Supported by

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