-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit da620f5
Showing
5 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules | ||
|
||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# lineman-blog | ||
|
||
This is a plugin to get started writing a blog with | ||
[Lineman](http://linemanjs.com) managing the build and bringing with it both excellent markdown parsing as well as static asset (JS/CSS) management. We recommend you look at our | ||
[Blog template project](https://github.com/testdouble/lineman-blog-template/) | ||
as a starting point. | ||
|
||
If you'd like to add this to a fresh Lineman project on your own, just: | ||
|
||
``` | ||
$ npm install --save-dev lineman-blog | ||
``` | ||
|
||
And then start adding Underscore templates to `app/templates/**/*.us`, posts to `app/posts/*.md`, and static pages to `app/pages/**/*.md`. Refer to the [Lineman docs](http://linemanjs.com) for details about how to use Lineman generally. | ||
|
||
To review what the default configuration and paths are specific to this plugin, run: | ||
|
||
``` | ||
$ lineman config markdown | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
module.exports = (lineman) -> | ||
app = lineman.config.application | ||
|
||
files: | ||
pages: | ||
source: ["app/pages/**/*.*", "!app/pages/**/*.md"] | ||
|
||
markdown: | ||
posts: "app/posts/*.md" | ||
pages: "app/pages/**/*.md" | ||
templates: "app/templates/**/*.us" | ||
|
||
config: | ||
|
||
loadNpmTasks: app.loadNpmTasks.concat("grunt-markdown-blog") | ||
|
||
prependTasks: | ||
common: app.prependTasks.common.concat("markdown:dev") | ||
dist: app.prependTasks.dist.concat("markdown:dist") | ||
|
||
markdown: | ||
options: | ||
author: "FirstName LastName" | ||
title: "my lineman blog" | ||
description: "where I post all my brilliant ideas" | ||
url: "http://www.mylinemanblog.com" | ||
rssCount: 10 #<-- remove, comment, or set to zero to disable RSS generation | ||
#disqus: "my_disqus_name" #<-- uncomment and set your disqus account name to enable disqus support | ||
layouts: | ||
wrapper: "app/templates/wrapper.us" | ||
index: "app/templates/index.us" | ||
post: "app/templates/post.us" | ||
page: "app/templates/page.us" | ||
archive: "app/templates/archive.us" | ||
paths: | ||
posts: "<%= files.markdown.posts %>" | ||
pages: "<%= files.markdown.pages %>" | ||
index: "index.html" | ||
archive: "archive.html" | ||
rss: "index.xml" | ||
pathRoots: | ||
posts: "posts" | ||
pages: "" | ||
|
||
dev: | ||
dest: "generated" | ||
context: | ||
js: "/js/app.js" | ||
css: "/css/app.css" | ||
|
||
dist: | ||
dest: "dist" | ||
context: | ||
js: "/js/app.js" | ||
css: "/css/app.css" | ||
|
||
watch: | ||
markdown: | ||
files: ["<%= files.markdown.posts %>", "<%= files.markdown.pages %>", "<%= files.markdown.templates %>"] | ||
tasks: ["markdown:dev"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
version: require('./package').version | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "lineman-blog", | ||
"title": "An Markdown blogging plugin for Lineman", | ||
"version": "0.0.1", | ||
"homepage": "https://github.com/testdouble/lineman-blog", | ||
"author": { | ||
"name": "Justin Searls", | ||
"company": "Test Double" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/testdouble/lineman-blog.git" | ||
}, | ||
"main": "main.js", | ||
"dependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-markdown-blog": ">= 0.2.0", | ||
"coffee-script": "~1.6.3" | ||
}, | ||
"devDependencies": { | ||
}, | ||
"peerDependencies": { | ||
"lineman": ">= 0.19.0" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://mit-license.org" | ||
} | ||
] | ||
} |