GithubHelp home page GithubHelp logo

linemanjs / lineman-blog-template Goto Github PK

View Code? Open in Web Editor NEW
24.0 12.0 9.0 191 KB

Create your own Markdown blog with Lineman

JavaScript 3.49% CoffeeScript 25.26% HTML 2.08% CSS 0.78% Pug 68.39%

lineman-blog-template's People

Contributors

andrewmartin avatar davemo avatar jasonkarns avatar kbaribeau avatar kytrinyx avatar searls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lineman-blog-template's Issues

How to have nested folders in app/pages?

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.

Specifying fonts.

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.

[support] Accessing site object in underscore template under /app/pages

I 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.

Update documentation on how to disable RSS

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?

Troubles I had

So I started using this for just some static pages. I ran into the following things.

  • Wanted to nix the archive page, among others, but removing it from the config block wasn't enough. Had to explicitly set it to null.
  • I had a script block in some HTML in a .md file. Quotes were escaped unless the script was a root element in the .md file.
  • Files config was obvious in retrospect, but didn't see in the docs where to go because I needed img to be images to match existing resources. Also, I was just totally guessing that root element is the output directory.
  • Webfonts are only served from vendor by default? https://github.com/linemanjs/lineman/blob/master/config/files.coffee#L59
  • This defaults to less, but requires additional steps to get less support. Does sass come out of the box?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.