| ... | in post_page.naml | 
| 
		 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 
	 | 
						
		 
				<override_macro name="topic" requires="servlet">
			 
				  <n.comment.>
			 
				    if this is the post under the root node (used for homepage),
			 
				    just go to the homepage
			 
				  </n.comment.>
			 
				  <n.if.get_node_from_parameter.parent_node.equals.root_node>
			 
				    <then.redirect_to.base_url/>
			 
				  </n.if.get_node_from_parameter.parent_node.equals.root_node>
			 
				  <n.topic_min_html>
			 
				    <head>
			 
				      <n.topic_common_head/>
			 
				      <n.topic_meta/>
			 
				      <n.increment_view_count/>
			 
				    </head>
			 
				    <body>    
			 
				       <div style="padding:0 .5em 2em">
			 
				        <div style="float:right">
			 
				          <n.page_node.google_plus_one_button/>
			 
				        </div>
			 
				        <h1 id="post-title" style="margin:.7em 0 .8em">
			 
				          <n.break_up.page_node.subject/>
			 
				        </h1>
			 
				        <div class="post-message">
			 
				          <n.page_node.node_message_as_html/>
			 
				        </div>
			 
				        <n.topic_footer/>
			 
				      </div>
			 
				    </body>
			 
				  </n.topic_min_html>
			 
				</override_macro>
			 
	 | 
					
| ... | in topic.naml | 
| 
		 1 2 3 4 5 6 7 8 9 10 11 12 13 14 
	 | 
						
		 
				<macro name="topic" requires="servlet">
			 
				    <n.if.is_blog_topic>
			 
				        <then.switch. value="[n.topic_view/]">
			 
				            <n.case value="[n.classic_view/]" do="[n.classic_blog_topic/]" />
			 
				            <n.case value="[n.list_view/]" do="[n.list_blog_topic/]" />
			 
				            <n.case value="[n.threaded_view/]" do="[n.threaded_blog_topic/]" />
			 
				        </then.switch.>
			 
				        <else.switch. value="[n.topic_view/]">
			 
				            <n.case value="[n.classic_view/]" do="[n.classic_forum_topic/]" />
			 
				            <n.case value="[n.list_view/]" do="[n.list_forum_topic/]" />
			 
				            <n.case value="[n.threaded_view/]" do="[n.threaded_forum_topic/]" />
			 
				        </else.switch.>
			 
				    </n.if.is_blog_topic>
			 
				</macro>
			 
	 |