mdxprograms / fastic

Flask based static site boilerplate/generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fastic

Flask based static site boilerplate/generator

Netlify Status

Deploy to Netlify

requirements

python 3

setup

make create-venv && echo "DEBUG=True" > .env

run dev

make dev

run build

make build

Using Collections

If you have a need for collections you can specify the folder within config.py

Example: collections = ['products']

This will grab all .md files within pages/products and add them to the collections dict to use in your templates.

Assuming there would be a title frontmatter property in a products collection file.

{% for product in collections.products %}
  <h3>{{ product.title }}</h3>
{% endfor %}

About

Flask based static site boilerplate/generator


Languages

Language:Python 67.2%Language:HTML 19.9%Language:SCSS 6.4%Language:Makefile 6.0%Language:JavaScript 0.6%