Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 973 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 973 Bytes

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 %}