Questions tagged [nanoc]

nanoc is a static site generator, fit for building anything from a small personal blog to a large corporate web site.

nanoc is a static site generator written in Ruby, fit for building anything from a small personal blog to a large corporate web site.

Notable sites using it

96 questions
12
votes
1 answer

How can I get the nanoc SASS filter to use SCSS syntax?

In my nanoc site, I want to specify my styles using SCSS: p { em { color: red; } } ... not SASS: p em color: red But if I try using SCSS, I get a compile error from the SASS filter. How do I get it to use SCSS?
Nathan Long
  • 122,748
  • 97
  • 336
  • 451
10
votes
1 answer

How to generate pages for each tag in nanoc

I am new to nanoc and I am still finding my around it. I am able to get my site ready, it looks good and functions good, too. But I need to have a tags area. I am able to achieve that with <%= tags_for(post, params = {:base_url =>…
user1758162
  • 171
  • 8
8
votes
1 answer

Embedding Ruby into a nanoc site doesn't work

When I attempt to loop through sorted_articles() in Ruby, the embedded code just stays the same and doesn't get compiled in the output when I run nanoc compile. Why is this? Am I embedding it wrong? I've tried all the variations below: <%= for item…
TechnicalTophat
  • 1,655
  • 1
  • 15
  • 37
7
votes
5 answers

What would be a python alternative to a system like nanoc?

Is there a python publishing system (have no idea whether this is an appropriate name for such a thing, but they're calling it that way) similar to nanoc? Generally, a thing which will convert a lot of markup/asciidoc files to HTML in an orderly…
Rook
  • 60,248
  • 49
  • 165
  • 242
6
votes
1 answer

How add own javascript file to nanoc?

again I have a problem with files in nanoc. This time I wanted to attach custom file slide.js to my blog but I cannot (don't know why - probably something is wrong with my routes). Here's my routes: compile '/js/*/' do # don’t filter or…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
5
votes
1 answer

nanoc and multiple layouts

is it possible to use multiple layouts for a specific (or all) item(s)? For example, I have a couple of items, and I want to apply two different layouts to it. One with a green and one with a blue background (however). And I want to compile them in…
23tux
  • 14,104
  • 15
  • 88
  • 187
5
votes
1 answer

Merge items in nanoc

I have been trying to use nanoc for generating a static website. I need to organize a complex arrangement pages I want to keep my content DRY. How does the concept of includes or merges work within the nanoc system? I have read the docs but I can't…
Gordon Potter
  • 5,802
  • 9
  • 42
  • 60
5
votes
1 answer

multiline code block in markdown adds unwanted tabs

today I'm implementing my page in nanoc (haml templates) and I wanted to write some posts in markdown, but when it goes to multiline code blocks something weird is happening - second line in code block has additional tabs. I've tried multiple…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
4
votes
1 answer

How do I create 'draft' items in nanoc?

I'd like to render posts to different folders depending on a status code in the metadata. For example, if I have an attribute of status: draft I'd like for these items to be rendered to a folder called /draft/, while status: live would be rendered…
Charles Roper
  • 20,125
  • 20
  • 71
  • 101
4
votes
2 answers

Replacing fork() with spawn() in nanoc live

I've got an issue with Ruby. Specifically, the spawn() and fork() methods. I'm developing a website using Nanoc on Windows, and upon trying to implement the nanoc-live gem, I get the message that fork() is unimplemented on this machine. Upon…
TechnicalTophat
  • 1,655
  • 1
  • 15
  • 37
4
votes
0 answers

Which Static Web Generator should i use?

i know average ruby language. i sort out two static web generator Nanoc and Middleman my requirements are:- easy to customize easy to learn more resources to learn so tell me which one will be better for me Nanoc or Middleman? Thanks for Reading
3
votes
2 answers

Ruby / nanoc: How do I get a list of items to display in a page?

I fully admit I am a Ruby newb, and this question could come simply out of my ignorance for Ruby. That being said, I'm getting started with the nanoc project (and loving it). I'd like to power my blog using this ... but: For the life of me, I…
Dan Esparza
  • 28,047
  • 29
  • 99
  • 127
3
votes
1 answer

nanoc site tested with unicorn

I have a nanoc site (so, all static pages) that I'd like to test with unicorn. The idea behind this is to host this site on heroku then. The structure is then a rack application. I have added a config.ru file like: require 'rubygems' require…
Luc
  • 16,604
  • 34
  • 121
  • 183
3
votes
1 answer

Must include files in nanoc always be in the layouts folder?

We would like to use server side includes (SSI) in the content of our nanoc site. This would allow us to chunk shared information and include it in multiple pages. It would also allow us to only maintain one source file of this shared information.…
Sue Y
  • 51
  • 2
3
votes
1 answer

How do I integrate nanoc and Twitter Bootstrap/Zurb Foundation?

I am making a fairly big website. Mostly on culture of a particular place. Are static sites a good idea? How do I integrate nanoc and some framework? There are a couple of github repos on this, but I wanted to this from scratch in order to learn.…
Max
  • 59
  • 1
  • 9
1
2 3 4 5 6 7