Git Product home page Git Product logo

nanosite's Introduction

nanosite

nanosite is a static site generator in Python. It's designed to cut through all of the boilerplate and leave the entire structure of your site as flexible as possible. Feedback and pull requests are welcome.

For full documentation and a tutorial, check out nanosite's website: nanosite.

Features

  • Write your content in simple Markdown format, or templated HTML.
  • Create a blog or static pages or a combination of both.
  • Built-in server โ€” develop your site live.
  • Bare-bones and extremely flexible.

How to Install

nanosite uses Python 3. Download the repo and run setup.py install:

python setup.py install

How to Use

To start a new site, simply run nanosite at the terminal, in the directory you want the site to be in. Follow the prompts to generate a blank site. Run nanosite again to serve your site, which you can view at http://localhost:8000/.

Try nanosite import blog for a ready-made blog template featuring posts, static pages and an archive.

Check out the tutorial and documentation.

nanosite's People

Contributors

qema avatar lowks avatar

Stargazers

aryan avatar W1THRD avatar  avatar  avatar Jseam avatar Gerald Bauer avatar fengyun.rui avatar Raymond Chee avatar

Watchers

James Cloos avatar  avatar Jane Du avatar

Forkers

lowks rjchee

nanosite's Issues

Ver 0.1.5 nanosite build crashes with keyerror

The error report I get is this:

D:\cs\zdpage> nanosite build
Traceback (most recent call last):
  File "D:\Chtuff\python\Scripts\nanosite-script.py", line 9, in <module>
    load_entry_point('nanosite==0.1.5', 'console_scripts', 'nanosite')()
  File "d:\chtuff\python\lib\site-packages\nanosite\__init__.py", line 98, in main
    build.make_site(args.site_dir, ctx)
  File "d:\chtuff\python\lib\site-packages\nanosite\build.py", line 206, in make_site
    templates.fill_template(templates.get_template(master_tmpl_path), ctx)
  File "d:\chtuff\python\lib\site-packages\nanosite\templates.py", line 209, in fill_template
    val = str(ctx_fetch(ctx, key[1:].strip()))
  File "d:\chtuff\python\lib\site-packages\nanosite\templates.py", line 25, in ctx_fetch
    value = value(ctx, *tokenize_params(ctx, params))
  File "<string>", line 53, in make_menu
  File "<string>", line 42, in make_menu
KeyError: 'site'

where zdpage is where I had originally set up the nanosite. I downgraded back to 0.1.3 and it built again.

Backslashes

This hasn't actually hurt me yet, BuT as a Windows user I get exposed to backslash shenanigans quite frequently so

<a href='http://zhuangjindu.github.io/pages\artwork.html'>Artwork</a>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.