topic_meta

NAML documentation   Watch a video
   Usages of this macro
... in content_noindex.naml
5
6
7
<override_macro name="topic_meta" requires="node_page,servlet">
    <META NAME="robots" CONTENT="noindex,follow"/>
</override_macro>
Overrides default macro
... in topic.naml
183
184
185
186
187
188
189
190
191
192
193
194
195
<macro name="topic_meta" requires="node_page,servlet">
    <n.if.equal value1="[n.topic_view/]" value2="[n.classic_view/]">
        <then>
            <n.topic_meta_description/>
            <n.topic_meta_keywords/>
        </then>
        <else>
            <n.set_var. name='canonical_url'><n.page_node.topic_path view="[n.classic_view/]"/></n.set_var.>
            <link rel="canonical" href="[n.var name='canonical_url'/]" />
            <META NAME="robots" CONTENT="noindex,follow"/>
        </else>
    </n.if.equal>
</macro>