Hi,
I am obviously new to webgen, as my problem is a fairly simple yet one
that I can''t seem to solve on my own.
I am using webgen 0.5.11.
I only want those pages that have "has_sidebar: true" is set in their
page header to have a side bar. Like so:
---
title: Welcome
in_menu: true
routed_title: Home
sort_info: 0
has_sidebar: true
---
[Rest of the page goes here]
I did find this post:
http://rubyforge.org/pipermail/webgen-users/2008-October/000346.html
Accordingly, I tried:
<% if node[''has_sidebar''] == "true" %>
[HTML block that generates side-bar]
<% end %>
All that earns me, however, is
An error has occurred:
Error in </default.template:~43> while rendering </index.en.html>
with Webgen::ContentProcessor::Erb:
undefined local variable or method `node'' for
#<Webgen::ContentProcessor::Erb:0x6f6fe0>
If I use
<% if
content_node.node_info[:page].blocks.has_key?(''has_sidebar'')
%>
instead, I get get an error as well:
undefined local variable or method `content_node'' for
#<Webgen::ContentProcessor::Erb:0x6f3000>
I am clearly doing something very obvious wrong. Does anybody have any
pointers what that might be?
Thanks,
-Markus