The static.py blog is live on github pages

edit delete create : 2016-02-16 18:01:38    : 2016-04-17 01:04:14 : permalink
 
 

static.py (a static site engine written in python) Now live on github pages

  • look at the comments. This is a static site using twitter for comments. This is sooo coool. No Third parties like disqus .. just Twitter and still a static html site.
  • simplified the dir structure so you can just upload to name.github.io repo.

simple dirs

workflow: to generate your static blog or site

  • generate the blog

    python generate_blog.py
    
  • copy the site dir contents (see above) to you r name.github.io repo

  • add, commit and push the changes

    git add --all
    git commit -a -m "your summary of the changes"
    git push origin master
    
  • and you are live. See here

todo

  • automate the git commit and push process to the name.github.io repo
  • make a generate_site script to start with an (almost) empty site

 

Currently writing static.py

edit delete create : 2016-02-13 23:50:16    : 2016-02-16 12:50:24 : permalink
 
 

static.py is (yet another) static blog/page/singlepage generator for python

But it has quite a few nice features to be up and running out of the box:

if you want to make a blog or single page => you're done!

  • supports blogs, pages, posts and single pages
  • tagging on board
  • pre rendered tag views on board (click on a tag and you see all posts with that tag)
  • tag cloud on board (see snapshots below)
  • simple pagination (newer, older) on board
  • syntax highlighting with highlight.js on board
  • charts.js on board and usable in the posts / pages directly
  • d3.js demo with loading data from csv file on board.
  • everthing in posts and pages is markdown
  • you can add your own javascript or css in every post or template
  • pre_rederers: call any of your own python functions before rendering
  • based on bootstrap4
  • very sophisticated template engine based on tornado {{val}}
  • image gallery on board

the goal is to make you just run in a second if you wish to make

  • a blog
  • a single page or landing page
  • specific pages for a topic including charts, articles.

workflow

  1. write a markdown text.
  2. generate the blog
    python generate_blog.py

  3. run test_server (if happy copy to your server, webhoster or github done

looks like this with the default theme (bs4_blog)

unix

here is a post (default theme)

unix

here is the d3.js example (loading csv data)

unix

here is the image gallery example

unix

 

Interesting on the web

edit delete create : 2015-12-11 22:32:55    : 2015-12-11 22:32:55 : permalink