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
0
votes
1 answer

Caching with static sites - nanoc

I am using nanoc for one of my sites. I am wondering is there a way to do some good caching for the website. because everytime i update the page i need to hard refresh or refresh couple of times to have changes updated on the browser. What should i…
Leonard
  • 3
  • 3
0
votes
1 answer

How to create basic posts/blog with nanoc and then have it in the feed?

I just started with nanoc. I am wondering if someone can explain me how I should create blog posts and how to add them in the feed? I know how to create items, but how do I create posts in the blog folder? Also how to show the 5 most recent posts?
shayonj
  • 900
  • 9
  • 14
0
votes
2 answers

Ruby gem for sending emails after a contact form is filled

I am using to nanoc to create a static website. We have a form in their, which i would like to be emailed once filled. Is there a way to do that ?is there a ruby gem for that ? or php any other easy solution ?
shayonj
  • 900
  • 9
  • 14
0
votes
1 answer

nanoc or ruby link_to questions

I have an href tag
  • Home
  • Which i need to convert to
  • <%= link_to('Home', '/Home/') %>
  • But when I enter it reads an error. How do i enter . So that its the same as href tag…
    Gaurav Shah
    • 31
    • 2
    • 7
    0
    votes
    2 answers

    What to do?`nanoc compile` runs correctly. `bundle exec nanoc compile` does not

    Wen I run nanoc compile on my nanoc site everything builds. When I run bundle exec nanoc compile I get this error message: RuntimeError: Error processing : /markup/post/ undefined method `gsub!' for 2008-01-28 15:44:48 -0500:Time ===…
    Michael Barton
    • 8,868
    • 9
    • 35
    • 43
    0
    votes
    0 answers

    Return specific markup in helper when building atom_feed in Nanoc

    In my Nanoc based blog I have a helper that builds a bunch of html which only makes sense in the web version of the article. I'd like to emit different markup when the article is compiled via the atom_feed helper in order to render something that…
    michaelem
    • 11
    • 4
    0
    votes
    1 answer

    Config Nanoc in Docker Error facing "Nanoc::Core::ConfigLoader::NoConfigFileFoundError: No configuration file found"

    I try to create nanoc Markdown Documentation page deployment using docker. Docker container was created successfully. While running the container i am getting the nanoc configuration error and container stopped. I have mentioned the steps…
    0
    votes
    1 answer

    The While running Docker container getting error "current working directory, nor any of its parents, seems to be a Nanoc site"

    My docker file FROM ruby:latest # Create app directory WORKDIR /usr/src/app COPY Gemfile . # Copy the files COPY . ./docs RUN bundler install RUN bundle exec nanoc EXPOSE 5300 CMD [ "nanoc", "view" ] While Running the build…
    0
    votes
    1 answer

    Nanoc rules to process markdown files

    My current rules file looks as follows: #!/usr/bin/env ruby ### COMPILATION RULES # Don’t filter or layout assets compile %r{^/(favicon|robots|crypto/.*|stylesheets/.*|javascript/.*|plugins/.*|fonts/.*|images/.*|photos/.*|keybase.txt)/$} do end #…
    kingmakerking
    • 2,017
    • 2
    • 28
    • 44
    0
    votes
    1 answer

    How to redefine layout for custom page

    I use nice a site-generator on ruby nanoc (http://nanoc.stoneship.org/). I need to redefine the layout for rendering some pages. Maybe it can be determined directly in yaml config? For example, I have some layout (my_layout.html), but I want to…
    Sanchosrancho
    • 73
    • 1
    • 8
    0
    votes
    2 answers

    error deploying static webpage build with nanoc on github with orphan git branch

    I followed this tutorial on the nanoc webpage to deploy my webpage on github. I followed these instructions % rm -rf output % git clone . output % cd output output@master% git checkout --orphan gh-pages output@gh-pages% git rm -rf output@gh-pages%…
    theDrifter
    • 1,631
    • 6
    • 24
    • 40
    0
    votes
    0 answers

    Nanoc 4.7.10 and Bootstrap integration

    Does anyone have any instructions on how to integrate Bootstrap into Nanoc? I have googled this but have not found a tutorial that would guide me through the initial integration setup. Can anyone provide a quick walkthrough to get me started?
    JustAl
    • 61
    • 2
    0
    votes
    1 answer

    Next and Prev buttons for pages in the same folder in nanoc

    I'm building a static generator for a getting started guide and I am grouping pages for the same guide into a folder. how would I add a footer to the bottom of the generated pages for next and previous pages?
    Joseph Le Brech
    • 6,541
    • 11
    • 49
    • 84
    0
    votes
    1 answer

    Global variable in nanoc

    I'm building a site with nanoc and cannot find out how to use a global variable that could be incremented on the compilation of each page. The idea behind this is to get the list of all tags (incrementing the appearance number each time a tag is…
    Luc
    • 16,604
    • 34
    • 121
    • 183
    0
    votes
    1 answer

    Gitlab pages & nanoc -> Errno::ENOENT: No such file or directory

    I'm trying out gitlab pages with a static website which is compiled via nanoc. When I commit my code to my gitlab repo the runner fails to compiling it. I get following error message: Runner output: Running with gitlab-ci-multi-runner 1.6.0…
    chris h.
    • 265
    • 1
    • 4
    • 18