handle_empty_blog

NAML documentation   Watch a video
   Usages of this macro
... in view_blog.naml
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<macro name="handle_empty_blog" requires="node_list,node_page">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.has_more_elements
Binary
Namespace: ListSequence
Parameters: n
>
        <then>
            <div class="rounded light-border-color" style="border-width:2px;border-style:solid;padding:1.5em .5em">
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.>
                    <n.new_topic_link
Macro
Requires: node
Parameters: href, text, title, class
>
                        <text>
                            <div class="blog-title second-font weak-color" style="margin-bottom:.5em"><t>Write Your First Post</t></div>
                            <t>Click here to make your first post</t>
                        </text>
                    </n.new_topic_link>
                </n.page_node.>
            </div>
        </then>
    </n.if.not.has_more_elements>
</macro>