Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lambblog

Markdown static blog generator made with Python, used at https://lambdan.se/blog/

This is a new rewrite of lambblog, which previously was dynamic using PHP, so there are still features missing and lots of things I haven't tested.

I cannot really recommend anyone but me using it at this point :)

Features

  • Valid RSS Feed
  • Stats page with some silly metrics
  • Mirrors full quality images and also creates lower quality versions for faster loading
  • Looks good on mobile
  • Support for link posts

Usage

This is made for my own blog, but if you wanna use it, you can:

  • Place this script in a new folder
  • In the folder called posts goes your Markdown formatted text files/blog posts
    • See examples in the repo, the first 3 lines are important
  • In the folder called pages goes your about.html and misc.html pages
    • If you want more pages, you can add more but you have to modify the generateHeader() def to include them (ideally this will be done automatically eventually)
    • The very first line of these HTML files must be the title of the page. These pages will be wrapped in the css-class article.
    • See examples in the repo.
  • Next to the script, create a folder called includes, in here goes stuff you want in the root of your site, such as CSS files, favicons
  • pip3 install python-dateutil python-slugify markdown2 Pillow bs4 requests feedgen pyrss2gen tweepy feedparser
  • Then run the script: python generate_site.py --root-url https://example.com/blog/
    • This will output the resulting files to ./_output/
    • You can output to another folder using --root-folder /folder/folder2/folder3/
  • The script will confirm that you want to continue with a simple Continue? y/N prompt
  • Copy the resulting files to your site's root folder

About

blogging engine used on lambdan.se

Resources

License

Releases

No releases published

Packages

No packages published