<% var note = note || page var noteUrl = url_for(note.path) var noteTitle = note.title || '' var noteTags = Array.isArray(note.tags) ? note.tags : (note.tags ? [note.tags] : []) var noteIsDetail = typeof isDetail === 'boolean' ? isDetail : false var noteAuthor = String(author || theme.about.name || config.author || '') var noteDateFormat = dateFormat || (theme.dynamics && theme.dynamics.date_format) || 'YYYY-MM-DD HH:mm' %>
<% if (avatar) { %> <%= noteAuthor %> <% } %>
<%= noteAuthor %> <% if (note.top === true) { %> <%- __('dynamics.pin') %> <% } %> <% if (!noteIsDetail) { %> <% } %>
<% if (noteTitle) { %> <% if (noteIsDetail) { %>

<%= noteTitle %>

<% } else { %>

<%= noteTitle %>

<% } %> <% } %>
<%- noteIsDetail ? note.content : dynamics_content(note.content, note) %>
<% if (noteTags.length) { %> <% } %>