linemanjs / lineman-blog-template Goto Github PK
View Code? Open in Web Editor NEWCreate your own Markdown blog with Lineman
Create your own Markdown blog with Lineman
Hi, I'm using lineman for my blog, but want to specify fonts and viewport; but couldn't find how to do it. I thought there was an html template where I could modify the
but apparently that isn't the case. Would appreciate any guidance.Thanks.
I'm not sure whether this belongs to linemanjs/lineman-blog-template or testdouble/grunt-markdown-blog:
I try to achieve the following: I try to use linemanjs/lineman-blog-template for a site which has both a blog (in app/posts), as well as regular web pages in app/pages. These pages are deeply nested, such as app/pages/feature1/index.md, which should show up under generated/feature1/index.html.
It seems that the code in node_modules/grunt-markdown_blog/lib/page.coffee in the htmlPath function normally flattens all pages.
When I add this here to my config/application.js
"markdown": {
"options": {
"pathRoots": {
"pages": "*"
}
}
}
, the generated files end up under generated/app/pages/feature1/index.html instead of generated/feature1/index.html.
The default output of lineman config markdown
in a bare project is:
"rssCount": 10,
Editing this value in config/plugins/markdown.coffee
changes the output as expected:
"rssCount": 5, // or whatever
However commenting it out or deleting it simply reverts everything back to the lineman default.
When I set it to 0
, the http://localhost:8000/index.xml still has posts in it, and lineman config markdown
says:
"paths": {
// ...
"rss": "index.xml"
},
Have I misunderstood what disable RSS generation means? Am I doing it wrong?
So I started using this for just some static pages. I ran into the following things.
img
to be images
to match existing resources. Also, I was just totally guessing that root
element is the output directory.vendor
by default? https://github.com/linemanjs/lineman/blob/master/config/files.coffee#L59I am using the static lineman template to create a documentation site for my open source project. I have a handful of different categories, each of which is implemented as a subdirectory under app/pages/
.
I would like to generate a summary page for each category, which would contain the links to each of the pages within that category.
In the app/templates/wrapper.us
I have access to an object, site
, on which I have defined a property categories
:
<% site.categories = [
"Languages",
"Process",
"Topics",
"Contributing"
]
.map(function(categoryTitle){
return new site.lib.Category(site, categoryTitle)
});
I can create an underscore template in app/pages/static/
, e.g. foo.us
, and see the content at /foo.html.
However, I am unable to access site
from within app/pages/static/*.us
files.
In my configuration, I have this section
$ lineman config files
{
// ....
"pages": {
"source": "app/pages/static/**/*.*"
},
// ...
}
How might I get access to this object, site
, in my foo.us
file?
I was pairing with @theotherzach and we are both stumped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.