Skip to content

Instantly share code, notes, and snippets.

@mariocesar
Created February 20, 2013 00:12
Show Gist options
  • Save mariocesar/4991519 to your computer and use it in GitHub Desktop.
Save mariocesar/4991519 to your computer and use it in GitHub Desktop.
An idea in progress. #jekyll #pelican. A more convenient way to make static sites
---
site_name: C1.com.bo
description: C1
keywords: design, bolivia
build_dir: htdocs
apps:
blog:
handler: constructor.handlers.BlogHandler
sitemap: true
disqus: true
layout: _layouts/base.html
photos:
handler: constructor.handlers.PhotogramHandler
watermark: static/_watermark.png
flickr: mariocesar
twitter: mariocesar_bo
robots.txt:
handler: constructor.handlers.RobotsHandler
sitemaps.xml:
handler: constructor.handlers.SitemapHandler
static:
storage: constructor.storages.FileSystem
static_root: static/
static_url: /static/
patterns:
- ^(?P<path>.+\.html)$:
- constructor.processors.Jinja2Template
- ^(?P<path>.+\.md)$:
- constructor.processors.MarkdownTemplate
- ^.+\.(png|jpg)$:
- constructor.processors.OptimizeImageProcessor
- ^static/libs/master.scss$:
- constructor.processors.CompassProcessor
- ^static/css/.+\.css$:
- constructor.processors.MinifyCSS
constructor.processors.MinifyCSS:
debug: true
constructor.processors.MarkdownTemplate:
debug: true
constructor.processors.OptimizeImage:
size_threshold: 10024 # 10Kb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment