-
-
Save jasonkarns/8ba5b8f216fdd8d57175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config/application.coffee b/config/application.coffee | |
index 0f03b1f..83e745d 100644 | |
--- a/config/application.coffee | |
+++ b/config/application.coffee | |
@@ -17,6 +17,18 @@ module.exports = lineman.config.extend "application", | |
paths: | |
archive: null | |
rss: null | |
+ pages: | |
+ cwd: "app/pages" | |
+ src: "**/*.md" | |
+ ext: ".html" | |
+ flatten: true | |
+ expand: true | |
+ posts: | |
+ cwd: "app/posts" | |
+ src: "**/*.md" | |
+ ext: ".html" | |
+ flatten: true | |
+ expand: true | |
lib: | |
Category: require('../lib/category') | |
@@ -28,6 +40,23 @@ module.exports = lineman.config.extend "application", | |
context: | |
cdn: cdn | |
+ copy: | |
+ dev: | |
+ expand: true | |
+ cwd: "app/pages" | |
+ src: ["**", "!**/*.{md,us}"] | |
+ dest: "generated" | |
+ filter: "isFile" | |
+ flatten: false | |
+ | |
+ dist: | |
+ expand: true | |
+ cwd: "app/pages" | |
+ src: ["**", "!**/*.{md,us}"] | |
+ dest: "dist" | |
+ filter: "isFile" | |
+ flatten: false | |
+ | |
pages: | |
dist: | |
context: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config/application.coffee b/config/application.coffee | |
index 0bb9795..88071d1 100644 | |
--- a/config/application.coffee | |
+++ b/config/application.coffee | |
@@ -16,6 +16,18 @@ module.exports = (lineman) -> | |
options: | |
title: "<%= pkg.title %>" | |
dateFormat: 'MMMM Do, YYYY' | |
+ paths: | |
+ pages: | |
+ cwd: "app/pages" | |
+ src: "**/*.md" | |
+ ext: ".html" | |
+ expand: true | |
+ posts: | |
+ cwd: "app/posts" | |
+ src: "**/*.md" | |
+ dest: "posts" | |
+ ext: ".html" | |
+ expand: true | |
sass: | |
options: | |
@@ -23,9 +35,15 @@ module.exports = (lineman) -> | |
copy: | |
dev: | |
- files: [ expand: true, cwd: 'static', src: '**', dest: 'generated' ] | |
+ files: [ | |
+ expand: true, cwd: "app/pages", src: ["**", "!**/*.{md,us}"], dest: "generated", filter: "isFile" | |
+ expand: true, cwd: 'static', src: '**', dest: 'generated' | |
+ ] | |
dist: | |
- files: [ expand: true, cwd: 'static', src: '**', dest: 'dist' ] | |
+ files: [ | |
+ expand: true, cwd: "app/pages", src: ["**", "!**/*.{md,us}"], dest: "dist", filter: "isFile" | |
+ expand: true, cwd: 'static', src: '**', dest: 'dist' | |
+ ] | |
htmlhint: | |
files: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment