blog_post_header

NAML documentation   Watch a video
   Usages of this macro
... in view_blog.naml
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<macro name="blog_post_header" requires="node">
    <div class="blog-header shaded-bg-color">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
            <then>
                <div class="pinned"></div>
            </then>
        </n.if.is_pinned_in_loop>
        <div class="blog-date weak-color">
            <n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.date_only
Macro
Requires: date
/>
        </div>
        <div class="blog-title second-font adbayes-content">
            <n.node_link
Macro
Requires: node
Parameters: text, href, title, class, target
/>
        </div>
        <table class="blog-details weak-color">
            <tr>
                <td class="nowrap">
                    <n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.avatar
Macro
Requires: user
Parameters: size, border_class, group
 size="small" border_class="medium-border-color"/>
                </td>
                <td class="nowrap">
                    <t>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
                    @
                    <n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.time_only
Macro
Requires: date
/>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_subapp
Macro
Requires: node, node_list
>
                        <then><t>in <t.location.italic
Macro
Parameters: text
.subapp_link_on_hover
Macro
Requires: node, node_list
/></t></then>
                    </n.if.is_in_subapp>
                </td>
            </tr>
        </table>
    </div>
</macro>