Coder Social home page Coder Social logo

gvanburen / agrmin_multi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9 KB

Python script for making simple, static, multi-page websites from markdown files.

Home Page: https://gvanburen.github.io/agrmin_multi/

License: MIT License

Python 20.06% HTML 79.94%

agrmin_multi's Introduction

Agrmin_Multi: Simple Websites

Sample Site

Inspired by the Agrmin project, I decided to update the one page website generating script to allow for a the generation of a multiple page website from MultiMarkdown files. For more robust solutions check out Pelican and MkDocs. As with Agrmin the CSS was taken from bettermotherfuckingwebsite.com and slightly modified.

Setup

To build a site with agrmin_multi, the easiest thing is to clone from GitHub and delete the local repo.

git clone https://github.com/gvanburen/agrmin_multi.git project_name
cd project_name
rm -rf .git

You can then start a new repo with git init, make your first commit and push your code to GitHub.

Usage

The code includes a sample site that can be modified as needed. To generate the web page, main.py. This creates index.html and pages: pages/post_1.html, and pages/post_2.html.

python3 main.py

static/header.html and static/footer.html are static files that get added to the top and bottom of index.html, pages/post_1.html, and pages/post_2.html. Modify the static files directly.

Posts are content such as articles and stories saved as MultiMarkdown files. The links at the top of the page and separate pages are generated from the Title meta attribute in the file.

Posts are added by creating a MultiMarkdown file in posts and adding the file name to the post_paths tuple in main.py. They appear in the same order on the web page as they do in the tuple.

agrmin_multi's People

Contributors

gvanburen avatar

Watchers

James Cloos avatar  avatar

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.