Jake Howard
97601a7b53
- Compress codebase - Remove duplicate bulky code - Use template directory to dictate sitemap
8 lines
247 B
Python
8 lines
247 B
Python
import os.path
|
|
import yaml
|
|
|
|
|
|
def generate_config(base_dir):
|
|
default = yaml.load(open(os.path.join(base_dir, 'data/context.yml'))) or {}
|
|
page = yaml.load(open(os.path.join(base_dir, 'data/page_context.yml'))) or {}
|
|
return default, page
|