Skip to content

Commit

Permalink
Started on audit folder generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsushita committed Jul 18, 2017
1 parent 5f72c24 commit 318f2bb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
26 changes: 16 additions & 10 deletions audits-start.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
source: audits/
source: content/audits
clean: false
frontmatter: true
metadata:
site:
title: SAFETAG
baseurl: '/toolkit'
plugins:
- metalsmith-transclude: true

- metalsmith-yaml: true
- metalsmith-debug: {}

# Copy client side assets
- metalsmith-assets-improved:
src: code/public
replace: all
src: code/assets
dest: .
- metalsmith-pandoc:
pattern: "**/*.md"
from: markdown_github+definition_lists+raw_html+markdown_in_html_blocks+link_attributes
- metalsmith-debug: {}
# Wrap rendered file in html templates.
- metalsmith-layouts:
engine: pug
pattern: "**/*.html"
directory: code/_layouts
directory: code/templates
includes: includes
default: page.pug
- metalsmith-watch:
livereload: 35740
paths:
"${source}/*.yml": true
plugins:

# plugins:
# metalsmith-env: {}
# metalsmith-metadata:
# practices: data/practices.csv
Expand Down
9 changes: 9 additions & 0 deletions code/templates/audit.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends html

block main
.docs-section
if (title)
h1.docs-header= title
else
.space
!= contents
4 changes: 2 additions & 2 deletions content/audits/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
type: template
metalsmith: ../audit.yml
layout: audit.pug
metalsmith: ../audit.yml
metadata:
organisation:
start-date:
Expand Down

0 comments on commit 318f2bb

Please sign in to comment.